En:MapBuilder
Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.
[править]
Class MapBuilder
Class is used for management and creation of level location. In game location objects are created by means of functional of this class (units, walls, floor, ceiling, location objects, etc).
[править]
Methods list
| InitLevelMap | Set initial parameters of location map |
| FillMapTilesByArray | Create location land surface by using array of tile image indexes |
| FillRoofTilesByArray | Create location ceiling by using array of tile image indexes |
| GetLevelMapHeight | Get height of location map by using array of tile image indexes |
| GetLevelMapWidth | Get width of location map by using array of tile image indexes |
| SetWall | Set image of wall part by specified relative tile (hexagon) |
| AddMapViewPort | Set view port area for current location |
| AddExitArea | Add exit area |
| AddExitPoint | Add exit point |
| SetRoofCellTile | Add tile to location ceiling |
| SetMapCellTile | Add tile to location floor |
| AddWallImage | Cache wall image and bind the numerical identifier its |
| AddTileImage | Cache tile image of location floor/ceiling and identify its with numerical identifier |
| SetTileSize | Set tile size |
| IsCellFree | Check: relative tile (hexagon) is free by current coordinates |
| SetHeroPosition | Set initial position of the hero (in relative tiles) |
| AddBypassPoint | Add bypass point to level location |
| ScrollMapToObject | Scroll location surface to object |
| GetWorldDate | Get current world date |
| GetWorldTime | Get current world time |
| SaveMap | Save current location to binary file |
| LoadMap | Load location from binary file |
| GetMapName | Get current location name |
| IncWorldTime | Increase current world time by the specified seconds count |
| SortObjects | Optimize (sort) objects position on location |
| RemoveBypassPoint | Remove bypass point by coordinates of relative tiles (hexagon) |
| RemoveObjects | Remove objects (everything, except walls and tiles) from current location |
| GetObjectsCount | Get objects count from current location |
| GetObjectName | Get object name by its ordinal index (from 0 to GetObjectsCount()-1) |
| SetMapCacheState | Set automatically saving state of location status, units, inventory to cache |
| Free | Object destructor |