Advertisement
Hakuhun

cucc

Nov 26th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 KB | None | 0 0
  1.         /// <summary>
  2.         /// A tábla játék mátrixába megváltoztat egy üres cellát az adott user cella típusára.
  3.         /// </summary>
  4.         /// <param name="u">Adott felhasználó</param>
  5.         /// <param name="x">Lövés sor paramétere - X</param>
  6.         /// <param name="y">Lövés oszlop paramétere - Y</param>
  7.         public void setToken(User u, int x, int y) {
  8.             Console.Write(this.getTableDimension() + " " + x + " " + y);
  9.             Console.WriteLine();
  10.             if (game_field[x,y].Celltype == Cell.CellType.EMPTY)
  11.             {
  12.                 game_field[x, y].Celltype = u.getCellType();
  13.                 u.addNOT();
  14.                 Console.WriteLine(u.ToString());
  15.             }
  16.             else
  17.             {
  18.                 Console.WriteLine("Az adott cella már foglalt");
  19.             }
  20.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement