コード例 #1
0
 public PlayerScoredBallState(IBallController ballController, PlayerIndex playerIndex, IGameManager gameManager)
 {
     _ballController = ballController;
     _playerIndex = playerIndex;
     _gameManager = gameManager;
     GameScore = gameManager["GameScore"] as GameScore;
 }
コード例 #2
0
ファイル: PlayingView.cs プロジェクト: swallentin/XNA.Pong
        //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();
 }