|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClanGovernment
A class defining the characteristics of a clan government, and its membership.
Method Summary | |
---|---|
ClanPosition |
addPosition()
Adds the position. |
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.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. |
java.lang.String |
getShortDesc()
Gets the short desc. |
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. |
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. |
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 |
setVoteQuorumPct(int voteQuorumPct)
Sets the vote quorum pct. |
void |
setXpCalculationFormulaStr(java.lang.String xpCalculationFormulaStr)
Sets the xp calculation formula. |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, ID, initializeClass, name, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
int getID()
void setID(int iD)
iD
- the new iDjava.lang.String getName()
void setName(java.lang.String name)
name
- the new namejava.lang.String getCategory()
void setCategory(java.lang.String category)
category
- the new categoryint getAutoRole()
void setAutoRole(int autoRole)
autoRole
- the new auto roleint getAcceptPos()
void setAcceptPos(int acceptPos)
acceptPos
- the new accept posjava.lang.String getShortDesc()
void setShortDesc(java.lang.String shortDesc)
shortDesc
- the new short descjava.lang.String getLongDesc()
void setLongDesc(java.lang.String longDesc)
longDesc
- the new long descjava.lang.String getRequiredMaskStr()
void setRequiredMaskStr(java.lang.String requiredMaskStr)
requiredMaskStr
- the new required mask strjava.lang.String getEntryScript()
void setEntryScript(java.lang.String scriptParm)
scriptParm
- the Scriptable parmjava.lang.String getExitScript()
void setExitScript(java.lang.String scriptParm)
scriptParm
- the Scriptable parmboolean isPublic()
void setPublic(boolean isPublic)
isPublic
- the new publicboolean isFamilyOnly()
void setFamilyOnly(boolean isFamilyOnly)
isFamilyOnly
- the new family onlyboolean isRivalrous()
void setRivalrous(boolean isRivalrous)
isRivalrous
- true or falsejava.lang.Integer getOverrideMinMembers()
void setOverrideMinMembers(java.lang.Integer overrideMinMembers)
overrideMinMembers
- the new override min membersboolean isConquestEnabled()
void setConquestEnabled(boolean conquestEnabled)
conquestEnabled
- the new conquest enabledboolean isConquestItemLoyalty()
void setConquestItemLoyalty(boolean conquestItemLoyalty)
conquestItemLoyalty
- the new conquest item loyaltyboolean isConquestByWorship()
void setConquestByWorship(boolean conquestByWorship)
conquestByWorship
- the new conquest by worshipint getMaxVoteDays()
void setMaxVoteDays(int maxVoteDays)
maxVoteDays
- the new max vote daysint getVoteQuorumPct()
void setVoteQuorumPct(int voteQuorumPct)
voteQuorumPct
- the new vote quorum pctjava.lang.String getXpCalculationFormulaStr()
void setXpCalculationFormulaStr(java.lang.String xpCalculationFormulaStr)
xpCalculationFormulaStr
- the new xp calculation formulaCMath.CompiledFormula getXPCalculationFormula()
boolean isDefault()
void setDefault(boolean isDefault)
isDefault
- the new defaultClanPosition[] getPositions()
void setPositions(ClanPosition[] positions)
positions
- the new positionsClan.AutoPromoteFlag getAutoPromoteBy()
void setAutoPromoteBy(Clan.AutoPromoteFlag autoPromoteBy)
autoPromoteBy
- the new auto promote byint[] getLevelProgression()
void setLevelProgression(int[] levelProgression)
levelProgression
- the new level progressionjava.lang.String getHelpStr()
ClanPosition addPosition()
void delPosition(ClanPosition pos)
pos
- the posClanPosition getPosition(java.lang.String pos)
pos
- the pos
ClanPosition findPositionRole(java.lang.Integer roleID)
roleID
- the role id to look for
ClanPosition findPositionRole(java.lang.String pos)
pos
- the role id, name, or id
SearchIDList<Ability> getClanLevelAbilities(MOB mob, Clan clan, java.lang.Integer level)
mob
- the mob enabledclan
- the clan the abilities come fromlevel
- clan level
ChameleonList<Ability> getClanLevelEffects(MOB mob, Clan clan, java.lang.Integer level)
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 |