예제 #1
0
 public PlayerCursor(string player, GraphicsDevice aGraphicsDevice, BaseDisplay aParent) : base(aGraphicsDevice, aParent)
 {
     this.player = player;
     BackColor   = Color.White * 0.0f;
     IPC         = (IPlayerCursor)parent;
     IPC.Players.Add(player, this);
 }
예제 #2
0
        public BoardCursor(Board board, IPlayerCursor playerCursor)
        {
            _board        = board;
            _playerCursor = playerCursor;

            var players = _playerCursor.GetAll();

            Positions = new Dictionary <Player, int>(players.Count);
            foreach (var player in players)
            {
                SendToStart(player);
            }

            _freezeIndex = -1;
        }