示例#1
0
        static void Main(string[] args)
        {
            bool tempGameIsRunning = true;

            EnemyAndPlayerManager.Init();
            RoomManager.Init();
            Console.SetBufferSize(250, 50);

            Console.WriteLine("Welcome to another world!");

            do
            {
                Console.WriteLine("1: Start game");
                Console.WriteLine("2: Exit game");
                string tempInput = Console.ReadLine();
                if (tempInput == "1")
                {
                    Diablo tempGame = new Diablo();
                }
                else if (tempInput == "2")
                {
                    tempGameIsRunning = false;
                    break;
                }
                else
                {
                    Console.Clear();
                    Console.WriteLine("Wrong Input");
                }
            }while (tempGameIsRunning);
        }
示例#2
0
 public void RemoveEnemy(int anID)
 {
     EnemyAndPlayerManager.EnemyIsDead(anID);
     myRoomEnemies.RemoveAt(anID);
     for (int i = myRoomEnemies.Count - 1; i != anID - 1; i--)
     {
         myRoomEnemies[i]--;
     }
 }
示例#3
0
 public void CreateEnemy(int aDamage, int aHealingPerRound, int aHealth, string aNameOfEnemy)
 {
     myRoomEnemies.Add(EnemyAndPlayerManager.AddEnemy(aDamage, aHealingPerRound, aHealth, aNameOfEnemy));
 }