public static void WriteAttributes(Player player) { CleanConsole(); Console.WriteLine("ATTRIBUTES"); Console.WriteLine("Strength: " + player.Strength + "%"); Console.WriteLine("Dexterity: " + player.Dexterity + "%"); Console.WriteLine("Health: " + player.Health + "%"); Console.WriteLine("Intelligence: " + player.Intelligence + "%"); }
static void StartGame() { string playerName = IO.AskForName(); player = new Player(playerName); string playerClass = IO.AskForClass(); player.SetClass(playerClass); IO.WriteAttributes(player); IO.Pause(); }
public void Print(Player player) { for (int y = 0; y < Cells.GetLength(1); y++) { for (int x = 0; x < Cells.GetLength(0); x++) { if (Cells[x, y].Icon == Icon.ROOM && x == player.X && y == player.Y) { Console.Write(Icon.PLAYER); } else { Console.Write(Cells[x, y].Icon); } } Console.WriteLine(); } }