Exemple #1
0
 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 + "%");
 }
Exemple #2
0
        static void StartGame() {
            string playerName = IO.AskForName();
            player = new Player(playerName);

            string playerClass = IO.AskForClass();
            player.SetClass(playerClass);

            IO.WriteAttributes(player);
            IO.Pause();
        }
Exemple #3
0
        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();
            }
        }