|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Clan
| Nested Class Summary | |
|---|---|
static class |
Clan.ClanVote
Represents an individual clan vote |
| Field Summary | |
|---|---|
static java.lang.String[] |
CLAN_STATS
Stat variables associated with clan objects. |
static int |
CLANSTATUS_ACTIVE
constant for the Clan.getStatus() method, denoting normal status. |
static java.lang.String[] |
CLANSTATUS_DESC
constant descriptor strings for the Clan.CLANSTATUS_* constants, ordered by their value. |
static int |
CLANSTATUS_FADING
constant for the Clan.getStatus() method, denoting fading status. |
static int |
CLANSTATUS_PENDING
constant for the Clan.getStatus() method, denoting unapproved status. |
static int |
FUNC_CLANACCEPT
constant for the clan function of accepting new members. |
static int |
FUNC_CLANASSIGN
constant for the clan function of promoting or demoting members. |
static int |
FUNC_CLANCANORDERCONQUERED
constant for the clan function of ordering mobs in clan conquered areas. |
static int |
FUNC_CLANCANORDERUNDERLINGS
constant for the clan function of ordering lower ranked clan members. |
static int |
FUNC_CLANDECLARE
constant for the clan function of declaring war and peace . |
static int |
FUNC_CLANDEPOSITLIST
constant for the clan function of depositing and listing clan bank accounts. |
static int |
FUNC_CLANDONATESET
constant for the clan function of setting a new donation room. |
static int |
FUNC_CLANENCHANT
constant for the clan function of clanenchanting items. |
static int |
FUNC_CLANEXILE
constant for the clan function of exihiling members. |
static int |
FUNC_CLANHOMESET
constant for the clan function of setting a new clan home. |
static int |
FUNC_CLANPREMISE
constant for the clan function of writing a new clan premise. |
static int |
FUNC_CLANPROPERTYOWNER
constant for the clan function of acting as owner of clan property. |
static int |
FUNC_CLANREJECT
constant for the clan function of rejecting an applicant. |
static int |
FUNC_CLANTAX
constant for the clan function of changing the clans tax rate. |
static int |
FUNC_CLANVOTEASSIGN
constant for the clan function of voting on promotions. |
static int |
FUNC_CLANVOTEOTHER
constant for the clan function of voting on non-promotion questions . |
static int |
FUNC_CLANWITHDRAW
constant for the clan function of withdrawing from clan bank accounts. |
static java.lang.String[][] |
FUNC_PROCEDURE
chart of which roles can perform which functions for various clan types |
static int |
GVT_DEMOCRACY
constant for the getGovernment @see Clan#getGovernment() method. |
static java.lang.String[] |
GVT_DESCS
descriptor strings for the Clan.GVT_* constants, ordered by their value. |
static int |
GVT_DICTATORSHIP
constant for the getGovernment @see Clan#getGovernment() method. |
static int |
GVT_FAMILY
constant for the getGovernment @see Clan#getGovernment() method. |
static int |
GVT_OLIGARCHY
constant for the getGovernment @see Clan#getGovernment() method. |
static int |
GVT_REPUBLIC
constant for the getGovernment @see Clan#getGovernment() method. |
static int |
GVT_THEOCRACY
constant for the getGovernment @see Clan#getGovernment() method. |
static int |
POS_APPLICANT
Applicant constant for a clan members position. |
static int |
POS_BOSS
Boss constant for a clan members position. |
static int |
POS_ENCHANTER
Enchanter constant for a clan members position. |
static int |
POS_LEADER
Leader constant for a clan members position. |
static int |
POS_MEMBER
Normal member constant for a clan members position. |
static int |
POS_STAFF
Staff constant for a clan members position. |
static int |
POS_TREASURER
Treasurer constant for a clan members position. |
static int[] |
POSORDER
Numeric ordering for the Clan.POS_* constants, ordered by value. |
static int |
REL_ALLY
constant for Clan.getClanRelations method, denoting ally with. |
static java.lang.String[] |
REL_DESCS
descriptor strings for the Clan.REL_* constants, ordered by their value. |
static int |
REL_FRIENDLY
constant for Clan.getClanRelations method, denoting friendly to. |
static int |
REL_HOSTILE
constant for Clan.getClanRelations method, denoting hostile to. |
static int |
REL_NEUTRAL
constant for Clan.getClanRelations method, denoting neutral status towards. |
static int[] |
REL_NEUTRALITYGAUGE
constant used to determine something about clan relations |
static java.lang.String[] |
REL_STATES
long descriptor strings for the Clan.REL_* constants, ordered by their value. |
static int |
REL_WAR
constant for Clan.getClanRelations method, denoting at war with. |
static int[][] |
RELATIONSHIP_VECTOR
table used to determine how two clans are related when their declared relations differ. |
static java.lang.String[][] |
ROL_DESCS
descriptor table with x axis being Clan.POS_* constants, and y axis being Clan.GVT_* constants. |
static int[][] |
ROL_MAX
table w/x axis being Clan.POS_* constants, y axis being Clan.GVT_* constants, denotes max members of the ranks. |
static int[] |
topRanks
top ranks for each govt, ordered by the value of the Clan.GVT_* constants. |
static int |
TROPHY_AREA
constant for the Clan.getTrophies @see Clan#getTrophies() method. |
static int |
TROPHY_CONTROL
constant for the Clan.getTrophies @see Clan#getTrophies() method. |
static java.lang.String[] |
TROPHY_DESCS
long descriptor strings for the Clan.TROPHY_* constants, ordered by their value. |
static java.lang.String[] |
TROPHY_DESCS_SHORT
descriptor strings for the Clan.TROPHY_* constants, ordered by their value. |
static int |
TROPHY_EXP
constant for the Clan.getTrophies @see Clan#getTrophies() method. |
static int |
TROPHY_PK
constant for the Clan.getTrophies @see Clan#getTrophies() method. |
static int |
TYPE_CLAN
meaningless variable-- means this clan is a clan -- does not denote government, or anything else. |
static java.lang.String[] |
VSTAT_DESCS
Descriptors for the values of Clan.ClanVote.voteStatus member. |
static int |
VSTAT_FAILED
Vote has failed constant for the Clan.ClanVote.voteStatus member. |
static int |
VSTAT_PASSED
Vote has passed constant for the Clan.ClanVote.voteStatus member. |
static int |
VSTAT_STARTED
Vote just started constant for the Clan.ClanVote.voteStatus member. |
| Method Summary | |
|---|---|
void |
addMember(MOB M,
int role)
Adds a new member to this clan |
void |
addVote(java.lang.Object CV)
Adds a new ClanVote object to the list of ongoing votes for this clan. |
void |
adjExp(int howMuch)
Adjusts the amount of experience earned by this clan. |
int |
allowedToDoThis(MOB mob,
int function)
Returns whether the given mob is allowed to perform the given function. |
int |
applyExpMods(int exp)
Adjusts the amount of experience earned by a player based on the tax rate. |
long |
calculateMapPoints()
Returns the total control points earned by this clan |
long |
calculateMapPoints(java.util.Vector controlledAreas)
Returns the total control points represented by the list of controlled areas given. |
boolean |
canBeAssigned(MOB mob,
int role)
|
void |
clanAnnounce(java.lang.String msg)
Sends a message to all members of all clans. |
java.lang.String |
clanID()
Returns the unique identifying ID of the clan for reference elsewhere. |
void |
create()
Orders the system to create this clan in the database. |
void |
delMember(MOB M)
Del a member from this clan |
void |
delVote(java.lang.Object CV)
Removes a new ClanVote object from the list of ongoing votes for this clan. |
void |
destroyClan()
Orders the system to destroy this clan in the database. |
java.lang.String |
getAcceptanceSettings()
Returns a mask used to identify whether a player is allowed to join a particular clan. |
int |
getAutoPosition()
Returns whether membership is automatically approved to this clan. |
java.lang.String |
getClanClass()
Retrieves this Clan's enforced character class. |
int |
getClanRelations(java.lang.String id)
Returns a Clan.REL_* constant denoting the relationship between this clan and the clan of the given name. |
java.util.Vector |
getControlledAreas()
Returns all the areas on the map controlled by this clan. |
int |
getCurrentClanKills()
Returns the number of other-clan kills this clan has recorded. |
java.lang.String |
getDetail(MOB mob)
Creates the string for the 'clandetail' command, based on the security of the given mob who will view the details. |
java.lang.String |
getDonation()
Returns the roomID of this clans donation room |
long |
getExp()
Gets the amount of experience earned by this clan. |
int |
getGovernment()
Returns the Clan.GVT_* constant representing the government type of this clan. |
long |
getLastRelationChange(java.lang.String id)
Returns the time/date stamp when this clan last changed its relations with the given clan. |
DVector |
getMemberList()
Returns the set of members, where each row represents a member, and the columns are name, role, last login date |
DVector |
getMemberList(int PosFilter)
Returns the set of members, where each row represents a member, and the columns are name, role, last login date. |
java.lang.String |
getMorgue()
Returns the roomID of this clans morgue room |
java.lang.String |
getName()
Returns the name of the clan, which is almost always the same as the ID, which is why clans can't change their names. |
int |
getNumVoters(int function)
Returns the number of members allowed to vote on the given function. |
java.lang.String |
getPolitics()
Returns an XML string used to identify the political relations between this clan and others. |
java.lang.String |
getPremise()
Retrieves this Clan's basic story. |
java.lang.String |
getRecall()
Returns the roomID of this clans recall room (their clan home) |
MOB |
getResponsibleMember()
Returns the highest ranking member of this clan. |
int |
getSize()
Returns the number of members of this clan. |
int |
getStatus()
Returns one of the CLANSTAT_* constants describing the pending status of this clan for acceptable, or whether its one its way out. |
double |
getTaxes()
Gets the tax rate for this clan. |
int |
getTopRank(MOB mob)
Returns the Clan.POS_* constant representing the highest rank in this clan type. |
int |
getTrophies()
Returns a bitmap representing the trophies won by this clan. |
int |
getType()
Returns the clan type, a meaningless variable. |
void |
recordClanKill()
Called when a member of this clan kills a member of another clan. |
void |
setAcceptanceSettings(java.lang.String newSettings)
Sets a mask used to identify whether a player is allowed to join a particular clan. |
void |
setAutoPosition(int pos)
Sets whether membership is automatically approved to this clan. |
void |
setClanClass(java.lang.String newClass)
Sets this Clan's enforced character class. |
void |
setClanRelations(java.lang.String id,
int rel,
long time)
Sets a new relationship between this clan and the clan with the given id. |
void |
setDonation(java.lang.String newDonation)
Sets the roomID of this clans donation room |
void |
setExp(long exp)
Sets the amount of experience earned by this clan. |
void |
setGovernment(int type)
Returns the Clan.GVT_* constant representing the government type of this clan. |
void |
setMorgue(java.lang.String newRecall)
Sets the roomID of this clans morgue room |
void |
setName(java.lang.String newName)
Sets a new name for this clan. |
void |
setPolitics(java.lang.String politics)
Sets an XML string used to identify the political relations between this clan and others. |
void |
setPremise(java.lang.String newPremise)
Sets this Clan's basic story. |
void |
setRecall(java.lang.String newRecall)
Sets the roomID of this clans recall room (their clan home) |
void |
setStatus(int newStatus)
Sets one of the CLANSTAT_* constants describing the pending status of this clan for acceptable, or whether its one its way out. |
void |
setTaxes(double rate)
Sets the tax rate for this clan. |
void |
setTrophies(int trophyFlag)
Sets a bitmap representing the trophies won by this clan. |
java.lang.String |
typeName()
Returns Clan, Republic, or another one of the clan government types defined by Clan.GVT_DESC |
void |
update()
Orders the system to update this clan in the database. |
boolean |
updateClanPrivileges(MOB mob)
This method is called when a given mobs clan status changes, for instance if they are added to the clan, removed from it, or change their rank. |
void |
updateVotes()
Orders the system to save any changes to existing ongoing votes for this clan. |
java.util.Enumeration |
votes()
If the clan type allows voting, this returns a series of Clan.ClanVote objects |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, name, tick |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Field Detail |
|---|
static final int VSTAT_STARTED
static final int VSTAT_FAILED
static final int VSTAT_PASSED
static final java.lang.String[] VSTAT_DESCS
static final java.lang.String[] CLAN_STATS
static final int POS_APPLICANT
static final int POS_MEMBER
static final int POS_STAFF
static final int POS_ENCHANTER
static final int POS_TREASURER
static final int POS_LEADER
static final int POS_BOSS
static final int[] POSORDER
static final int CLANSTATUS_ACTIVE
static final int CLANSTATUS_PENDING
static final int CLANSTATUS_FADING
static final java.lang.String[] CLANSTATUS_DESC
static final int REL_NEUTRAL
static final int REL_WAR
static final int REL_HOSTILE
static final int REL_FRIENDLY
static final int REL_ALLY
static final int[] REL_NEUTRALITYGAUGE
static final int[][] RELATIONSHIP_VECTOR
static final java.lang.String[] REL_DESCS
static final java.lang.String[] REL_STATES
static final int TROPHY_CONTROL
static final int TROPHY_EXP
static final int TROPHY_AREA
static final int TROPHY_PK
static final java.lang.String[] TROPHY_DESCS_SHORT
static final java.lang.String[] TROPHY_DESCS
static final int GVT_DICTATORSHIP
static final int GVT_OLIGARCHY
static final int GVT_REPUBLIC
static final int GVT_DEMOCRACY
static final int GVT_THEOCRACY
static final int GVT_FAMILY
static final java.lang.String[] GVT_DESCS
static final int[] topRanks
static final java.lang.String[][] ROL_DESCS
static final int[][] ROL_MAX
static final int TYPE_CLAN
static final java.lang.String[][] FUNC_PROCEDURE
static final int FUNC_CLANACCEPT
static final int FUNC_CLANASSIGN
static final int FUNC_CLANEXILE
static final int FUNC_CLANHOMESET
static final int FUNC_CLANDONATESET
static final int FUNC_CLANREJECT
static final int FUNC_CLANPREMISE
static final int FUNC_CLANPROPERTYOWNER
static final int FUNC_CLANWITHDRAW
static final int FUNC_CLANCANORDERUNDERLINGS
static final int FUNC_CLANCANORDERCONQUERED
static final int FUNC_CLANVOTEASSIGN
static final int FUNC_CLANVOTEOTHER
static final int FUNC_CLANDEPOSITLIST
static final int FUNC_CLANDECLARE
static final int FUNC_CLANTAX
static final int FUNC_CLANENCHANT
| Method Detail |
|---|
int allowedToDoThis(MOB mob,
int function)
mob - the mob whose priviledges to check.function - the Clan.FUNC_* constant to use
Clanvoid clanAnnounce(java.lang.String msg)
msg - the message to sendjava.util.Enumeration votes()
Clan.ClanVotevoid updateVotes()
void addVote(java.lang.Object CV)
CV - the clanvote object to addClan.ClanVotevoid delVote(java.lang.Object CV)
CV - the clanvote object to removeClan.ClanVoteint getNumVoters(int function)
function - the FUNC_* constant
Clanint getSize()
java.lang.String getName()
setName(String)java.lang.String clanID()
getName()void setName(java.lang.String newName)
newName - the new name of this clangetName(),
clanID()int getType()
java.lang.String typeName()
Clanboolean updateClanPrivileges(MOB mob)
mob - the mob whose status needs updating
java.lang.String getPremise()
setPremise(String)void setPremise(java.lang.String newPremise)
getPremise()void setClanClass(java.lang.String newClass)
getClanClass()java.lang.String getClanClass()
setClanClass(String)java.lang.String getDetail(MOB mob)
mob - the one who will view the details
java.lang.String getAcceptanceSettings()
MaskingLibrary,
setAcceptanceSettings(String)void setAcceptanceSettings(java.lang.String newSettings)
newSettings - the mask used to identify prospectsMaskingLibrary,
getAcceptanceSettings()java.lang.String getPolitics()
setPolitics(String)void setPolitics(java.lang.String politics)
politics - xml document describing the politics of this clangetPolitics()int getAutoPosition()
setAutoPosition(int)void setAutoPosition(int pos)
pos - the positition to give to applicantsgetAutoPosition()int getStatus()
Clan,
setStatus(int)void setStatus(int newStatus)
newStatus - a Clan.CLANSTAT_* constantClan,
getStatus()java.lang.String getRecall()
setRecall(String)void setRecall(java.lang.String newRecall)
newRecall - the roomid of this clans clan homegetRecall()java.lang.String getMorgue()
setMorgue(String)void setMorgue(java.lang.String newRecall)
newRecall - the roomID of this clans morgue roomgetMorgue()int getTrophies()
Clan,
setTrophies(int)void setTrophies(int trophyFlag)
trophyFlag - a bitmap of the trophiesClan,
getTrophies()java.lang.String getDonation()
setDonation(String)void setDonation(java.lang.String newDonation)
newDonation - the roomID of this clans donation roomgetDonation()long getExp()
void setExp(long exp)
exp - the experience earnedvoid adjExp(int howMuch)
howMuch - the experience adjustment, + or -int applyExpMods(int exp)
exp - the old experiencevoid recordClanKill()
int getCurrentClanKills()
long calculateMapPoints(java.util.Vector controlledAreas)
controlledAreas - the areas controlled
calculateMapPoints(),
getControlledAreas(),
Conquerablelong calculateMapPoints()
calculateMapPoints(Vector),
getControlledAreas(),
Conquerablejava.util.Vector getControlledAreas()
Conquerable,
Areavoid setTaxes(double rate)
rate - the tax rate 0-100.0getTaxes()double getTaxes()
setTaxes(double)DVector getMemberList()
getMemberList(int),
DVectorDVector getMemberList(int PosFilter)
PosFilter -
Clan,
DVectorMOB getResponsibleMember()
int getClanRelations(java.lang.String id)
id - the name of another clan.
setClanRelations(String, int, long),
getLastRelationChange(String)long getLastRelationChange(java.lang.String id)
id - the other clan
setClanRelations(String, int, long),
getClanRelations(String)
void setClanRelations(java.lang.String id,
int rel,
long time)
id - another clanrel - the Clan.REL_* constant for the new relationshiptime - a current date/time stamp for this changeint getGovernment()
Clan,
setGovernment(int)void setGovernment(int type)
type - the Clan.GVT_* constantClan,
getGovernment()int getTopRank(MOB mob)
mob - the mob to check for a top rank
Clanvoid delMember(MOB M)
M - the member to remove
void addMember(MOB M,
int role)
M - the member to addrole - the coded role numbervoid update()
void destroyClan()
void create()
boolean canBeAssigned(MOB mob,
int role)
| ||||||