Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// A tábla játék mátrixába megváltoztat egy üres cellát az adott user cella típusára.
- /// </summary>
- /// <param name="u">Adott felhasználó</param>
- /// <param name="x">Lövés sor paramétere - X</param>
- /// <param name="y">Lövés oszlop paramétere - Y</param>
- public void setToken(User u, int x, int y) {
- Console.Write(this.getTableDimension() + " " + x + " " + y);
- Console.WriteLine();
- if (game_field[x,y].Celltype == Cell.CellType.EMPTY)
- {
- game_field[x, y].Celltype = u.getCellType();
- u.addNOT();
- Console.WriteLine(u.ToString());
- }
- else
- {
- Console.WriteLine("Az adott cella már foglalt");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement