C# 클래스 SmashBros.Controllers.PlayerStatsController

Holds one players gamestats and updates it. Also displays som stats on the screen, like damgePercent
상속: Controller
파일 보기 프로젝트 열기: Grutn/TDT4240-X2

공개 프로퍼티들

프로퍼티 타입 설명
PlayerStats SmashBros.Models.PlayerStats

공개 메소드들

메소드 설명
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

메소드 상세

Deactivate() 공개 메소드

public Deactivate ( ) : void
리턴 void

DidHit() 공개 메소드

public DidHit ( int damageDone, int playerIndexReciever ) : void
damageDone int
playerIndexReciever int
리턴 void

GotHit() 공개 메소드

public GotHit ( int damagePoints, int playerIndex ) : void
damagePoints int
playerIndex int
리턴 void

GotKilled() 공개 메소드

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

Killed() 공개 메소드

public Killed ( int playerIndex ) : void
playerIndex int
리턴 void

Load() 공개 메소드

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

OnNext() 공개 메소드

public OnNext ( GameStateManager value ) : void
value GameStateManager
리턴 void

PlayerStatsController() 공개 메소드

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

Unload() 공개 메소드

public Unload ( ) : void
리턴 void

Update() 공개 메소드

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

프로퍼티 상세

PlayerStats 공개적으로 프로퍼티

public PlayerStats,SmashBros.Models PlayerStats
리턴 SmashBros.Models.PlayerStats