예제 #1
0
 public PlayerScoredBallState(IBallController ballController, PlayerIndex playerIndex, IGameManager gameManager)
 {
     _ballController = ballController;
     _playerIndex = playerIndex;
     _gameManager = gameManager;
     GameScore = gameManager["GameScore"] as GameScore;
 }
예제 #2
0
        //private TextureManager _textureManager;
        #endregion

        #region Ctors

        public PlayingView(Microsoft.Xna.Framework.Game game)
            : base(game)
        {
            _entities = new List<ISpriteEntity>();
            camera = new Camera2D(Game);
            _gameScore = new GameScore();
            _hud = new HudView(Game);
        }
예제 #3
0
 public PlayerScoredBallState(GameScore gameScore, PlayerIndex playerIndex)
 {
     _playerIndex = playerIndex;
     GameScore = gameScore;
 }
예제 #4
0
 public PongGameManager(Microsoft.Xna.Framework.Game game) : base(game)
 {
     GameScore = new GameScore();
 }