|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ClanManager
| Method Summary | |
|---|---|
void |
addClan(Clan C)
Adds the given clan to the games list |
boolean |
authCheck(java.lang.String clanID,
int roleID,
Clan.Function function)
If the clan exists, it will check to see if the given role is allowed (or at least not disallowed) from the given clan function |
void |
clanAnnounce(MOB mob,
java.lang.String msg)
Makes an announcement to the clan announcement channel from the given mob. |
void |
clanAnnounceAll(java.lang.String msg)
Sends a message to the games official CLAN chat channel. |
java.util.Enumeration<Clan> |
clans()
Returns an enumeration of all the Clans in the game |
java.util.Enumeration<java.lang.String> |
clansNames()
Returns a list of all available clans names in the game, as Clan objects. |
ClanGovernment |
createGovernment(java.lang.String name)
Creates the new stock government |
ClanGovernment |
createSampleGovernment()
Creates, but does not add, a sample government object |
Clan |
findClan(java.lang.String id)
Returns the Clan object associated with the given clan name, or if the name is not found, the name that most closely matches it. |
Clan |
getClan(java.lang.String id)
Returns the Clan object associated with the given clan name |
int |
getClanRelations(java.lang.String clanName1,
java.lang.String clanName2)
This method is used to determine the basic relationship between two clans. |
ClanGovernment |
getDefaultGovernment()
Returns the default government definition object. |
java.lang.String |
getGovernmentHelp(MOB mob,
java.lang.String named,
boolean exact)
Returns help on the government type named, if it is available |
long |
getLastGovernmentLoad()
Get last time governments were loaded/updated |
ClanGovernment |
getStockGovernment(int typeid)
Returns a government definition object of the given internal stock clangovernments.xml id. |
ClanGovernment[] |
getStockGovernments()
Returns all government definition objects from internal stock clangovernments.xml file. |
boolean |
goForward(MOB mob,
Clan C,
java.util.Vector commands,
Clan.Function function,
boolean voteIfNecessary)
Examines the given command string, which is based on the given clan function code. |
boolean |
isCommonClanRelations(java.lang.String clanName1,
java.lang.String clanName2,
int relation)
This method is used to determine the basic relationship between two clans. |
boolean |
isFamilyOfMembership(MOB M,
java.util.List<Clan.MemberRecord> members)
Returns whether the given MOB is a member of any of the families represented by the given list of clan members. |
java.lang.String |
makeGovernmentXML(ClanGovernment gvt)
Converts a given clan government object into xml. |
java.lang.String |
makeGovernmentXML(ClanGovernment[] gvts)
Converts a given clan government objects into xml. |
int |
numClans()
Returns the number of clans in the game. |
ClanGovernment[] |
parseGovernmentXML(java.lang.StringBuffer xml)
Converts xml into clan government objects. |
void |
removeClan(Clan C)
Removes the given clan from the games list |
boolean |
removeGovernment(ClanGovernment government)
Deletes the stock government.. |
void |
reSaveGovernmentsXML()
Forces the stock governments to be re-saved to clangovernments.xml. |
void |
tickAllClans()
Forces all clans to go through their maintenance process, which normally only occurs infrequently. |
java.lang.String |
translatePrize(int trophy)
Returns a descriptive name for the given trophy code number. |
boolean |
trophySystemActive()
Returns whether this mud has activated its trophy system for clans. |
| Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary |
|---|
activate, getSupportThread, propertiesLoaded, shutdown |
| 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 |
|---|
java.util.Enumeration<java.lang.String> clansNames()
Clanint numClans()
boolean isCommonClanRelations(java.lang.String clanName1,
java.lang.String clanName2,
int relation)
clanName1 - the first clan to evaluateclanName2 - the second clan to evaluaterelation - the clan relation to compare to
Clan.REL_DESCS
int getClanRelations(java.lang.String clanName1,
java.lang.String clanName2)
clanName1 - the first clan to evaluateclanName2 - the second clan to evaluate
Clan.REL_DESCSlong getLastGovernmentLoad()
Clan getClan(java.lang.String id)
id - the clan name
ClanClan findClan(java.lang.String id)
id -
Clanjava.util.Enumeration<Clan> clans()
void addClan(Clan C)
C - the clan to addvoid removeClan(Clan C)
C - the clan to removevoid tickAllClans()
void clanAnnounceAll(java.lang.String msg)
msg - the message to send
boolean authCheck(java.lang.String clanID,
int roleID,
Clan.Function function)
clanID - the clan nameroleID - the clan roleIDfunction - the clan function
Clanjava.lang.String translatePrize(int trophy)
trophy - the trophy code number
Clan.TROPHY_DESCSboolean trophySystemActive()
boolean isFamilyOfMembership(MOB M,
java.util.List<Clan.MemberRecord> members)
M - the mob to evaluatemembers - the members of a clan
java.lang.String getGovernmentHelp(MOB mob,
java.lang.String named,
boolean exact)
mob - the viewer of the government typenamed - the possible name of the governmentexact - true to only match exact, or false otherwise
ClanGovernment getStockGovernment(int typeid)
typeid - the internal typeid
ClanGovernmentClanGovernment getDefaultGovernment()
ClanGovernmentClanGovernment createSampleGovernment()
ClanGovernment[] getStockGovernments()
ClanGovernmentjava.lang.String makeGovernmentXML(ClanGovernment gvt)
gvt - the clan government object
ClanGovernment,
makeGovernmentXML(com.planet_ink.coffee_mud.Common.interfaces.ClanGovernment[]),
parseGovernmentXML(StringBuffer)java.lang.String makeGovernmentXML(ClanGovernment[] gvts)
gvts - the clan government objects
ClanGovernment,
makeGovernmentXML(com.planet_ink.coffee_mud.Common.interfaces.ClanGovernment),
parseGovernmentXML(StringBuffer)ClanGovernment[] parseGovernmentXML(java.lang.StringBuffer xml)
xml - the xml
ClanGovernment,
makeGovernmentXML(com.planet_ink.coffee_mud.Common.interfaces.ClanGovernment),
makeGovernmentXML(com.planet_ink.coffee_mud.Common.interfaces.ClanGovernment[])void reSaveGovernmentsXML()
ClanGovernment createGovernment(java.lang.String name)
name - governmentname
boolean removeGovernment(ClanGovernment government)
government - the government to delete
void clanAnnounce(MOB mob,
java.lang.String msg)
mob - the mob who is announcing the messagemsg - string message to send to the clan info channels
boolean goForward(MOB mob,
Clan C,
java.util.Vector commands,
Clan.Function function,
boolean voteIfNecessary)
mob - the player who wants to perform the functionC - the clan that the player belongs tocommands - the command list describing the function that wants to be executedfunction - the function code described by the commands listvoteIfNecessary - true to start a vote if one is needed, false to just return true.
Clan.Function.ACCEPT
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||