C# Class SmashBros.Controllers.PlayerStatsController

Holds one players gamestats and updates it. Also displays som stats on the screen, like damgePercent
Inheritance: Controller
Mostrar archivo Open project: Grutn/TDT4240-X2

Public Properties

Property Type Description
PlayerStats SmashBros.Models.PlayerStats

Public Methods

Method Description
Deactivate ( ) : void
DidHit ( int damageDone, int playerIndexReciever ) : void
GotHit ( int damagePoints, int playerIndex ) : void
GotKilled ( int &killerIndex ) : bool

Removes one life for player and sets the killersIndex

Killed ( int playerIndex ) : void
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
OnNext ( GameStateManager value ) : void
PlayerStatsController ( ScreenManager screen, CharacterModel characterModel, GameOptions gameOptions ) : System
Unload ( ) : void
Update ( GameTime gameTime ) : void

Method Details

Deactivate() public method

public Deactivate ( ) : void
return void

DidHit() public method

public DidHit ( int damageDone, int playerIndexReciever ) : void
damageDone int
playerIndexReciever int
return void

GotHit() public method

public GotHit ( int damagePoints, int playerIndex ) : void
damagePoints int
playerIndex int
return void

GotKilled() public method

Removes one life for player and sets the killersIndex
public GotKilled ( int &killerIndex ) : bool
killerIndex int
return bool

Killed() public method

public Killed ( int playerIndex ) : void
playerIndex int
return void

Load() public method

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

OnNext() public method

public OnNext ( GameStateManager value ) : void
value GameStateManager
return void

PlayerStatsController() public method

public PlayerStatsController ( ScreenManager screen, CharacterModel characterModel, GameOptions gameOptions ) : System
screen SmashBros.MySystem.ScreenManager
characterModel SmashBros.Models.CharacterModel
gameOptions SmashBros.Models.GameOptions
return System

Unload() public method

public Unload ( ) : void
return void

Update() public method

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

Property Details

PlayerStats public_oe property

public PlayerStats,SmashBros.Models PlayerStats
return SmashBros.Models.PlayerStats