C# Class UHSampleGame.Players.Player

Mostra 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_oe property

public bool EMPActive
return bool

FreezeActive public_oe property

public bool FreezeActive
return bool

Health public_oe property

public int Health
return int

IsActive public_oe property

public bool IsActive
return bool

IsDead public_oe property

public bool IsDead
return bool

Money public_oe property

public int Money
return int

PlayerBase public_oe property

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

PlayerNum public_oe property

public int PlayerNum
return int

Rezone public_oe property

public bool Rezone
return bool

TargetPlayerNum public_oe property

public int TargetPlayerNum
return int

TeamNum public_oe property

public int TeamNum
return int

Type public_oe property

public PlayerType Type
return PlayerType

cameraManager protected_oe property

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

isHUDDisplayed public_oe property

public bool isHUDDisplayed
return bool

playerEnumType public_oe static_oe property

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

playerMenuTabsEnumType public_oe static_oe property

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

selectedUnit public_oe property

public int selectedUnit
return int