C# Class UHSampleGame.CoreObjects.Towers.TowerCollection

Mostra file Open project: holtkampw/UH-Sample-XNA-Project

Public Methods

Method Description
Add ( int playerNum, int teamNum, int money, TowerType towerType, Vector3 position ) : Tower
AllTowerCount ( ) : int
Destroy ( Tower &tower ) : void
DestroyAll ( int playerNum ) : bool
Draw ( GameTime gameTime ) : void
Initialize ( int numPlayers ) : void
Remove ( int teamNum, Vector3 &position ) : int
RemoveStrongTowersFor ( int PlayerNum ) : void
Repair ( int teamNum, int money, Vector3 &position ) : int
SetAllNoShoot ( int playerNum ) : void
SetStrongTowersFor ( int PlayerNum ) : void
Update ( GameTime gameTime ) : void
Upgrade ( int teamNum, int money, Vector3 &position ) : int
UseBombasticOn ( int attackPlayer, int amount ) : void

Private Methods

Method Description
DrawInstancedTowers ( int playerNum, int towerType, int amount ) : void
DrawTowers ( int i, int j ) : void

Method Details

Add() public static method

public static Add ( int playerNum, int teamNum, int money, TowerType towerType, Vector3 position ) : Tower
playerNum int
teamNum int
money int
towerType TowerType
position Vector3
return Tower

AllTowerCount() public static method

public static AllTowerCount ( ) : int
return int

Destroy() public static method

public static Destroy ( Tower &tower ) : void
tower Tower
return void

DestroyAll() public static method

public static DestroyAll ( int playerNum ) : bool
playerNum int
return bool

Draw() public static method

public static Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Initialize() public static method

public static Initialize ( int numPlayers ) : void
numPlayers int
return void

Remove() public static method

public static Remove ( int teamNum, Vector3 &position ) : int
teamNum int
position Vector3
return int

RemoveStrongTowersFor() public static method

public static RemoveStrongTowersFor ( int PlayerNum ) : void
PlayerNum int
return void

Repair() public static method

public static Repair ( int teamNum, int money, Vector3 &position ) : int
teamNum int
money int
position Vector3
return int

SetAllNoShoot() public static method

public static SetAllNoShoot ( int playerNum ) : void
playerNum int
return void

SetStrongTowersFor() public static method

public static SetStrongTowersFor ( int PlayerNum ) : void
PlayerNum int
return void

Update() public static method

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

Upgrade() public static method

public static Upgrade ( int teamNum, int money, Vector3 &position ) : int
teamNum int
money int
position Vector3
return int

UseBombasticOn() public static method

public static UseBombasticOn ( int attackPlayer, int amount ) : void
attackPlayer int
amount int
return void