C# 클래스 AStartTest.TileSystem.TileMap

파일 보기 프로젝트 열기: holtkampw/UH-Sample-XNA-Project 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( ) : void
GetTileFromPos ( System.Vector3 position ) : Tile

Returns a tile given a Vector3 position

GetTileFromType ( TileType tileType ) : Tile
GetTileNeighbor ( Tile tile, NeighborTile neighborTile ) : Tile

Gets a neigbhoring tile's position

GetWalkableNeighbors ( Tile tile ) : List
GetWalkableNeighbors ( Tile tile, Tile>.Dictionary exclude ) : List
InitializeTileMap ( System.Vector3 position, System.Vector2 numTiles, System.Vector2 tileSize ) : void
IsTilePathsValid ( ) : bool
RemoveTower ( Tile tile ) : void
SetBase ( Base setBase ) : void
SetObject ( Base gameObject, Tile tile ) : void
SetObject ( Tower gameObject, Tile tile ) : void
SetTower ( Tower tower, Tile tile ) : bool
SetTowerForLevelMap ( Tower tower, Tile tile ) : void
UpdateTilePaths ( ) : void

보호된 메소드들

메소드 설명
InitializeTiles ( ) : void

비공개 메소드들

메소드 설명
OnTowerCreated ( ) : void

메소드 상세

Draw() 공개 정적인 메소드

public static Draw ( ) : void
리턴 void

GetTileFromPos() 공개 정적인 메소드

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

GetTileFromType() 공개 정적인 메소드

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

GetTileNeighbor() 공개 정적인 메소드

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

GetWalkableNeighbors() 공개 정적인 메소드

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

GetWalkableNeighbors() 공개 정적인 메소드

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

InitializeTileMap() 공개 정적인 메소드

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

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

protected static InitializeTiles ( ) : void
리턴 void

IsTilePathsValid() 공개 정적인 메소드

public static IsTilePathsValid ( ) : bool
리턴 bool

RemoveTower() 공개 정적인 메소드

public static RemoveTower ( Tile tile ) : void
tile Tile
리턴 void

SetBase() 공개 정적인 메소드

public static SetBase ( Base setBase ) : void
setBase Base
리턴 void

SetObject() 공개 정적인 메소드

public static SetObject ( Base gameObject, Tile tile ) : void
gameObject Base
tile Tile
리턴 void

SetObject() 공개 정적인 메소드

public static SetObject ( Tower gameObject, Tile tile ) : void
gameObject Tower
tile Tile
리턴 void

SetTower() 공개 정적인 메소드

public static SetTower ( Tower tower, Tile tile ) : bool
tower Tower
tile Tile
리턴 bool

SetTowerForLevelMap() 공개 정적인 메소드

public static SetTowerForLevelMap ( Tower tower, Tile tile ) : void
tower Tower
tile Tile
리턴 void

UpdateTilePaths() 공개 정적인 메소드

public static UpdateTilePaths ( ) : void
리턴 void