C# 클래스 TerrainDisplay.World.World

파일 보기 프로젝트 열기: WCell/WCell-Terrain

공개 프로퍼티들

프로퍼티 타입 설명
MaxLOSRadius float

공개 메소드들

메소드 설명
GetHeightAtPosition ( MapId mapId, System.Vector3 pos, float &height ) : bool

Get the height of the floor underneath the given position on the map with the given MapId.

GetNearestValidPosition ( MapId mapId, System.Vector3 pos, System.Vector3 &validPos ) : bool

Gets the nearest valid (i.e., not over a hole, outside map boundaries, etc) position to the given position.

GetNearestWalkablePositon ( MapId mapId, System.Vector3 pos, System.Vector3 &walkablePos ) : bool

Gets the nearest walkable (i.e., not water, model, air, etc) position to the given position.

HasLOS ( MapId mapId, System.Vector3 pos1, System.Vector3 pos2 ) : bool

Checks of the two positions have a clear line of sight on the given MapId.

World ( ) : System

비공개 메소드들

메소드 설명
TryGetMap ( MapId mapId, Map &map ) : bool

Tries to retrieve/load the map from/into the maps Dictionary.

메소드 상세

GetHeightAtPosition() 공개 메소드

Get the height of the floor underneath the given position on the map with the given MapId.
public GetHeightAtPosition ( MapId mapId, System.Vector3 pos, float &height ) : bool
mapId MapId The that corresponds to the desired map.
pos System.Vector3 The position on the map to get the height at.
height float The height of the floor at the given position on the map.
리턴 bool

GetNearestValidPosition() 공개 메소드

Gets the nearest valid (i.e., not over a hole, outside map boundaries, etc) position to the given position.
public GetNearestValidPosition ( MapId mapId, System.Vector3 pos, System.Vector3 &validPos ) : bool
mapId MapId The that corresponds to the desired map.
pos System.Vector3 The position to check against.
validPos System.Vector3 The nearest valid position to the given position.
리턴 bool

GetNearestWalkablePositon() 공개 메소드

Gets the nearest walkable (i.e., not water, model, air, etc) position to the given position.
public GetNearestWalkablePositon ( MapId mapId, System.Vector3 pos, System.Vector3 &walkablePos ) : bool
mapId MapId The that corresponds to the desired map.
pos System.Vector3 The position to check against.
walkablePos System.Vector3 The nearest walkable position to the given position.
리턴 bool

HasLOS() 공개 메소드

Checks of the two positions have a clear line of sight on the given MapId.
public HasLOS ( MapId mapId, System.Vector3 pos1, System.Vector3 pos2 ) : bool
mapId MapId The that corresponds to the desired map.
pos1 System.Vector3 The start position for the LOS check.
pos2 System.Vector3 The end position for the LOS check.
리턴 bool

World() 공개 메소드

public World ( ) : System
리턴 System

프로퍼티 상세

MaxLOSRadius 공개적으로 정적으로 프로퍼티

public static float MaxLOSRadius
리턴 float