public class ResourceNodeProfile
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected float |
distance |
protected int |
id |
protected java.lang.String |
name |
protected java.util.HashMap<java.lang.Integer,ResourceNodeProfileSettings> |
settings |
protected double |
spawn_pecentage_max |
protected double |
spawn_percentage |
Constructor and Description |
---|
ResourceNodeProfile() |
ResourceNodeProfile(int id,
java.lang.String name,
float spawn_percentage,
float spawn_pecentage_max)
Constructor
|
Modifier and Type | Method and Description |
---|---|
float |
getDistance() |
int |
getId() |
java.lang.String |
getName() |
int |
getPriority(int id) |
ResourceNodeProfileSettings |
getSetting(int settingId) |
java.util.HashMap<java.lang.Integer,ResourceNodeProfileSettings> |
getSettings() |
double |
getSpawnPecentage() |
double |
getSpawnPecentageMax() |
void |
setDistance(float distance) |
void |
setId(int id) |
void |
setName(java.lang.String name) |
void |
setSpawnPecentage(double spawn_percentage) |
void |
setSpawnPecentageMax(double spawn_pecentage_max) |
int |
settingsCount() |
protected int id
protected java.lang.String name
protected double spawn_percentage
protected double spawn_pecentage_max
protected java.util.HashMap<java.lang.Integer,ResourceNodeProfileSettings> settings
protected float distance
public ResourceNodeProfile()
public ResourceNodeProfile(int id, java.lang.String name, float spawn_percentage, float spawn_pecentage_max)
name:
- The name of the factionreputation:
- the current level of reputationcategory:
- What category this faction belongs to.public int getId()
public void setId(int id)
public java.lang.String getName()
public void setName(java.lang.String name)
public double getSpawnPecentage()
public void setSpawnPecentage(double spawn_percentage)
public double getSpawnPecentageMax()
public void setSpawnPecentageMax(double spawn_pecentage_max)
public float getDistance()
public void setDistance(float distance)
public int settingsCount()
public int getPriority(int id)
public ResourceNodeProfileSettings getSetting(int settingId)
public java.util.HashMap<java.lang.Integer,ResourceNodeProfileSettings> getSettings()