C# Class UHSampleGame.Players.PlayerCollection

Datei anzeigen Open project: holtkampw/UH-Sample-XNA-Project

Public Properties

Property Type Description
Players UHSampleGame.Players.Player[]

Public Methods

Method Description
AddPlayer ( Player player ) : void
AttackPlayer ( int playerNum ) : bool
ChargeMoneyForPlayer ( int PlayerNum, int amount ) : bool
CheckEMPFor ( int i ) : bool
CheckFreezeEnemiesFor ( int i ) : bool
CheckGameWin ( ) : bool
Draw ( GameTime gameTime ) : void
EarnedMoneyForPlayer ( int playerNum, int money ) : void
GetNextTargetFor ( int p ) : int
HandleInput ( ) : void
Initialize ( ) : void
RemoveEMPFor ( int i ) : void
RemoveFreezeEnemiesFor ( int i ) : void
RemoveRezoneFor ( int i ) : void
ResetRenderStates ( ) : void
SetBaseFor ( int playerNum, Base playerBase ) : void
SetEMPFor ( int i ) : void
SetFreezeEnemiesFor ( int PlayerNum ) : void
SetPlayerInactive ( int playerNum ) : void
SetRezoneFor ( int PlayerNum ) : void
SetTargetFor ( int playerNum, int targetNum ) : void
ShowHUDFor ( int playerNum ) : bool
Update ( GameTime gameTime ) : void
UpdateTargetPlayers ( int oldPlayerNum ) : void

Private Methods

Method Description
CheckAttackingPlayerFor ( int PlayerNum ) : int

Method Details

AddPlayer() public static method

public static AddPlayer ( Player player ) : void
player Player
return void

AttackPlayer() public static method

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

ChargeMoneyForPlayer() public static method

public static ChargeMoneyForPlayer ( int PlayerNum, int amount ) : bool
PlayerNum int
amount int
return bool

CheckEMPFor() public static method

public static CheckEMPFor ( int i ) : bool
i int
return bool

CheckFreezeEnemiesFor() public static method

public static CheckFreezeEnemiesFor ( int i ) : bool
i int
return bool

CheckGameWin() public static method

public static CheckGameWin ( ) : bool
return bool

Draw() public static method

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

EarnedMoneyForPlayer() public static method

public static EarnedMoneyForPlayer ( int playerNum, int money ) : void
playerNum int
money int
return void

GetNextTargetFor() public static method

public static GetNextTargetFor ( int p ) : int
p int
return int

HandleInput() public static method

public static HandleInput ( ) : void
return void

Initialize() public static method

public static Initialize ( ) : void
return void

RemoveEMPFor() public static method

public static RemoveEMPFor ( int i ) : void
i int
return void

RemoveFreezeEnemiesFor() public static method

public static RemoveFreezeEnemiesFor ( int i ) : void
i int
return void

RemoveRezoneFor() public static method

public static RemoveRezoneFor ( int i ) : void
i int
return void

ResetRenderStates() public static method

public static ResetRenderStates ( ) : void
return void

SetBaseFor() public static method

public static SetBaseFor ( int playerNum, Base playerBase ) : void
playerNum int
playerBase UHSampleGame.CoreObjects.Base.Base
return void

SetEMPFor() public static method

public static SetEMPFor ( int i ) : void
i int
return void

SetFreezeEnemiesFor() public static method

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

SetPlayerInactive() public static method

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

SetRezoneFor() public static method

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

SetTargetFor() public static method

public static SetTargetFor ( int playerNum, int targetNum ) : void
playerNum int
targetNum int
return void

ShowHUDFor() public static method

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

Update() public static method

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

UpdateTargetPlayers() public static method

public static UpdateTargetPlayers ( int oldPlayerNum ) : void
oldPlayerNum int
return void

Property Details

Players public_oe static_oe property

public static Player[],UHSampleGame.Players Players
return UHSampleGame.Players.Player[]