예제 #1
0
 public void AddHeavyEnemy(int x, int y)
 {
     if (enemyCount > enemyCap - 1)
     {
         return;
     }
     enemies[enemyCount] = new Heavy(x, y);
     enemyCount         += 1;
 }
예제 #2
0
 public void InitEnemyFromWorldLoc(char[,] world, int X, int Y)
 {
     if (enemyCount > enemyCap - 1)
     {
         return;
     }
     else if (world[X, Y] == Global.heavyAppearance)
     {
         enemies[enemyCount] = new Heavy(X, Y); enemyCount = enemyCount + 1;
     }
     else if (world[X, Y] == Global.lightAppearance)
     {
         enemies[enemyCount] = new Light(X, Y); enemyCount = enemyCount + 1;
     }
     else if (world[X, Y] == Global.SCAppearance)
     {
         enemies[enemyCount] = new SpecializedCombat(X, Y); enemyCount = enemyCount + 1;
     }
     else if (world[X, Y] == Global.bossAppearance)
     {
         enemies[enemyCount] = new Boss(X, Y); enemyCount = enemyCount + 1;
     }
 }