C# Class SmashBros.Controllers.PlayerStatsController

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

Méthodes publiques

Свойство Type Description
PlayerStats SmashBros.Models.PlayerStats

Méthodes publiques

Méthode 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 méthode

public Deactivate ( ) : void
Résultat void

DidHit() public méthode

public DidHit ( int damageDone, int playerIndexReciever ) : void
damageDone int
playerIndexReciever int
Résultat void

GotHit() public méthode

public GotHit ( int damagePoints, int playerIndex ) : void
damagePoints int
playerIndex int
Résultat void

GotKilled() public méthode

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

Killed() public méthode

public Killed ( int playerIndex ) : void
playerIndex int
Résultat void

Load() public méthode

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

OnNext() public méthode

public OnNext ( GameStateManager value ) : void
value GameStateManager
Résultat void

PlayerStatsController() public méthode

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

Unload() public méthode

public Unload ( ) : void
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

PlayerStats public_oe property

public PlayerStats,SmashBros.Models PlayerStats
Résultat SmashBros.Models.PlayerStats