com.planet_ink.coffee_mud.Common.interfaces
Interface ClanGovernment

All Superinterfaces:
java.lang.Cloneable, CMCommon, CMObject, java.lang.Comparable<CMObject>, Modifiable
All Known Implementing Classes:
DefaultClanGovernment

public interface ClanGovernment
extends Modifiable, CMCommon

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.
 int getAcceptPos()
          Gets the accept pos.
 Clan.AutoPromoteFlag getAutoPromoteBy()
          Gets the auto promote by.
 int getAutoRole()
          Gets the auto role.
 java.util.List<Ability> getClanLevelAbilities(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, java.lang.Integer level)
          Return the list of effects owned by someone who is part of a clan of the given level.
 int getClanLevelEffectsSize(MOB mob, java.lang.Integer level)
          Return the size of the list of effects owned by someone who is a part of this clan of the given level.
 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.
 java.util.LinkedList<CMath.CompiledOperation> getXPCalculationFormula()
           
 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.
 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 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 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 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, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getID

int getID()
Gets the iD.

Returns:
the iD

setID

void setID(int iD)
Sets the iD.

Parameters:
iD - the new iD

getName

java.lang.String getName()
Gets the name.

Returns:
the name

setName

void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

getAutoRole

int getAutoRole()
Gets the auto role.

Returns:
the auto role

setAutoRole

void setAutoRole(int autoRole)
Sets the auto role.

Parameters:
autoRole - the new auto role

getAcceptPos

int getAcceptPos()
Gets the accept pos.

Returns:
the accept pos

setAcceptPos

void setAcceptPos(int acceptPos)
Sets the accept pos.

Parameters:
acceptPos - the new accept pos

getShortDesc

java.lang.String getShortDesc()
Gets the short desc.

Returns:
the short desc

setShortDesc

void setShortDesc(java.lang.String shortDesc)
Sets the short desc.

Parameters:
shortDesc - the new short desc

getLongDesc

java.lang.String getLongDesc()
Gets the long desc.

Returns:
the long desc

setLongDesc

void setLongDesc(java.lang.String longDesc)
Sets the long desc.

Parameters:
longDesc - the new long desc

getRequiredMaskStr

java.lang.String getRequiredMaskStr()
Gets the required mask str.

Returns:
the required mask str

setRequiredMaskStr

void setRequiredMaskStr(java.lang.String requiredMaskStr)
Sets the required mask str.

Parameters:
requiredMaskStr - the new required mask str

isPublic

boolean isPublic()
Checks if is public.

Returns:
true, if is public

setPublic

void setPublic(boolean isPublic)
Sets the public.

Parameters:
isPublic - the new public

isFamilyOnly

boolean isFamilyOnly()
Checks if is family only.

Returns:
true, if is family only

setFamilyOnly

void setFamilyOnly(boolean isFamilyOnly)
Sets the family only.

Parameters:
isFamilyOnly - the new family only

getOverrideMinMembers

java.lang.Integer getOverrideMinMembers()
Gets the override min members.

Returns:
the override min members

setOverrideMinMembers

void setOverrideMinMembers(java.lang.Integer overrideMinMembers)
Sets the override min members.

Parameters:
overrideMinMembers - the new override min members

isConquestEnabled

boolean isConquestEnabled()
Checks if is conquest enabled.

Returns:
true, if is conquest enabled

setConquestEnabled

void setConquestEnabled(boolean conquestEnabled)
Sets the conquest enabled.

Parameters:
conquestEnabled - the new conquest enabled

isConquestItemLoyalty

boolean isConquestItemLoyalty()
Checks if is conquest item loyalty.

Returns:
true, if is conquest item loyalty

setConquestItemLoyalty

void setConquestItemLoyalty(boolean conquestItemLoyalty)
Sets the conquest item loyalty.

Parameters:
conquestItemLoyalty - the new conquest item loyalty

isConquestByWorship

boolean isConquestByWorship()
Checks if is conquest by worship.

Returns:
true, if is conquest by worship

setConquestByWorship

void setConquestByWorship(boolean conquestByWorship)
Sets the conquest by worship.

Parameters:
conquestByWorship - the new conquest by worship

getMaxVoteDays

int getMaxVoteDays()
Gets the max vote days.

Returns:
the max vote days

setMaxVoteDays

void setMaxVoteDays(int maxVoteDays)
Sets the max vote days.

Parameters:
maxVoteDays - the new max vote days

getVoteQuorumPct

int getVoteQuorumPct()
Gets the vote quorum pct.

Returns:
the vote quorum pct

setVoteQuorumPct

void setVoteQuorumPct(int voteQuorumPct)
Sets the vote quorum pct.

Parameters:
voteQuorumPct - the new vote quorum pct

getXpCalculationFormulaStr

java.lang.String getXpCalculationFormulaStr()
Gets the xp calculation formula.

Returns:
the xp calculation formula

setXpCalculationFormulaStr

void setXpCalculationFormulaStr(java.lang.String xpCalculationFormulaStr)
Sets the xp calculation formula.

Parameters:
xpCalculationFormula - the new xp calculation formula

getXPCalculationFormula

java.util.LinkedList<CMath.CompiledOperation> getXPCalculationFormula()
Returns:

isDefault

boolean isDefault()
Checks if is default.

Returns:
true, if is default

setDefault

void setDefault(boolean isDefault)
Sets the default.

Parameters:
isDefault - the new default

getPositions

ClanPosition[] getPositions()
Gets the positions.

Returns:
the positions

setPositions

void setPositions(ClanPosition[] positions)
Sets the positions.

Parameters:
positions - the new positions

getAutoPromoteBy

Clan.AutoPromoteFlag getAutoPromoteBy()
Gets the auto promote by.

Returns:
the auto promote by

setAutoPromoteBy

void setAutoPromoteBy(Clan.AutoPromoteFlag autoPromoteBy)
Sets the auto promote by.

Parameters:
autoPromoteBy - the new auto promote by

getLevelProgression

int[] getLevelProgression()
Gets the level progression.

Returns:
the level progression

setLevelProgression

void setLevelProgression(int[] levelProgression)
Sets the level progression.

Parameters:
levelProgression - the new level progression

getHelpStr

java.lang.String getHelpStr()
Gets the help str.

Returns:
the help str

addPosition

ClanPosition addPosition()
Adds the position.

Returns:
the clan position

delPosition

void delPosition(ClanPosition pos)
Del position.

Parameters:
pos - the pos

getPosition

ClanPosition getPosition(java.lang.String pos)
Gets the position.

Parameters:
pos - the pos
Returns:
the position

getClanLevelAbilities

java.util.List<Ability> getClanLevelAbilities(java.lang.Integer level)
Return the list of abilities owned by someone who is part of a clan of the given level.

Parameters:
level - clan level
Returns:
list of abilities

getClanLevelEffects

ChameleonList<Ability> getClanLevelEffects(MOB mob,
                                           java.lang.Integer level)
Return the list of effects owned by someone who is part of a clan of the given level.

Parameters:
mob - the mob affected
level - clan level
Returns:
list of abilities

getClanLevelEffectsSize

int getClanLevelEffectsSize(MOB mob,
                            java.lang.Integer level)
Return the size of the list of effects owned by someone who is a part of this clan of the given level. Much more efficient than getting the whole list and checking its size.

Parameters:
mob - the mob affected
level - the clan level
Returns:
the size of the list of abilities