|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Common.DefaultClanGovernment
public class DefaultClanGovernment
Field Summary | |
---|---|
int |
acceptPos
The role automatically assigned to those who are accepted |
Clan.AutoPromoteFlag |
autoPromoteBy
Whether an unfilled topRole is automatically filled by those who meet its innermask |
int |
autoRole
The role automatically assigned to those who apply successfully |
java.lang.String |
category
The category of this government type. |
protected int[] |
clanAbilityLevels
|
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,SearchIDList<Ability>>> |
clanAbilityMap
|
protected java.lang.String[] |
clanAbilityNames
|
protected java.lang.String[] |
clanAbilityParms
|
protected int[] |
clanAbilityProficiencies
|
protected boolean[] |
clanAbilityQuals
|
protected java.util.Set<java.lang.Integer>[] |
clanAbilityRoles
|
protected int[] |
clanEffectLevels
|
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,SearchIDList<Ability>>> |
clanEffectMap
|
protected java.lang.String[] |
clanEffectNames
|
protected java.lang.String[] |
clanEffectParms
|
protected java.util.Set<java.lang.Integer>[] |
clanEffectRoles
|
boolean |
conquestByWorship
Whether loyalty and conquest are determined by what deity the mobs are |
boolean |
conquestEnabled
Whether conquest is enabled for this clan |
boolean |
conquestItemLoyalty
Whether clan items increase loyalty in conquered areas for this clan type |
static java.lang.String |
DEFAULT_XP_FORMULA
|
static java.util.List<Ability> |
empty
|
static SearchIDList<Ability> |
emptyIDs
|
java.lang.String |
entryScriptParam
Entry script parameter |
java.lang.String |
exitScriptParam
Exit script parameter |
java.lang.String |
helpStr
A save help entry of this government type for players |
int |
ID
If this is a default government type, this is its ID, otherwise -1 |
boolean |
isDefault
Whether this is the default government |
boolean |
isFamilyOnly
Whether mambers must all be in the same family |
boolean |
isPublic
Whether this clan type is shown on the list |
boolean |
isRivalrous
Whether clans made from this government are rivalrous by default |
int[] |
levelProgression
The list of xp amounts to progress in level |
java.lang.String |
longDesc
A long description of this government type for players |
int |
maxVoteDays
maximum number of mud days a vote will go on for |
java.lang.String |
name
The name of this government type, which is its identifier when ID above is -1 |
java.lang.Integer |
overrideMinMembers
The number of minimum members for the clan to survive -- overrides coffeemud.ini |
protected java.util.Map<java.lang.Object,ClanPosition> |
positionMap
A fast-lookup cache for positions |
ClanPosition[] |
positions
The list of ClanPosition objects for each holdable position in this government |
java.lang.String |
requiredMaskStr
Zapper mask for requirements to even apply |
java.lang.String |
shortDesc
A short description of this government type for players |
int |
voteQuorumPct
minimum % of voters who must have voted for a vote to be valid if time expires |
CMath.CompiledFormula |
xpCalculationFormula
|
java.lang.String |
xpCalculationFormulaStr
uncompiled level xp calculation formula |
Constructor Summary | |
---|---|
DefaultClanGovernment()
|
Method Summary | |
---|---|
ClanPosition |
addPosition()
Adds the position. |
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. |
void |
delPosition(ClanPosition pos)
Del position. |
ClanPosition |
findPositionRole(java.lang.Integer roleID)
returns clan position by the given role id |
ClanPosition |
findPositionRole(java.lang.String pos)
returns clan position based on role id, or some part of its id or name. |
int |
getAcceptPos()
Gets the accept pos. |
Clan.AutoPromoteFlag |
getAutoPromoteBy()
Gets the auto promote by. |
int |
getAutoRole()
Gets the auto role. |
java.lang.String |
getCategory()
Gets the category. |
SearchIDList<Ability> |
getClanLevelAbilities(MOB mob,
Clan clan,
java.lang.Integer level)
Return the list of abilities owned by someone who is part of a clan of the given level. |
ChameleonList<Ability> |
getClanLevelEffects(MOB mob,
Clan clan,
java.lang.Integer level)
Return the list of effects owned by someone who is part of a clan of the given level. |
java.util.List<Ability> |
getClanLevelEffectsList(java.lang.Integer mobClanRole,
java.lang.Integer level)
|
ChameleonList<Ability> |
getEmptyClanLevelEffects(MOB mob,
Clan clan)
|
java.lang.String |
getEntryScript()
Gets the Scriptable parm when joining/creating a clan. |
java.lang.String |
getExitScript()
Gets the Scriptable parm when resigning/exiling a clan. |
java.lang.String |
getHelpStr()
Gets the help str. |
int |
getID()
Gets the iD. |
int[] |
getLevelProgression()
Gets the level progression. |
java.lang.String |
getLongDesc()
Gets the long desc. |
int |
getMaxVoteDays()
Gets the max vote days. |
java.lang.String |
getName()
Gets the name. |
java.lang.Integer |
getOverrideMinMembers()
Gets the override min members. |
ClanPosition |
getPosition(java.lang.String pos)
Gets the position. |
ClanPosition[] |
getPositions()
Gets the positions. |
java.lang.String |
getRequiredMaskStr()
Gets the required mask str. |
int |
getSaveStatIndex()
Returns the index into the stat codes array where extra savable fields begins. |
java.lang.String |
getShortDesc()
Gets the short desc. |
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. |
int |
getVoteQuorumPct()
Gets the vote quorum pct. |
CMath.CompiledFormula |
getXPCalculationFormula()
Returns the compiled xp calculation formula |
java.lang.String |
getXpCalculationFormulaStr()
Gets the xp calculation formula. |
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 |
isConquestByWorship()
Checks if is conquest by worship. |
boolean |
isConquestEnabled()
Checks if is conquest enabled. |
boolean |
isConquestItemLoyalty()
Checks if is conquest item loyalty. |
boolean |
isDefault()
Checks if is default. |
boolean |
isFamilyOnly()
Checks if is family only. |
boolean |
isPublic()
Checks if is public. |
boolean |
isRivalrous()
Returns true if this clan is rivalrous with other rivalrous clans, meaning that pvp is enabled between them, and war can be declared between them. |
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 |
setAcceptPos(int acceptPos)
Sets the accept pos. |
void |
setAutoPromoteBy(Clan.AutoPromoteFlag autoPromoteBy)
Sets the auto promote by. |
void |
setAutoRole(int autoRole)
Sets the auto role. |
void |
setCategory(java.lang.String category)
Sets the category. |
void |
setConquestByWorship(boolean conquestByWorship)
Sets the conquest by worship. |
void |
setConquestEnabled(boolean conquestEnabled)
Sets the conquest enabled. |
void |
setConquestItemLoyalty(boolean conquestItemLoyalty)
Sets the conquest item loyalty. |
void |
setDefault(boolean isDefault)
Sets the default. |
void |
setEntryScript(java.lang.String scriptParm)
Sets the Scriptable parm when joining/creating a clan. |
void |
setExitScript(java.lang.String scriptParm)
Sets the Scriptable parm when resigning/exiling a clan. |
void |
setFamilyOnly(boolean isFamilyOnly)
Sets the family only. |
void |
setID(int iD)
Sets the iD. |
void |
setLevelProgression(int[] levelProgression)
Sets the level progression. |
void |
setLongDesc(java.lang.String longDesc)
Sets the long desc. |
void |
setMaxVoteDays(int maxVoteDays)
Sets the max vote days. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setOverrideMinMembers(java.lang.Integer overrideMinMembers)
Sets the override min members. |
void |
setPositions(ClanPosition[] positions)
Sets the positions. |
void |
setPublic(boolean isPublic)
Sets the public. |
void |
setRequiredMaskStr(java.lang.String requiredMaskStr)
Sets the required mask str. |
void |
setRivalrous(boolean isRivalrous)
Set to true if this clan is rivalrous with other rivalrous clans, meaning that pvp is enabled between them, and war can be declared |
void |
setShortDesc(java.lang.String shortDesc)
Sets the short desc. |
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. |
void |
setVoteQuorumPct(int voteQuorumPct)
Sets the vote quorum pct. |
void |
setXpCalculationFormulaStr(java.lang.String newXpCalculationFormula)
Sets the xp calculation formula. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int ID
public java.lang.String name
public java.lang.String category
public int autoRole
public int acceptPos
public java.lang.String shortDesc
public java.lang.String longDesc
public java.lang.String requiredMaskStr
public java.lang.String entryScriptParam
public java.lang.String exitScriptParam
public boolean isPublic
public boolean isFamilyOnly
public boolean isRivalrous
public java.lang.Integer overrideMinMembers
public boolean conquestEnabled
public boolean conquestItemLoyalty
public boolean conquestByWorship
public int maxVoteDays
public int voteQuorumPct
public java.lang.String xpCalculationFormulaStr
public boolean isDefault
public ClanPosition[] positions
public Clan.AutoPromoteFlag autoPromoteBy
protected java.util.Map<java.lang.Object,ClanPosition> positionMap
public static final SearchIDList<Ability> emptyIDs
public static final java.util.List<Ability> empty
public static final java.lang.String DEFAULT_XP_FORMULA
public CMath.CompiledFormula xpCalculationFormula
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,SearchIDList<Ability>>> clanAbilityMap
protected java.lang.String[] clanEffectNames
protected int[] clanEffectLevels
protected java.lang.String[] clanEffectParms
protected java.util.Set<java.lang.Integer>[] clanEffectRoles
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,SearchIDList<Ability>>> clanEffectMap
protected java.lang.String[] clanAbilityNames
protected int[] clanAbilityLevels
protected int[] clanAbilityProficiencies
protected boolean[] clanAbilityQuals
protected java.util.Set<java.lang.Integer>[] clanAbilityRoles
protected java.lang.String[] clanAbilityParms
public int[] levelProgression
public java.lang.String helpStr
Constructor Detail |
---|
public DefaultClanGovernment()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface 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
copyOf
in interface CMObject
public int getID()
ClanGovernment
getID
in interface ClanGovernment
public void setID(int iD)
ClanGovernment
setID
in interface ClanGovernment
iD
- the new iDpublic java.lang.String getName()
ClanGovernment
getName
in interface ClanGovernment
public void setName(java.lang.String name)
ClanGovernment
setName
in interface ClanGovernment
name
- the new namepublic java.lang.String getCategory()
ClanGovernment
getCategory
in interface ClanGovernment
public void setCategory(java.lang.String category)
ClanGovernment
setCategory
in interface ClanGovernment
category
- the new categorypublic int getAutoRole()
ClanGovernment
getAutoRole
in interface ClanGovernment
public void setAutoRole(int autoRole)
ClanGovernment
setAutoRole
in interface ClanGovernment
autoRole
- the new auto rolepublic boolean isRivalrous()
ClanGovernment
isRivalrous
in interface ClanGovernment
public void setRivalrous(boolean isRivalrous)
ClanGovernment
setRivalrous
in interface ClanGovernment
isRivalrous
- true or falsepublic int getAcceptPos()
ClanGovernment
getAcceptPos
in interface ClanGovernment
public void setAcceptPos(int acceptPos)
ClanGovernment
setAcceptPos
in interface ClanGovernment
acceptPos
- the new accept pospublic java.lang.String getShortDesc()
ClanGovernment
getShortDesc
in interface ClanGovernment
public void setShortDesc(java.lang.String shortDesc)
ClanGovernment
setShortDesc
in interface ClanGovernment
shortDesc
- the new short descpublic java.lang.String getLongDesc()
ClanGovernment
getLongDesc
in interface ClanGovernment
public void setLongDesc(java.lang.String longDesc)
ClanGovernment
setLongDesc
in interface ClanGovernment
longDesc
- the new long descpublic java.lang.String getRequiredMaskStr()
ClanGovernment
getRequiredMaskStr
in interface ClanGovernment
public void setRequiredMaskStr(java.lang.String requiredMaskStr)
ClanGovernment
setRequiredMaskStr
in interface ClanGovernment
requiredMaskStr
- the new required mask strpublic boolean isPublic()
ClanGovernment
isPublic
in interface ClanGovernment
public void setPublic(boolean isPublic)
ClanGovernment
setPublic
in interface ClanGovernment
isPublic
- the new publicpublic boolean isFamilyOnly()
ClanGovernment
isFamilyOnly
in interface ClanGovernment
public void setFamilyOnly(boolean isFamilyOnly)
ClanGovernment
setFamilyOnly
in interface ClanGovernment
isFamilyOnly
- the new family onlypublic java.lang.Integer getOverrideMinMembers()
ClanGovernment
getOverrideMinMembers
in interface ClanGovernment
public void setOverrideMinMembers(java.lang.Integer overrideMinMembers)
ClanGovernment
setOverrideMinMembers
in interface ClanGovernment
overrideMinMembers
- the new override min memberspublic boolean isConquestEnabled()
ClanGovernment
isConquestEnabled
in interface ClanGovernment
public void setConquestEnabled(boolean conquestEnabled)
ClanGovernment
setConquestEnabled
in interface ClanGovernment
conquestEnabled
- the new conquest enabledpublic boolean isConquestItemLoyalty()
ClanGovernment
isConquestItemLoyalty
in interface ClanGovernment
public void setConquestItemLoyalty(boolean conquestItemLoyalty)
ClanGovernment
setConquestItemLoyalty
in interface ClanGovernment
conquestItemLoyalty
- the new conquest item loyaltypublic boolean isConquestByWorship()
ClanGovernment
isConquestByWorship
in interface ClanGovernment
public void setConquestByWorship(boolean conquestByWorship)
ClanGovernment
setConquestByWorship
in interface ClanGovernment
conquestByWorship
- the new conquest by worshippublic int getMaxVoteDays()
ClanGovernment
getMaxVoteDays
in interface ClanGovernment
public void setMaxVoteDays(int maxVoteDays)
ClanGovernment
setMaxVoteDays
in interface ClanGovernment
maxVoteDays
- the new max vote dayspublic int getVoteQuorumPct()
ClanGovernment
getVoteQuorumPct
in interface ClanGovernment
public void setVoteQuorumPct(int voteQuorumPct)
ClanGovernment
setVoteQuorumPct
in interface ClanGovernment
voteQuorumPct
- the new vote quorum pctpublic java.lang.String getXpCalculationFormulaStr()
ClanGovernment
getXpCalculationFormulaStr
in interface ClanGovernment
public CMath.CompiledFormula getXPCalculationFormula()
ClanGovernment
getXPCalculationFormula
in interface ClanGovernment
public void setXpCalculationFormulaStr(java.lang.String newXpCalculationFormula)
ClanGovernment
setXpCalculationFormulaStr
in interface ClanGovernment
newXpCalculationFormula
- the new xp calculation formulapublic boolean isDefault()
ClanGovernment
isDefault
in interface ClanGovernment
public void setDefault(boolean isDefault)
ClanGovernment
setDefault
in interface ClanGovernment
isDefault
- the new defaultpublic ClanPosition[] getPositions()
ClanGovernment
getPositions
in interface ClanGovernment
public void setPositions(ClanPosition[] positions)
ClanGovernment
setPositions
in interface ClanGovernment
positions
- the new positionspublic Clan.AutoPromoteFlag getAutoPromoteBy()
ClanGovernment
getAutoPromoteBy
in interface ClanGovernment
public void setAutoPromoteBy(Clan.AutoPromoteFlag autoPromoteBy)
ClanGovernment
setAutoPromoteBy
in interface ClanGovernment
autoPromoteBy
- the new auto promote bypublic int[] getLevelProgression()
ClanGovernment
getLevelProgression
in interface ClanGovernment
public void setLevelProgression(int[] levelProgression)
ClanGovernment
setLevelProgression
in interface ClanGovernment
levelProgression
- the new level progressionpublic java.lang.String getEntryScript()
ClanGovernment
getEntryScript
in interface ClanGovernment
public void setEntryScript(java.lang.String scriptParm)
ClanGovernment
setEntryScript
in interface ClanGovernment
scriptParm
- the Scriptable parmpublic java.lang.String getExitScript()
ClanGovernment
getExitScript
in interface ClanGovernment
public void setExitScript(java.lang.String scriptParm)
ClanGovernment
setExitScript
in interface ClanGovernment
scriptParm
- the Scriptable parmpublic ClanPosition getPosition(java.lang.String pos)
ClanGovernment
getPosition
in interface ClanGovernment
pos
- the pos
public ClanPosition findPositionRole(java.lang.String pos)
ClanGovernment
findPositionRole
in interface ClanGovernment
pos
- the role id, name, or id
public ClanPosition findPositionRole(java.lang.Integer roleID)
ClanGovernment
findPositionRole
in interface ClanGovernment
roleID
- the role id to look for
public void delPosition(ClanPosition pos)
ClanGovernment
delPosition
in interface ClanGovernment
pos
- the pospublic ClanPosition addPosition()
ClanGovernment
addPosition
in interface ClanGovernment
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 getHelpStr()
ClanGovernment
getHelpStr
in interface ClanGovernment
public SearchIDList<Ability> getClanLevelAbilities(MOB mob, Clan clan, java.lang.Integer level)
ClanGovernment
getClanLevelAbilities
in interface ClanGovernment
mob
- the mob enabledclan
- the clan the abilities come fromlevel
- clan level
public java.util.List<Ability> getClanLevelEffectsList(java.lang.Integer mobClanRole, java.lang.Integer level)
public ChameleonList<Ability> getEmptyClanLevelEffects(MOB mob, Clan clan)
public ChameleonList<Ability> getClanLevelEffects(MOB mob, Clan clan, java.lang.Integer level)
ClanGovernment
getClanLevelEffects
in interface ClanGovernment
mob
- the mob affectedclan
- the clan the effects come fromlevel
- clan level
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |