示例#1
0
        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);
        }
示例#2
0
        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;
        }