mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-22 07:13:28 -04:00
Structure terminal work
Creation of player_house_deed class terminal menus made py scripts arranged
This commit is contained in:
@@ -23,34 +23,44 @@ package resources.objects.building;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import resources.objects.cell.CellObject;
|
||||
|
||||
import com.sleepycat.je.Environment;
|
||||
import com.sleepycat.je.Transaction;
|
||||
|
||||
import resources.objects.tangible.TangibleObject;
|
||||
|
||||
import com.sleepycat.persist.model.Entity;
|
||||
import com.sleepycat.persist.model.NotPersistent;
|
||||
|
||||
import engine.clients.Client;
|
||||
import engine.resources.objects.IPersistent;
|
||||
import engine.resources.scene.Planet;
|
||||
import engine.resources.scene.Point3D;
|
||||
import engine.resources.scene.Quaternion;
|
||||
|
||||
@Entity(version=0)
|
||||
@Entity(version=2)
|
||||
public class BuildingObject extends TangibleObject implements IPersistent {
|
||||
|
||||
@NotPersistent
|
||||
private BuildingMessageBuilder messageBuilder;
|
||||
@NotPersistent
|
||||
private Transaction txn;
|
||||
|
||||
private float maintenanceAmount = 0;
|
||||
private String deedTemplate;
|
||||
|
||||
public BuildingObject() {
|
||||
super();
|
||||
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);
|
||||
messageBuilder = new BuildingMessageBuilder(this);
|
||||
this.setConditionDamage(100);
|
||||
}
|
||||
|
||||
public CellObject getCellByCellNumber(final int cellNumber) {
|
||||
@@ -67,6 +77,22 @@ public class BuildingObject extends TangibleObject implements IPersistent {
|
||||
return ref.get();
|
||||
|
||||
}
|
||||
|
||||
public float getMaintenanceAmount() {
|
||||
return maintenanceAmount;
|
||||
}
|
||||
|
||||
public void setMaintenanceAmount(float maintenanceAmount) {
|
||||
this.maintenanceAmount = maintenanceAmount;
|
||||
}
|
||||
|
||||
public void setDeedTemplate(String deedTemplate){
|
||||
this.deedTemplate = deedTemplate;
|
||||
}
|
||||
|
||||
public String getDeedTemplate(){
|
||||
return this.deedTemplate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendBaselines(Client destination) {
|
||||
|
||||
Reference in New Issue
Block a user