Exemplo n.º 1
0
 public void InitGame()
 {
     map = new Map();
     player1 = new Player(1, true);
     player2 = new Player(2, false);
     gameTurn = true;
     playAgain = true;
     gamePlaying = true;
     whiteEchec = false;
     blackEchec = false;
 }
Exemplo n.º 2
0
 private void LoadPiecesTextures(Player player, String name)
 {
     player.PieceTextures.Add(String.Format("{0} King", name), Content.Load<Texture2D>(String.Format("{0}king", name.ToLower())));
     player.PieceTextures.Add(String.Format("{0} Knight", name), Content.Load<Texture2D>(String.Format("{0}knight", name.ToLower())));
     player.PieceTextures.Add(String.Format("{0} Pawn", name), Content.Load<Texture2D>(String.Format("{0}pawn", name.ToLower())));
     player.PieceTextures.Add(String.Format("{0} Queen", name), Content.Load<Texture2D>(String.Format("{0}queen", name.ToLower())));
     player.PieceTextures.Add(String.Format("{0} Rook", name), Content.Load<Texture2D>(String.Format("{0}rook", name.ToLower())));
     player.PieceTextures.Add(String.Format("{0} Bishop", name), Content.Load<Texture2D>(String.Format("{0}bishop", name.ToLower())));
 }