Exemplo n.º 1
0
        public void addEnemy(int type, Vector2 position)
        {
            Enemy e;

            if (type == 98)
            {
                e = new SwampBoss();
            }
            else if (type == 99)
            {
                e = new DynaBoss();
            }
            else
            {
                e = new Enemy(type);
            }
            e.position = position;
            enemies.Add(e);
        }
Exemplo n.º 2
0
        public void addEnemy(int type, float xposition, float yposition)
        {
            Enemy e;

            if (type == 98)
            {
                e = new SwampBoss();
            }
            if (type == 99)
            {
                e = new DynaBoss();
            }
            else
            {
                e = new Enemy(type);
            }
            e.position = new Vector2(xposition, yposition);
            enemies.Add(e);
        }
Exemplo n.º 3
0
 public void addEnemy(int type, float xposition, float yposition)
 {
     Enemy e;
     if (type == 98)
         e = new SwampBoss();
     if (type == 99)
         e = new DynaBoss();
     else
         e = new Enemy(type);
     e.position = new Vector2(xposition, yposition);
     enemies.Add(e);
 }
Exemplo n.º 4
0
 public void addEnemy(int type, Vector2 position)
 {
     Enemy e;
     if (type == 98)
         e = new SwampBoss();
     else if (type == 99)
         e = new DynaBoss();
     else
         e = new Enemy(type);
     e.position = position;
     enemies.Add(e);
 }