C# Class UHSampleGame.Players.Player

Show file Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Public Properties

Property Type Description
EMPActive bool
FreezeActive bool
Health int
IsActive bool
IsDead bool
Money int
PlayerBase UHSampleGame.CoreObjects.Base.Base
PlayerNum int
Rezone bool
TargetPlayerNum int
TeamNum int
Type PlayerType
isHUDDisplayed bool
playerEnumType System.Enum[]
playerMenuTabsEnumType System.Enum[]
selectedUnit int

Protected Properties

Property Type Description
cameraManager UHSampleGame.CameraManagement.CameraManager

Public Methods

Method Description
AddMoney ( int amount ) : void
Draw ( GameTime gameTime ) : void
DrawMenu ( GameTime gameTime ) : void
HandleInput ( ) : void
Player ( ) : System
Player ( int playerNum, int teamNum, Base gameObject, PlayerType playerType ) : System
Player ( int playerNum, int teamNum, int targetPlayerNum, Tile startTile, PlayerType type ) : System
PlayerSetup ( int playerNum, int teamNum, Base gameObject, PlayerType playerType ) : void
SetBase ( Base playerBase ) : void
SetTargetBase ( Base target ) : void
SetTowerForLevelMap ( TowerType towerType, Tile tile ) : void
SetupAvatar ( ) : void
SetupStatic ( ) : void
SharedSetup ( int playerNum, int teamNum, PlayerType type ) : void
TakeDamage ( ) : bool
Update ( GameTime gameTime ) : void

Private Methods

Method Description
DrawDefenseTowers ( ) : void
DrawDeployTab ( ) : void
DrawOffenseTowers ( ) : void
DrawPowers ( ) : void
DrawStatus ( ) : void
DrawTowerInformation ( GameTime gameTime ) : void

Method Details

AddMoney() public method

public AddMoney ( int amount ) : void
amount int
return void

Draw() public method

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

DrawMenu() public method

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

HandleInput() public method

public HandleInput ( ) : void
return void

Player() public method

public Player ( ) : System
return System

Player() public method

public Player ( int playerNum, int teamNum, Base gameObject, PlayerType playerType ) : System
playerNum int
teamNum int
gameObject UHSampleGame.CoreObjects.Base.Base
playerType PlayerType
return System

Player() public method

public Player ( int playerNum, int teamNum, int targetPlayerNum, Tile startTile, PlayerType type ) : System
playerNum int
teamNum int
targetPlayerNum int
startTile UHSampleGame.TileSystem.Tile
type PlayerType
return System

PlayerSetup() public method

public PlayerSetup ( int playerNum, int teamNum, Base gameObject, PlayerType playerType ) : void
playerNum int
teamNum int
gameObject UHSampleGame.CoreObjects.Base.Base
playerType PlayerType
return void

SetBase() public method

public SetBase ( Base playerBase ) : void
playerBase UHSampleGame.CoreObjects.Base.Base
return void

SetTargetBase() public method

public SetTargetBase ( Base target ) : void
target UHSampleGame.CoreObjects.Base.Base
return void

SetTowerForLevelMap() public method

public SetTowerForLevelMap ( TowerType towerType, Tile tile ) : void
towerType TowerType
tile UHSampleGame.TileSystem.Tile
return void

SetupAvatar() public method

public SetupAvatar ( ) : void
return void

SetupStatic() public method

public SetupStatic ( ) : void
return void

SharedSetup() public method

public SharedSetup ( int playerNum, int teamNum, PlayerType type ) : void
playerNum int
teamNum int
type PlayerType
return void

TakeDamage() public method

public TakeDamage ( ) : bool
return bool

Update() public method

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

Property Details

EMPActive public property

public bool EMPActive
return bool

FreezeActive public property

public bool FreezeActive
return bool

Health public property

public int Health
return int

IsActive public property

public bool IsActive
return bool

IsDead public property

public bool IsDead
return bool

Money public property

public int Money
return int

PlayerBase public property

public Base,UHSampleGame.CoreObjects.Base PlayerBase
return UHSampleGame.CoreObjects.Base.Base

PlayerNum public property

public int PlayerNum
return int

Rezone public property

public bool Rezone
return bool

TargetPlayerNum public property

public int TargetPlayerNum
return int

TeamNum public property

public int TeamNum
return int

Type public property

public PlayerType Type
return PlayerType

cameraManager protected property

protected CameraManager,UHSampleGame.CameraManagement cameraManager
return UHSampleGame.CameraManagement.CameraManager

isHUDDisplayed public property

public bool isHUDDisplayed
return bool

playerEnumType public static property

public static Enum[],System playerEnumType
return System.Enum[]

playerMenuTabsEnumType public static property

public static Enum[],System playerMenuTabsEnumType
return System.Enum[]

selectedUnit public property

public int selectedUnit
return int