mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-13 03:13:26 -04:00
71 lines
1.6 KiB
Java
71 lines
1.6 KiB
Java
package services.housing;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import java.util.Vector;
|
|
|
|
import engine.resources.scene.Point3D;
|
|
|
|
public class HouseTemplate
|
|
{
|
|
private String deedTemplate;
|
|
private String buildingTemplate;
|
|
private int lotCost;
|
|
private int defaultItemLimit;
|
|
private Vector<String> placeablePlanets;
|
|
private Map<String, Point3D> buildingSigns;
|
|
|
|
public HouseTemplate(String deedTemplate, String buildingTemplate, int lotCost)
|
|
{
|
|
this.deedTemplate = deedTemplate;
|
|
this.buildingTemplate = buildingTemplate;
|
|
this.lotCost = lotCost;
|
|
this.defaultItemLimit = 50;
|
|
this.placeablePlanets = new Vector<String>();
|
|
this.buildingSigns = new HashMap<String, Point3D>();
|
|
}
|
|
|
|
public void addBuildingSign(String signTemplate, Point3D signPosition)
|
|
{
|
|
buildingSigns.put(signTemplate, signPosition);
|
|
}
|
|
public void addPlaceablePlanet(String planetName)
|
|
{
|
|
this.placeablePlanets.add(planetName);
|
|
}
|
|
public void setDefaultItemLimit(int itemLimit)
|
|
{
|
|
this.defaultItemLimit = itemLimit;
|
|
}
|
|
|
|
public String getDeedTemplate()
|
|
{
|
|
return this.deedTemplate;
|
|
}
|
|
public String getBuildingTemplate()
|
|
{
|
|
return this.buildingTemplate;
|
|
}
|
|
public Map<String, Point3D> getBuildingSigns()
|
|
{
|
|
return this.buildingSigns;
|
|
}
|
|
public Vector<String> getPlaceablePlanets()
|
|
{
|
|
return this.placeablePlanets;
|
|
}
|
|
public boolean canBePlacedOn(String planetName)
|
|
{
|
|
if(placeablePlanets.contains(planetName)) return true;
|
|
else return false;
|
|
}
|
|
public int getLotCost()
|
|
{
|
|
return this.lotCost;
|
|
}
|
|
public int getDefaultItemLimit()
|
|
{
|
|
return this.defaultItemLimit;
|
|
}
|
|
}
|