Exemplo n.º 1
0
 public static void DrawWorldAtCoordinate(int x, int y)
 {
     if (World.player.CoordX == x && World.player.CoordY == y)
     {
         World.player.Draw();
         return;
     }
     if (World.isActorPresent(x, y))
     {
         World.getActorAt(x, y).Draw();
         return;
     }
     if (World.isItemPresent(x, y))
     {
         World.getItemAt(x, y).Draw();
         return;
     }
     Console.SetCursorPosition(x, y);
     Console.ForegroundColor = World.map[x, y].Color;
     Console.Write(World.map[x, y].Appearance);
 }