C# Class UHSampleGame.TileSystem.Tile

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

Méthodes publiques

Свойство Type Description
ID int
NullTile Tile
Paths List>
PathsInts List>
Position Vector3
Size Vector2
TileType TileType
Tower UHSampleGame.CoreObjects.Towers.Tower
UnSafePaths List>
tileNeighbors List
unitIndexes List

Méthodes publiques

Méthode Description
AddUnit ( Unit unit ) : void
AddUnit ( UnitType type, Unit unit ) : void
FindNewUnitToAttack ( ) : Unit
GetPathTo ( Tile baseTile ) : List
GetRandPoint ( ) : Vector3
GetTileType ( ) : TileType
GetUnitFromTile ( ) : Unit
IsBase ( ) : bool
IsNull ( ) : bool
IsWalkable ( ) : bool
RegisterTowerListener ( Tower tower ) : void
RegisterTowerListenerForTower ( Tower &tower ) : void
RegisterTowerListenerForUnit ( Tower &tower ) : void
RemoveBlockableObject ( ) : void
RemoveTower ( ) : void
RemoveUnit ( Unit unit ) : void
RemoveUnit ( UnitType type, Unit unit ) : void
SetBlockableObject ( Tower gameObject ) : void
SetTileType ( TileType tileType ) : void
SetTower ( Tower tower ) : void
SyncPathFor ( int t ) : void
Tile ( ) : System
Tile ( int id, Vector3 position, Vector2 size ) : System

Represents a tile of a tile map

Tile ( int id, Vector3 position, Vector2 size, TileType tileType ) : System
ToString ( ) : string
UnregisterTowerListener ( Tower tower ) : void
UnregisterTowerListenerForTower ( Tower &tower ) : void
UnregisterTowerListenerForUnit ( Tower &tower ) : void
UpdatePathTo ( Tile baseTile ) : void

Private Methods

Méthode Description
OnTowerEnter ( Tower &tower ) : void
OnTowerExit ( Tower &tower ) : void
OnUnitEnter ( GameEventArgs args ) : void
OnUnitEnter ( Unit &unit ) : void
OnUnitExit ( Unit &unit ) : void

Method Details

AddUnit() public méthode

public AddUnit ( Unit unit ) : void
unit UHSampleGame.CoreObjects.Units.Unit
Résultat void

AddUnit() public méthode

public AddUnit ( UnitType type, Unit unit ) : void
type UnitType
unit UHSampleGame.CoreObjects.Units.Unit
Résultat void

FindNewUnitToAttack() public méthode

public FindNewUnitToAttack ( ) : Unit
Résultat UHSampleGame.CoreObjects.Units.Unit

GetPathTo() public méthode

public GetPathTo ( Tile baseTile ) : List
baseTile Tile
Résultat List

GetRandPoint() public méthode

public GetRandPoint ( ) : Vector3
Résultat Vector3

GetTileType() public méthode

public GetTileType ( ) : TileType
Résultat TileType

GetUnitFromTile() public méthode

public GetUnitFromTile ( ) : Unit
Résultat UHSampleGame.CoreObjects.Units.Unit

IsBase() public méthode

public IsBase ( ) : bool
Résultat bool

IsNull() public méthode

public IsNull ( ) : bool
Résultat bool

IsWalkable() public méthode

public IsWalkable ( ) : bool
Résultat bool

RegisterTowerListener() public méthode

public RegisterTowerListener ( Tower tower ) : void
tower UHSampleGame.CoreObjects.Towers.Tower
Résultat void

RegisterTowerListenerForTower() public méthode

public RegisterTowerListenerForTower ( Tower &tower ) : void
tower UHSampleGame.CoreObjects.Towers.Tower
Résultat void

RegisterTowerListenerForUnit() public méthode

public RegisterTowerListenerForUnit ( Tower &tower ) : void
tower UHSampleGame.CoreObjects.Towers.Tower
Résultat void

RemoveBlockableObject() public méthode

public RemoveBlockableObject ( ) : void
Résultat void

RemoveTower() public méthode

public RemoveTower ( ) : void
Résultat void

RemoveUnit() public méthode

public RemoveUnit ( Unit unit ) : void
unit UHSampleGame.CoreObjects.Units.Unit
Résultat void

RemoveUnit() public méthode

public RemoveUnit ( UnitType type, Unit unit ) : void
type UnitType
unit UHSampleGame.CoreObjects.Units.Unit
Résultat void

SetBlockableObject() public méthode

public SetBlockableObject ( Tower gameObject ) : void
gameObject UHSampleGame.CoreObjects.Towers.Tower
Résultat void

SetTileType() public méthode

public SetTileType ( TileType tileType ) : void
tileType TileType
Résultat void

SetTower() public méthode

public SetTower ( Tower tower ) : void
tower UHSampleGame.CoreObjects.Towers.Tower
Résultat void

SyncPathFor() public méthode

public SyncPathFor ( int t ) : void
t int
Résultat void

Tile() public méthode

public Tile ( ) : System
Résultat System

Tile() public méthode

Represents a tile of a tile map
public Tile ( int id, Vector3 position, Vector2 size ) : System
id int
position Vector3 The center position of the tile
size Vector2 The width and length of the tile
Résultat System

Tile() public méthode

public Tile ( int id, Vector3 position, Vector2 size, TileType tileType ) : System
id int
position Vector3
size Vector2
tileType TileType
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

UnregisterTowerListener() public méthode

public UnregisterTowerListener ( Tower tower ) : void
tower UHSampleGame.CoreObjects.Towers.Tower
Résultat void

UnregisterTowerListenerForTower() public méthode

public UnregisterTowerListenerForTower ( Tower &tower ) : void
tower UHSampleGame.CoreObjects.Towers.Tower
Résultat void

UnregisterTowerListenerForUnit() public méthode

public UnregisterTowerListenerForUnit ( Tower &tower ) : void
tower UHSampleGame.CoreObjects.Towers.Tower
Résultat void

UpdatePathTo() public méthode

public UpdatePathTo ( Tile baseTile ) : void
baseTile Tile
Résultat void

Property Details

ID public_oe property

public int ID
Résultat int

NullTile public_oe static_oe property

public static Tile,UHSampleGame.TileSystem NullTile
Résultat Tile

Paths public_oe property

public List> Paths
Résultat List>

PathsInts public_oe property

public List> PathsInts
Résultat List>

Position public_oe property

public Vector3 Position
Résultat Vector3

Size public_oe property

public Vector2 Size
Résultat Vector2

TileType public_oe property

public TileType TileType
Résultat TileType

Tower public_oe property

public Tower,UHSampleGame.CoreObjects.Towers Tower
Résultat UHSampleGame.CoreObjects.Towers.Tower

UnSafePaths public_oe property

public List> UnSafePaths
Résultat List>

tileNeighbors public_oe property

public List tileNeighbors
Résultat List

unitIndexes public_oe property

public List unitIndexes
Résultat List