C# 클래스 UHSampleGame.TileSystem.TileMap

파일 보기 프로젝트 열기: holtkampw/UH-Sample-XNA-Project

공개 프로퍼티들

프로퍼티 타입 설명
TileCount int
pathThread System.Thread
pathThreadExit EventWaitHandle

공개 메소드들

메소드 설명
Dispose ( ) : void
Draw ( ) : void
GetTileForPlayer ( int playerNum ) : Tile
GetTileFromPos ( Vector3 position ) : Tile

Returns a Tile2 given a Vector3 position

GetTileFromType ( TileType tileType ) : Tile
GetTileIndexFromPos ( Vector3 position ) : int
GetTileNeighbor ( Tile Tile2, NeighborTile neighborTile ) : Tile

Gets a neigbhoring Tile2's position

GetTilePosFromPos ( Vector3 position ) : Vector3
GetTowerInformationAtPosition ( Vector3 position ) : Tower
GetWalkableNeighbors ( Tile Tile2 ) : List
GetWalkableNeighbors ( Tile tile, Tile>.Dictionary exclude ) : List
GetWalkableNeighborsInts ( Tile Tile2 ) : List
InitializeTileMap ( Vector3 position, Vector2 numTiles, Vector2 tileSize ) : void
IsTilePathsValid ( ) : bool
IsTilePathsValidFor ( int newBlockableTile ) : bool
RemoveTower ( Tile &Tile2 ) : void
SetBase ( Base setBase ) : void
SetBase ( Base setBase, Tile tile ) : void
SetObject ( Base gameObject, Tile Tile2 ) : void
SetObject ( Tower gameObject, Tile Tile2 ) : void
SetTower ( Tower &tower, Tile &Tile2 ) : bool
SetTowerForLevelMap ( Tower tower, Tile tile ) : void
ThreadedTilePaths ( object indexToKill ) : void
Update ( GameTime gameTime ) : void
UpdateTilePaths ( ) : void

보호된 메소드들

메소드 설명
InitializeTiles ( ) : void

비공개 메소드들

메소드 설명
OnTowerCreated ( ) : void

메소드 상세

Dispose() 공개 정적인 메소드

public static Dispose ( ) : void
리턴 void

Draw() 공개 정적인 메소드

public static Draw ( ) : void
리턴 void

GetTileForPlayer() 공개 정적인 메소드

public static GetTileForPlayer ( int playerNum ) : Tile
playerNum int
리턴 Tile

GetTileFromPos() 공개 정적인 메소드

Returns a Tile2 given a Vector3 position
public static GetTileFromPos ( Vector3 position ) : Tile
position Vector3 The position to investigate
리턴 Tile

GetTileFromType() 공개 정적인 메소드

public static GetTileFromType ( TileType tileType ) : Tile
tileType TileType
리턴 Tile

GetTileIndexFromPos() 공개 정적인 메소드

public static GetTileIndexFromPos ( Vector3 position ) : int
position Vector3
리턴 int

GetTileNeighbor() 공개 정적인 메소드

Gets a neigbhoring Tile2's position
public static GetTileNeighbor ( Tile Tile2, NeighborTile neighborTile ) : Tile
Tile2 Tile The start Tile2
neighborTile NeighborTile The neighbor to examine
리턴 Tile

GetTilePosFromPos() 공개 정적인 메소드

public static GetTilePosFromPos ( Vector3 position ) : Vector3
position Vector3
리턴 Vector3

GetTowerInformationAtPosition() 공개 정적인 메소드

public static GetTowerInformationAtPosition ( Vector3 position ) : Tower
position Vector3
리턴 UHSampleGame.CoreObjects.Towers.Tower

GetWalkableNeighbors() 공개 정적인 메소드

public static GetWalkableNeighbors ( Tile Tile2 ) : List
Tile2 Tile
리턴 List

GetWalkableNeighbors() 공개 정적인 메소드

public static GetWalkableNeighbors ( Tile tile, Tile>.Dictionary exclude ) : List
tile Tile
exclude Tile>.Dictionary
리턴 List

GetWalkableNeighborsInts() 공개 정적인 메소드

public static GetWalkableNeighborsInts ( Tile Tile2 ) : List
Tile2 Tile
리턴 List

InitializeTileMap() 공개 정적인 메소드

public static InitializeTileMap ( Vector3 position, Vector2 numTiles, Vector2 tileSize ) : void
position Vector3
numTiles Vector2
tileSize Vector2
리턴 void

InitializeTiles() 보호된 정적인 메소드

protected static InitializeTiles ( ) : void
리턴 void

IsTilePathsValid() 공개 정적인 메소드

public static IsTilePathsValid ( ) : bool
리턴 bool

IsTilePathsValidFor() 공개 정적인 메소드

public static IsTilePathsValidFor ( int newBlockableTile ) : bool
newBlockableTile int
리턴 bool

RemoveTower() 공개 정적인 메소드

public static RemoveTower ( Tile &Tile2 ) : void
Tile2 Tile
리턴 void

SetBase() 공개 정적인 메소드

public static SetBase ( Base setBase ) : void
setBase UHSampleGame.CoreObjects.Base.Base
리턴 void

SetBase() 공개 정적인 메소드

public static SetBase ( Base setBase, Tile tile ) : void
setBase UHSampleGame.CoreObjects.Base.Base
tile Tile
리턴 void

SetObject() 공개 정적인 메소드

public static SetObject ( Base gameObject, Tile Tile2 ) : void
gameObject UHSampleGame.CoreObjects.Base.Base
Tile2 Tile
리턴 void

SetObject() 공개 정적인 메소드

public static SetObject ( Tower gameObject, Tile Tile2 ) : void
gameObject UHSampleGame.CoreObjects.Towers.Tower
Tile2 Tile
리턴 void

SetTower() 공개 정적인 메소드

public static SetTower ( Tower &tower, Tile &Tile2 ) : bool
tower UHSampleGame.CoreObjects.Towers.Tower
Tile2 Tile
리턴 bool

SetTowerForLevelMap() 공개 정적인 메소드

public static SetTowerForLevelMap ( Tower tower, Tile tile ) : void
tower UHSampleGame.CoreObjects.Towers.Tower
tile Tile
리턴 void

ThreadedTilePaths() 공개 정적인 메소드

public static ThreadedTilePaths ( object indexToKill ) : void
indexToKill object
리턴 void

Update() 공개 정적인 메소드

public static Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

UpdateTilePaths() 공개 정적인 메소드

public static UpdateTilePaths ( ) : void
리턴 void

프로퍼티 상세

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

public static int TileCount
리턴 int

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

public static Thread,System pathThread
리턴 System.Thread

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

public static EventWaitHandle pathThreadExit
리턴 EventWaitHandle