forked from MagicBane/Server
hellgates maybe?
This commit is contained in:
@@ -169,7 +169,7 @@ public abstract class AbstractGameObject {
|
||||
return this.objectUUID;
|
||||
}
|
||||
|
||||
protected void setObjectUUID(int objectUUID) {
|
||||
public void setObjectUUID(int objectUUID) {
|
||||
this.objectUUID = objectUUID;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package engine.objects;
|
||||
|
||||
import engine.gameManager.HellgateManager;
|
||||
import engine.gameManager.ZoneManager;
|
||||
import engine.math.Vector3fImmutable;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Hellgate {
|
||||
public Zone parent;
|
||||
public ArrayList<Vector3fImmutable> entrances;
|
||||
public ArrayList<Mob> mobs;
|
||||
public ArrayList<Mob> mini_bosses;
|
||||
public Mob boss;
|
||||
|
||||
public Long completionTime;
|
||||
|
||||
public Hellgate(Integer zoneID){
|
||||
Zone parentZone = ZoneManager.getZoneByUUID(zoneID);
|
||||
if(parentZone == null){
|
||||
Logger.error("Failed To Spawn Hellgate");
|
||||
return;
|
||||
}
|
||||
this.parent = parentZone;
|
||||
this.entrances = new ArrayList<>();
|
||||
entrances.add(ZoneManager.getZoneByUUID(994).getLoc());
|
||||
entrances.add(ZoneManager.getZoneByUUID(996).getLoc());
|
||||
entrances.add(ZoneManager.getZoneByUUID(997).getLoc());
|
||||
entrances.add(ZoneManager.getZoneByUUID(998).getLoc());
|
||||
this.mobs = new ArrayList<>();
|
||||
this.mini_bosses = new ArrayList<>();
|
||||
this.completionTime = 0L;
|
||||
this.init();
|
||||
}
|
||||
|
||||
public void init(){
|
||||
HellgateManager.Spawn(this);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -87,7 +87,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
protected int loadID;
|
||||
protected float spawnRadius;
|
||||
//used by static mobs
|
||||
protected int parentZoneID;
|
||||
public int parentZoneID;
|
||||
protected float statLat;
|
||||
protected float statLon;
|
||||
protected float statAlt;
|
||||
|
||||
Reference in New Issue
Block a user