mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-28 13:12:54 -04:00
Merge branch 'master' of https://github.com/ProjectSWGCore/NGECore2
Conflicts: .gitignore src/main/NGECore.java src/resources/objects/creature/CreatureObject.java src/resources/objects/mission/MissionObject.java src/resources/objects/tangible/TangibleObject.java src/services/chat/Mail.java src/services/mission/MissionObjective.java src/services/object/ObjectService.java src/services/playercities/PlayerCity.java
This commit is contained in:
@@ -63,15 +63,15 @@ public class BuildingObject extends TangibleObject implements IPersistent, Seria
|
||||
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);
|
||||
}
|
||||
@@ -91,6 +91,18 @@ public class BuildingObject extends TangibleObject implements IPersistent, Seria
|
||||
|
||||
}
|
||||
|
||||
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