Esempio n. 1
0
 private void manageEnemies()
 {
     if (canNextAppear())
     {
         BaseEnemy b = next();
         if (b != null)
         {
             mGroup.addGameObject(b);
             b.appear();
             startTimer();
         }
     }
 }
Esempio n. 2
0
        public void addEnemy(EnemiesTypes type, Color c, Vector2 location)
        {
            BaseEnemy enemy = null;

            switch (type)
            {
            case EnemiesTypes.CrabCrab:
                enemy = new EnemyCrabCrab(c, location);
                break;

            case EnemiesTypes.Lizardo:
                enemy = new Lizardo(c, location);
                break;

            case EnemiesTypes.Mongo:
                enemy = new EnemyMongo(EnemyMongo.SKIN.Normal, c, location);
                break;

            case EnemiesTypes.MongoPirate:
                enemy = new EnemyMongo(EnemyMongo.SKIN.Pirate, c, location);
                break;

            case EnemiesTypes.Bako:
                enemy = new Bako(c, location);
                break;

            case EnemiesTypes.Kaktos:
                enemy = new Kaktos(location);
                break;

            case EnemiesTypes.Rocker:
                enemy = new Rocker(c, location);
                break;

            case EnemiesTypes.Balloon:
                //enemy = new Balloon(c, location);
                break;
            }

            enemy.setLocation(location);
            mList.Add(enemy);
        }
Esempio n. 3
0
        public void addWave(int totalOfEnemies, BaseEnemy kind)
        {
            //GameObjectsGroup<BaseEnemy> mGroupOfEnemies = new GameObjectsGroup<BaseEnemy>();

//            mGroupOfEnemies.add
        }