Ejemplo n.º 1
0
 public PlayerScoredBallState(IBallController ballController, PlayerIndex playerIndex, IGameManager gameManager)
 {
     _ballController = ballController;
     _playerIndex = playerIndex;
     _gameManager = gameManager;
     GameScore = gameManager["GameScore"] as GameScore;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public PlayerScoredBallState(GameScore gameScore, PlayerIndex playerIndex)
 {
     _playerIndex = playerIndex;
     GameScore = gameScore;
 }
Ejemplo n.º 4
0
 public PongGameManager(Microsoft.Xna.Framework.Game game) : base(game)
 {
     GameScore = new GameScore();
 }