Exemple #1
0
        public MapModel(Game game, Size size, Score score, string backgroundName)
            : base(game, new Pointf(), size, new Velocity())
        {
            mScore = score;
            mMapComponents = new List<Model>();

            background = game.Content.Load<Texture2D>(backgroundName);
            bgFrame = new Rectangle(0, 0, game.GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height);
        }
        public ResultState(Game game, int player1Score, int player2Score, Score.AlphaScore score, string time)
            : base(game)
        {
            mP1Score = player1Score;
            mP2Score = player2Score;
            mAlpha = score;
            mTime = time;

            mSolo = false;
        }
        public ResultState(Game game, int player1Score, int player2Score, Score.AlphaScore score1, Score.AlphaScore score2, string time1, string time2)
            : base(game)
        {
            mP1Score = player1Score;
            mP2Score = player2Score;
            mP1Time = time1;
            mP2Time = time2;
            mP1Alpha = score1;
            mP2Alpha = score2;

            mSolo = true;
        }
 public void ShowResults(int p1score, int p2score, string time1, string time2, Score.AlphaScore alpha1, Score.AlphaScore alpha2)
 {
     mResultState = new ResultState(mGame, p1score, p2score, alpha1, alpha2, time1, time2);
     mState = GameState.RESULT_SCREEN;
 }