C# Class UHSampleGame.TileSystem.TileMap

Afficher le fichier Open project: holtkampw/UH-Sample-XNA-Project

Méthodes publiques

Свойство Type Description
TileCount int
pathThread System.Thread
pathThreadExit EventWaitHandle

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
InitializeTiles ( ) : void

Private Methods

Méthode Description
OnTowerCreated ( ) : void

Method Details

Dispose() public static méthode

public static Dispose ( ) : void
Résultat void

Draw() public static méthode

public static Draw ( ) : void
Résultat void

GetTileForPlayer() public static méthode

public static GetTileForPlayer ( int playerNum ) : Tile
playerNum int
Résultat Tile

GetTileFromPos() public static méthode

Returns a Tile2 given a Vector3 position
public static GetTileFromPos ( Vector3 position ) : Tile
position Vector3 The position to investigate
Résultat Tile

GetTileFromType() public static méthode

public static GetTileFromType ( TileType tileType ) : Tile
tileType TileType
Résultat Tile

GetTileIndexFromPos() public static méthode

public static GetTileIndexFromPos ( Vector3 position ) : int
position Vector3
Résultat int

GetTileNeighbor() public static méthode

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
Résultat Tile

GetTilePosFromPos() public static méthode

public static GetTilePosFromPos ( Vector3 position ) : Vector3
position Vector3
Résultat Vector3

GetTowerInformationAtPosition() public static méthode

public static GetTowerInformationAtPosition ( Vector3 position ) : Tower
position Vector3
Résultat UHSampleGame.CoreObjects.Towers.Tower

GetWalkableNeighbors() public static méthode

public static GetWalkableNeighbors ( Tile Tile2 ) : List
Tile2 Tile
Résultat List

GetWalkableNeighbors() public static méthode

public static GetWalkableNeighbors ( Tile tile, Tile>.Dictionary exclude ) : List
tile Tile
exclude Tile>.Dictionary
Résultat List

GetWalkableNeighborsInts() public static méthode

public static GetWalkableNeighborsInts ( Tile Tile2 ) : List
Tile2 Tile
Résultat List

InitializeTileMap() public static méthode

public static InitializeTileMap ( Vector3 position, Vector2 numTiles, Vector2 tileSize ) : void
position Vector3
numTiles Vector2
tileSize Vector2
Résultat void

InitializeTiles() protected static méthode

protected static InitializeTiles ( ) : void
Résultat void

IsTilePathsValid() public static méthode

public static IsTilePathsValid ( ) : bool
Résultat bool

IsTilePathsValidFor() public static méthode

public static IsTilePathsValidFor ( int newBlockableTile ) : bool
newBlockableTile int
Résultat bool

RemoveTower() public static méthode

public static RemoveTower ( Tile &Tile2 ) : void
Tile2 Tile
Résultat void

SetBase() public static méthode

public static SetBase ( Base setBase ) : void
setBase UHSampleGame.CoreObjects.Base.Base
Résultat void

SetBase() public static méthode

public static SetBase ( Base setBase, Tile tile ) : void
setBase UHSampleGame.CoreObjects.Base.Base
tile Tile
Résultat void

SetObject() public static méthode

public static SetObject ( Base gameObject, Tile Tile2 ) : void
gameObject UHSampleGame.CoreObjects.Base.Base
Tile2 Tile
Résultat void

SetObject() public static méthode

public static SetObject ( Tower gameObject, Tile Tile2 ) : void
gameObject UHSampleGame.CoreObjects.Towers.Tower
Tile2 Tile
Résultat void

SetTower() public static méthode

public static SetTower ( Tower &tower, Tile &Tile2 ) : bool
tower UHSampleGame.CoreObjects.Towers.Tower
Tile2 Tile
Résultat bool

SetTowerForLevelMap() public static méthode

public static SetTowerForLevelMap ( Tower tower, Tile tile ) : void
tower UHSampleGame.CoreObjects.Towers.Tower
tile Tile
Résultat void

ThreadedTilePaths() public static méthode

public static ThreadedTilePaths ( object indexToKill ) : void
indexToKill object
Résultat void

Update() public static méthode

public static Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

UpdateTilePaths() public static méthode

public static UpdateTilePaths ( ) : void
Résultat void

Property Details

TileCount public_oe static_oe property

public static int TileCount
Résultat int

pathThread public_oe static_oe property

public static Thread,System pathThread
Résultat System.Thread

pathThreadExit public_oe static_oe property

public static EventWaitHandle pathThreadExit
Résultat EventWaitHandle