コード例 #1
0
 public ChessBoard(IChessBoardUIControl chessBoardUI, Game game)
 {
     this.ChessBoardUI = chessBoardUI;
     Board             = new IChessPiece[8, 8];
     this.game         = game;
     ChessBoardUI.ChessPieceImageClicked += SquareClicked;
 }
コード例 #2
0
ファイル: Game.cs プロジェクト: hajkoB97/MultiplayerChessApp
 public Game(IChessBoardUIControl chessBoardUI, string id, IPlayer GameCreator, string token, IServerConnection service)
 {
     this.service    = service;
     GameId          = id;
     this.ChessBoard = new ChessBoard(chessBoardUI, this);
     AddPlayer(GameCreator);
     JoinToken          = token;
     GameInstancePlayer = GameCreator;
     eventAggregator.Subscribe(this);
 }