C# Class TerrainDisplay.World.Map

Exibir arquivo Open project: WCell/WCell-Terrain Class Usage Examples

Public Properties

Property Type Description
IsWMOOnly bool
MapId MapId
QuadTree QuadTree
TileProfile ].bool[

Public Methods

Method Description
Map ( MapId mapId ) : System

Private Methods

Method Description
GetHeightAtPosition ( System.Vector3 pos, float &height ) : bool
GetNearestValidPosition ( System.Vector3 pos, System.Vector3 &validPos ) : bool
GetNearestWalkablePosition ( System.Vector3 pos, System.Vector3 &walkablePos ) : bool
HasLOS ( System.Vector3 pos1, System.Vector3 pos2 ) : bool

Checks this Map for LOS between two positions.

Map ( ) : System
ReadTileProfile ( BinaryReader br, bool isWMOOnly ) : ].bool[
ReadWDTInfo ( Stream file ) : Map
TryGetTile ( TileIdentifier tileId, Tile &tile ) : bool

Tries to get the tile with the given TileId. If the tile is not loaded, tries to load the tile from disk.

TryLoad ( MapId mapId, Map &map ) : bool

Method Details

Map() public method

public Map ( MapId mapId ) : System
mapId MapId
return System

Property Details

IsWMOOnly public_oe property

public bool IsWMOOnly
return bool

MapId public_oe property

public MapId MapId
return MapId

QuadTree public_oe property

public QuadTree QuadTree
return QuadTree

TileProfile public_oe property

public bool[,] TileProfile
return ].bool[