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); }
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); }
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); }
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); }