ClanPosition
, CMCommon
, CMObject
, Modifiable
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class DefaultClanPosition extends java.lang.Object implements ClanPosition
Modifier and Type | Field | Description |
---|---|---|
protected Clan.Authority[] |
functionChart |
a chart of whether this position can perform the indexed function in this government
|
protected java.lang.String |
ID |
the named ID of the position
|
protected java.lang.String |
innerMaskStr |
the internal zapper mask for internal requirements to this position
|
protected boolean |
isPublic |
the internal zapper mask for internal requirements to this position
|
protected double |
max |
the maximum number of members that can hold this position
|
protected java.lang.String |
name |
the name of the position within this government
|
protected java.lang.String |
pluralName |
the plural name of the position within this government
|
protected int |
rank |
the ordered rank of the position
|
protected int |
roleID |
the named ID of the position
|
protected java.util.List<java.lang.String> |
titleAwards |
the list of awarded titles for this position
|
idConverter
Constructor | Description |
---|---|
DefaultClanPosition() |
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(CMObject o) |
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
Clan.Authority[] |
getFunctionChart() |
Gets the function chart.
|
java.lang.String |
getID() |
Gets the iD.
|
java.lang.String |
getInnerMaskStr() |
Gets the inner mask str.
|
double |
getMax() |
Gets the max members in this position.
|
java.lang.String |
getName() |
Gets the name.
|
java.lang.String |
getPluralName() |
Gets the plural name.
|
int |
getRank() |
Gets the rank.
|
int |
getRoleID() |
Gets the role id.
|
int |
getSaveStatIndex() |
Returns the index into the stat codes array where extra savable fields begins.
|
java.lang.String |
getStat(java.lang.String code) |
An alternative means of retreiving the values of those fields on this object which are modifiable at
run-time by builders.
|
java.lang.String[] |
getStatCodes() |
Returns an array of the string names of those fields which are modifiable on this object at run-time by
builders.
|
java.util.List<java.lang.String> |
getTitleAwards() |
Returns a list of titles granted to players of clans
in this position.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
boolean |
isPublic() |
Checks if is public.
|
boolean |
isStat(java.lang.String code) |
An alternative means of retreiving the values of those fields on this object which are modifiable at
run-time by builders.
|
java.lang.String |
name() |
The displayable name of this object.
|
CMObject |
newInstance() |
return a new instance of the object
|
void |
setFunctionChart(Clan.Authority[] functionChart) |
Sets the function chart.
|
void |
setID(java.lang.String iD) |
Sets the iD.
|
void |
setInnerMaskStr(java.lang.String innerMaskStr) |
Sets the inner mask str.
|
void |
setMax(double max) |
Sets the max members in this position.
|
void |
setName(java.lang.String name) |
Sets the name.
|
void |
setPluralName(java.lang.String pluralName) |
Sets the plural name.
|
void |
setPublic(boolean isPublic) |
Sets the public.
|
void |
setRank(int rank) |
Sets the rank.
|
void |
setRoleID(int roleID) |
Sets the role id.
|
void |
setStat(java.lang.String code,
java.lang.String val) |
An alternative means of setting the values of those fields on this object which are modifiable at
run-time by builders.
|
java.lang.String |
toString() |
protected java.lang.String ID
protected int roleID
protected int rank
protected java.lang.String name
protected java.lang.String pluralName
protected double max
protected java.lang.String innerMaskStr
protected boolean isPublic
protected Clan.Authority[] functionChart
protected final java.util.List<java.lang.String> titleAwards
public java.lang.String ID()
CMObject
public java.lang.String name()
CMObject
name
in interface CMObject
Environmental.Name()
public CMObject newInstance()
newInstance
in interface CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
public CMObject copyOf()
CMObject
public java.lang.String getID()
ClanPosition
getID
in interface ClanPosition
ClanPosition.setID(String)
public void setID(java.lang.String iD)
ClanPosition
setID
in interface ClanPosition
iD
- the new iDClanPosition.getID()
public int getRoleID()
ClanPosition
getRoleID
in interface ClanPosition
ClanPosition.setRoleID(int)
public void setRoleID(int roleID)
ClanPosition
setRoleID
in interface ClanPosition
roleID
- the new role idClanPosition.getRoleID()
public int getRank()
ClanPosition
getRank
in interface ClanPosition
ClanPosition.setRank(int)
public void setRank(int rank)
ClanPosition
setRank
in interface ClanPosition
rank
- the new rankClanPosition.getRank()
public java.lang.String getName()
ClanPosition
getName
in interface ClanPosition
ClanPosition.setName(String)
public void setName(java.lang.String name)
ClanPosition
setName
in interface ClanPosition
name
- the new nameClanPosition.getName()
public java.lang.String getPluralName()
ClanPosition
getPluralName
in interface ClanPosition
ClanPosition.setPluralName(String)
public void setPluralName(java.lang.String pluralName)
ClanPosition
setPluralName
in interface ClanPosition
pluralName
- the new plural nameClanPosition.getPluralName()
public double getMax()
ClanPosition
getMax
in interface ClanPosition
ClanPosition.setMax(double)
public void setMax(double max)
ClanPosition
setMax
in interface ClanPosition
max
- the new maxClanPosition.getMax()
public java.lang.String getInnerMaskStr()
ClanPosition
getInnerMaskStr
in interface ClanPosition
ClanPosition.setInnerMaskStr(String)
public void setInnerMaskStr(java.lang.String innerMaskStr)
ClanPosition
setInnerMaskStr
in interface ClanPosition
innerMaskStr
- the new inner mask strClanPosition.getInnerMaskStr()
public boolean isPublic()
ClanPosition
isPublic
in interface ClanPosition
ClanPosition.setPublic(boolean)
public void setPublic(boolean isPublic)
ClanPosition
setPublic
in interface ClanPosition
isPublic
- the new publicClanPosition.isPublic()
public Clan.Authority[] getFunctionChart()
ClanPosition
getFunctionChart
in interface ClanPosition
ClanPosition.setFunctionChart(com.planet_ink.coffee_mud.Common.interfaces.Clan.Authority[])
public void setFunctionChart(Clan.Authority[] functionChart)
ClanPosition
setFunctionChart
in interface ClanPosition
functionChart
- the new function chartClanPosition.getFunctionChart()
public java.util.List<java.lang.String> getTitleAwards()
ClanPosition
getTitleAwards
in interface ClanPosition
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes
in interface Modifiable
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public int getSaveStatIndex()
Modifiable
getSaveStatIndex
in interface Modifiable
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public java.lang.String getStat(java.lang.String code)
Modifiable
getStat
in interface Modifiable
code
- the name of the field to read.Modifiable.getStatCodes()
public boolean isStat(java.lang.String code)
Modifiable
isStat
in interface Modifiable
code
- the name of the field to read.Modifiable.getStatCodes()
public void setStat(java.lang.String code, java.lang.String val)
Modifiable
setStat
in interface Modifiable
code
- the name of the field to setval
- the value to set the field toModifiable.getStatCodes()
public java.lang.String toString()
toString
in class java.lang.Object