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()
CMObjectpublic java.lang.String name()
CMObjectname in interface CMObjectEnvironmental.Name()public CMObject newInstance()
newInstance in interface CMObjectpublic void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public CMObject copyOf()
CMObjectpublic java.lang.String getID()
ClanPositiongetID in interface ClanPositionClanPosition.setID(String)public void setID(java.lang.String iD)
ClanPositionsetID in interface ClanPositioniD - the new iDClanPosition.getID()public int getRoleID()
ClanPositiongetRoleID in interface ClanPositionClanPosition.setRoleID(int)public void setRoleID(int roleID)
ClanPositionsetRoleID in interface ClanPositionroleID - the new role idClanPosition.getRoleID()public int getRank()
ClanPositiongetRank in interface ClanPositionClanPosition.setRank(int)public void setRank(int rank)
ClanPositionsetRank in interface ClanPositionrank - the new rankClanPosition.getRank()public java.lang.String getName()
ClanPositiongetName in interface ClanPositionClanPosition.setName(String)public void setName(java.lang.String name)
ClanPositionsetName in interface ClanPositionname - the new nameClanPosition.getName()public java.lang.String getPluralName()
ClanPositiongetPluralName in interface ClanPositionClanPosition.setPluralName(String)public void setPluralName(java.lang.String pluralName)
ClanPositionsetPluralName in interface ClanPositionpluralName - the new plural nameClanPosition.getPluralName()public double getMax()
ClanPositiongetMax in interface ClanPositionClanPosition.setMax(double)public void setMax(double max)
ClanPositionsetMax in interface ClanPositionmax - the new maxClanPosition.getMax()public java.lang.String getInnerMaskStr()
ClanPositiongetInnerMaskStr in interface ClanPositionClanPosition.setInnerMaskStr(String)public void setInnerMaskStr(java.lang.String innerMaskStr)
ClanPositionsetInnerMaskStr in interface ClanPositioninnerMaskStr - the new inner mask strClanPosition.getInnerMaskStr()public boolean isPublic()
ClanPositionisPublic in interface ClanPositionClanPosition.setPublic(boolean)public void setPublic(boolean isPublic)
ClanPositionsetPublic in interface ClanPositionisPublic - the new publicClanPosition.isPublic()public Clan.Authority[] getFunctionChart()
ClanPositiongetFunctionChart in interface ClanPositionClanPosition.setFunctionChart(com.planet_ink.coffee_mud.Common.interfaces.Clan.Authority[])public void setFunctionChart(Clan.Authority[] functionChart)
ClanPositionsetFunctionChart in interface ClanPositionfunctionChart - the new function chartClanPosition.getFunctionChart()public java.util.List<java.lang.String> getTitleAwards()
ClanPositiongetTitleAwards in interface ClanPositionpublic java.lang.String[] getStatCodes()
ModifiablegetStatCodes in interface ModifiableModifiable.getStat(String),
Modifiable.setStat(String, String)public int getSaveStatIndex()
ModifiablegetSaveStatIndex in interface ModifiableModifiable.getStatCodes(),
Modifiable.getStat(String),
Modifiable.setStat(String, String)public java.lang.String getStat(java.lang.String code)
ModifiablegetStat in interface Modifiablecode - the name of the field to read.Modifiable.getStatCodes()public boolean isStat(java.lang.String code)
ModifiableisStat in interface Modifiablecode - the name of the field to read.Modifiable.getStatCodes()public void setStat(java.lang.String code,
java.lang.String val)
ModifiablesetStat in interface Modifiablecode - 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