mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-28 13:12:54 -04:00
Static objects now use doids
This commit is contained in:
@@ -61,15 +61,15 @@ public class BuildingObject extends TangibleObject implements IPersistent {
|
||||
private short maximumStorageCapacity=0;
|
||||
private Vector<Long> entryList = new Vector<Long>(); // Preferably the OIDs should be stored, because of name changes
|
||||
private Vector<Long> banList = new Vector<Long>();
|
||||
|
||||
public BuildingObject() {
|
||||
super();
|
||||
|
||||
public BuildingObject(long objectID, Planet planet, Point3D position, Quaternion orientation, String Template) {
|
||||
super(objectID, planet, Template, position, orientation);
|
||||
messageBuilder = new BuildingMessageBuilder(this);
|
||||
this.setConditionDamage(100);
|
||||
}
|
||||
|
||||
public BuildingObject(long objectID, Planet planet, Point3D position, Quaternion orientation, String Template) {
|
||||
super(objectID, planet, Template, position, orientation);
|
||||
|
||||
public BuildingObject() {
|
||||
super();
|
||||
messageBuilder = new BuildingMessageBuilder(this);
|
||||
this.setConditionDamage(100);
|
||||
}
|
||||
@@ -89,6 +89,18 @@ public class BuildingObject extends TangibleObject implements IPersistent {
|
||||
|
||||
}
|
||||
|
||||
public int getCellNumberByObjectId(long objectId) {
|
||||
Vector<CellObject> cells = getCells();
|
||||
|
||||
for (CellObject cell : cells) {
|
||||
if (cell.getObjectID() == objectId) {
|
||||
return cell.getCellNumber();
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public float getMaintenanceAmount() {
|
||||
return maintenanceAmount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user