public ResultsState(ActGame Host, ScoreReport Left, ScoreReport Right, SpriteFont Font) : base(Host) { this.Left = Left; this.Right = Right; this.sysFont = Font; }
public override GameState PerformStateChange() { GameState State = this; switch (RequestedState) { case GameStateID.Results: ScoreReport Left = new ScoreReport(); Left.Health = Re.LeftPlayer.ScoreValue.Health; Left.Score = Re.LeftPlayer.ScoreValue.Score; Left.Damage = -Fighters[1].health; ScoreReport Right = new ScoreReport(); Right.Health = Re.RightPlayer.ScoreValue.Health; Right.Score = Re.RightPlayer.ScoreValue.Score; Right.Damage = -Fighters[0].health; State = new ResultsState(Host, Left, Right, Host.sysFont); break; } RequestedState = GameStateID.Invalid; return(State); }
public override GameState PerformStateChange() { GameState State = this; switch (RequestedState) { case GameStateID.Results: ScoreReport Left = new ScoreReport(); Left.Health = Re.LeftPlayer.ScoreValue.Health; Left.Score = Re.LeftPlayer.ScoreValue.Score; Left.Damage = -Fighters[1].health; ScoreReport Right = new ScoreReport(); Right.Health = Re.RightPlayer.ScoreValue.Health; Right.Score = Re.RightPlayer.ScoreValue.Score; Right.Damage = -Fighters[0].health; State = new ResultsState(Host, Left, Right, Host.sysFont); break; } RequestedState = GameStateID.Invalid; return State; }