示例#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);
        }
示例#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);
        }
示例#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);
 }
示例#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);
 }