Clan
, CMCommon
, Achievable
, CMObject
, Modifiable
, Tattooable
, Tickable
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class DefaultClan extends java.lang.Object implements Clan
Clan.Authority, Clan.AutoPromoteFlag, Clan.ClanFlag, Clan.ClanVote, Clan.FullMemberRecord, Clan.Function, Clan.MemberRecord, Clan.Trophy
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
acceptanceSettings |
|
protected java.util.Map<java.lang.String,AchievementLibrary.Tracker> |
achievementers |
|
protected int |
autoPosition |
|
protected Pair<java.lang.Long,Pair<java.lang.String,java.lang.String>> |
bankingInfo |
|
protected java.util.List<Pair<Clan,java.lang.Integer>> |
channelSet |
|
protected java.lang.String |
clanCategory |
|
protected java.lang.String |
clanClass |
|
protected java.lang.String |
clanDonationRoom |
|
protected java.util.Set<Clan.ClanFlag> |
clanFlags |
|
protected java.util.List<java.lang.Long> |
clanKills |
|
protected int |
clanLevel |
|
protected java.lang.String |
clanMorgue |
|
protected java.lang.String |
clanName |
|
protected java.lang.String |
clanPremise |
|
protected java.lang.String |
clanRecall |
|
protected int |
clanStatus |
|
protected int |
clanTrophies |
|
protected double |
dues |
|
protected static java.util.List<Ability> |
empty |
|
protected long |
exp |
|
protected java.lang.Object |
expSync |
|
protected ItemCollection |
extItems |
|
protected MOB |
factoryMob |
|
protected int |
government |
|
protected ClanGovernment |
govt |
|
protected java.lang.Boolean |
isRivalrous |
|
protected java.lang.String |
lastClanKillLog |
|
protected long |
lastClanTickMs |
|
protected long |
lastGovernmentLoadTime |
|
protected long |
lastPropsReload |
|
protected long |
lastStatusChange |
|
protected int |
monthClanLevels |
|
protected int |
monthClanXP |
|
protected int |
monthConquered |
|
protected int |
monthControlPoints |
|
protected int |
monthNewMembers |
|
protected int |
monthOnlineMins |
|
protected int |
monthPlayerXP |
|
protected java.lang.Integer |
overrideMinClanMembers |
|
protected java.util.Map<java.lang.String,long[]> |
relations |
|
protected CMUniqNameSortSVec<Tattoo> |
tattoos |
|
protected double |
taxRate |
|
protected int |
tickUp |
|
protected long |
totalLevelsGained |
|
protected long |
totalOnlineMins |
|
protected int |
transientSize |
|
protected java.util.List<Clan.ClanVote> |
voteList |
CLANSTATUS_ACTIVE, CLANSTATUS_DESC, CLANSTATUS_FADING, CLANSTATUS_PENDING, CLANSTATUS_STAGNANT, compareByRole, REL_ALLY, REL_COLORS, REL_DESCS, REL_FRIENDLY, REL_HOSTILE, REL_NEUTRAL, REL_NEUTRALITYGAUGE, REL_STATES, REL_WAR, RELATIONSHIP_VECTOR, VSTAT_DESCS, VSTAT_FAILED, VSTAT_PASSED, VSTAT_STARTED
idConverter
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
Constructor | Description |
---|---|
DefaultClan() |
Modifier and Type | Method | Description |
---|---|---|
void |
addMember(MOB M,
int role) |
Adds a new member to this clan
|
void |
addTattoo(Tattoo of) |
Add a new tattoo to this object
|
void |
addTattoo(java.lang.String of) |
Manipulation of the tatoo list
|
void |
addTattoo(java.lang.String of,
int tickDown) |
Add a new tattoo to this object
|
void |
addVote(Clan.ClanVote CV) |
Adds a new ClanVote object to the list of ongoing
votes for this
|
void |
adjDeposit(MOB memberM,
double howMuch) |
Adjusts the amount of base gold value deposited by this
member.
|
void |
adjDuesDeposit(MOB memberM,
double howMuch) |
Adjusts the amount of base gold value deposited by this
member from an auto-dues payment.
|
void |
adjExp(MOB memberM,
int howMuch) |
Adjusts the amount of experience earned by this
|
int |
applyExpMods(MOB memberM,
int exp) |
Adjusts the amount of experience earned by a player based
on the tax rate.
|
void |
bumpTrophyData(Clan.Trophy trophy,
int amt) |
Bumps the given trophy counter the given amount.
|
long |
calculateMapPoints() |
Returns the total control points earned by this clan
|
long |
calculateMapPoints(java.util.List<Area> controlledAreas) |
Returns the total control points represented by the list of
controlled areas given.
|
boolean |
canBeAssigned(MOB mob,
int role) |
Returns whether the given user can be assigned the given role
|
SearchIDList<Ability> |
clanAbilities(MOB mob) |
Return a vector of skills, spells, and other abilities granted to the given
mob of the given mobs level.
|
void |
clanAnnounce(java.lang.String msg) |
Sends a message to all members of all clans.
|
ChameleonList<Ability> |
clanEffects(MOB mob) |
Return a vector of skills, spells, and other effects granted to the given
mob of the given mobs level.
|
java.lang.String |
clanID() |
Returns the unique identifying ID of the clan for reference
elsewhere.
|
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 |
create() |
Orders the system to create this clan in the database.
|
void |
delMember(MOB M) |
Del a member from this clan
|
void |
delTattoo(Tattoo of) |
Remove a specific tattoo from this object
|
boolean |
delTattoo(java.lang.String of) |
Remove a specific tattoo from this object
|
void |
delVote(Clan.ClanVote CV) |
Removes a new ClanVote object from the list of ongoing
votes for this
|
void |
destroyClan() |
Orders the system to destroy this clan in the database.
|
boolean |
doesOutRank(int highRoleID,
int lowRoleID) |
Returns whether the high role id outranks the low roldid
|
int |
filterMedianLevel(java.util.List<Clan.FullMemberRecord> members) |
|
java.util.List<Clan.MemberRecord> |
filterMemberList(java.util.List<? extends Clan.MemberRecord> members,
int posFilter) |
|
MOB |
findMember(java.lang.String name) |
Returns the named member, if possible
|
Clan.MemberRecord |
findMemberRecord(java.lang.String name) |
Returns the named member, if possible
|
Tattoo |
findTattoo(java.lang.String of) |
Returns the tattoo of the given marker name
|
Tattoo |
findTattooStartsWith(java.lang.String of) |
Returns the tattoo that starts with the given marker name
|
java.lang.String |
fixRequirementMask(java.lang.String oldMask) |
|
java.lang.String |
getAcceptanceSettings() |
Returns a mask used to identify whether a player is allowed
to join a particular
|
AchievementLibrary.Tracker |
getAchievementTracker(AchievementLibrary.Achievement A,
Tattooable C,
MOB mob) |
Returns the tracker for the given achievement, for the given mob, for the given
tracked thing, or creates it if it does not exist.
|
Clan.Authority |
getAuthority(int roleID,
Clan.Function function) |
Returns whether the given roleID is allowed to perform the
given function.
|
int |
getAutoPosition() |
Returns whether membership is automatically approved to this
And if so, what the default position for members are.
|
java.lang.String |
getBasicRequirementMask() |
Returns the inner (government usually)
requirements to even apply to this clan
|
java.lang.String |
getCategory() |
Returns the category of the clan, which is almost always the
same as the government category.
|
java.lang.String |
getClanClass() |
Retrieves this Clan's enforced character class.
|
protected CharClass |
getClanClassC() |
|
int |
getClanLevel() |
Returns the current clan level
|
int |
getClanRelations(java.lang.String id) |
Returns a REL_* constant denoting the relationship
between this clan and the clan of the given name.
|
java.util.List<Area> |
getControlledAreas() |
Returns all the areas on the map controlled by this
|
double |
getCurrentClanDuesOwed(MOB memberM) |
Returns the amount of base gold value this clan has received.
|
double |
getCurrentClanGoldDonations(MOB memberM) |
Returns the amount of base gold value this clan has received.
|
int |
getCurrentClanKills(MOB killer) |
Returns the number of other-clan kills this clan has recorded.
|
long |
getCurrentClanXPDonations(MOB memberM) |
Returns the amount of xp this clan has earned.
|
java.lang.String |
getDataXML() |
Returns an XML string used to identify the political relations
between this clan and others, and other misc data
|
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
|
double |
getDues() |
Gets the amount of money dues due from
every member due every rl day.
|
long |
getExp() |
Gets the amount of experience earned by this
|
ItemCollection |
getExtItems() |
Gets external items belonging to this clan, which should be destroyed with the
clan, but can still be transient.
|
MOB |
getFactoryMOB() |
Returns a temporary use nameless mob that belongs to this clan,
for the purposes of channelling, usually.
|
java.util.List<Clan.FullMemberRecord> |
getFullMemberList() |
Returns the set of members, where
each row represents a FullMemberRecord
|
ClanGovernment |
getGovernment() |
Returns the object representing the government
of this
|
int |
getGovernmentID() |
Returns the id representing the government type
of this
|
java.lang.String |
getGovernmentName() |
Returns Clan, Republic, or another one of the
clan government types.
|
long |
getLastRelationChange(java.lang.String id) |
Returns the time/date stamp when this clan last changed
its relations with the given
|
protected MOB |
getLoadResponsibleMember() |
|
Clan.MemberRecord |
getMember(java.lang.String name) |
Returns the names member record, if possible
|
java.util.List<Clan.MemberRecord> |
getMemberList() |
Returns the set of members, where
each row represents a MemberRecord
|
java.util.List<Clan.MemberRecord> |
getMemberList(int posFilter) |
Returns the set of members, where
each row represents a MemberRecord.
|
int |
getMinClanMembers() |
Returns the minimum clan members for the clan
to become active, or to prevent being purged.
|
java.lang.String |
getMorgue() |
Returns the roomID of this clans morgue room
|
int |
getMostInRole(int roleID) |
Returns the maximum number of players who can hold the given
role in this For assignment purposes.
|
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 |
getNumberRoles() |
Returns the number of roles (max roleid)
|
int |
getNumVoters(Clan.Function function) |
Returns the number of members allowed to vote on the
given function.
|
Pair<java.lang.String,java.lang.String> |
getPreferredBanking() |
Expensively calculates the given clans preferred banking details,
which is a pair including the bank chain, and the currency preferred.
|
java.lang.String |
getPremise() |
Retrieves this Clan's basic story.
|
protected java.util.List<Clan.MemberRecord> |
getRealMemberList(int PosFilter) |
|
java.lang.String |
getRecall() |
Returns the roomID of this clans recall room (their clan home)
|
java.lang.String |
getResponsibleMemberName() |
Returns the highest ranking member of this
|
int |
getRoleFromName(java.lang.String position) |
For the clan government type, this function will return
the clan role that most closely matches the given string "position".
|
java.lang.String |
getRoleName(int roleID,
boolean titleCase,
boolean plural) |
Returns the friendly descriptive name of a given role in a clan, based
on very specific criteria.
|
java.lang.String[] |
getRolesList() |
Returns the list of roles for people in this clan, from
lowest rank to the highest.
|
int |
getSaveStatIndex() |
Returns the index into the stat codes array where extra savable fields begins.
|
int |
getSize() |
Returns the number of members of this
|
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 |
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
|
int |
getTickStatus() |
A coded status for this object during the period where
its tick method is being called.
|
int |
getTopQualifiedRoleID(Clan.Function func,
MOB mob) |
Returns the roleid constant representing the highest rank
in this clan type that can perform the given function
or null.
|
java.util.List<java.lang.Integer> |
getTopRankedRoles(Clan.Function func) |
Returns the roleid(s) constant representing the highest rank
roleid(s) in this clan type that can perform the given function.
|
int |
getTrophies() |
Returns a bitmap representing the trophies won by this
The bitmap is made up of TROPHY_* constants.
|
long |
getTrophyData(Clan.Trophy trophy) |
Returns the trophy counter for the given Trophy constant.
|
protected ClanGovernment |
govt() |
|
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 |
isLoyaltyThroughItems() |
Returns whether this clan attains conquest loyalty
through giving out clan items.
|
boolean |
isOnlyFamilyApplicants() |
Returns whether this clan only accepts applicants
from people who are family of current members/founder.
|
boolean |
isPubliclyListedFor(MOB mob) |
Returns whether this clan gets listed with the clanlist command.
|
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.
|
protected boolean |
isSafeFromPurge() |
|
boolean |
isSet(Clan.ClanFlag flag) |
Checks whether the given string flag is set for this Clan.
|
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.
|
boolean |
isWorshipConquest() |
Returns whether this clan attains conquest loyalty
through mobs worshiping the same deity as their leader.
|
void |
killAchievementTracker(AchievementLibrary.Achievement A,
Tattooable C,
MOB mob) |
Deletes the tracker for the given achievement, for the given mob, for the given
tracked thing.
|
java.lang.String |
L(java.lang.String str,
java.lang.String... xs) |
|
java.lang.String |
name() |
The nice displayable name of this instance of this object
|
CMObject |
newInstance() |
return a new instance of the object
|
int |
numClanEffects(MOB mob) |
Return size of a vector of skills, spells, and other effects granted to the given
mob of the given mobs level.
|
void |
rebuildAchievementTracker(Tattooable C,
MOB mob,
java.lang.String achievementTattoo) |
If an Achievement is modified or removed, this method will update the
internal player tracker for that achievement.
|
void |
recordClanKill(MOB killer,
MOB killed) |
Called when a member of this clan kills a member of another
Will update the clan in the database.
|
void |
resetMonthlyTrophyData() |
Resets the monthly trophy counters for this clan.
|
void |
setAcceptanceSettings(java.lang.String newSettings) |
Sets a mask used to identify whether a player is allowed
to join a particular
|
void |
setAutoPosition(int pos) |
Sets whether membership is automatically approved to this
And if so, what the default position for members are.
|
void |
setCategory(java.lang.String newCategory) |
Sets a new category for this, which is almost always the
same as the government category.
|
void |
setClanClass(java.lang.String newClass) |
Sets this Clan's enforced character class.
|
void |
setClanLevel(int newClanLevel) |
Sets the new clan level
|
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 |
setDataXML(java.lang.String politics) |
Sets an XML string used to identify the political relations
between this clan and others, as well as other misc data
|
void |
setDonation(java.lang.String newDonation) |
Sets the roomID of this clans donation room
|
void |
setDues(double dues) |
Sets the amount of money dues due from
every member per rl day.
|
void |
setExp(long newexp) |
Sets the amount of experience earned by this
|
void |
setFlag(Clan.ClanFlag flag,
boolean setOrUnset) |
Sets or unsets an account-wide flag.
|
void |
setGovernmentID(int type) |
Returns the id constant representing the government type
of this
|
void |
setMinClanMembers(int amt) |
Sets the minimum clan members for the clan
to become active, or to prevent being purged.
|
void |
setMorgue(java.lang.String newMorgue) |
Sets the roomID of this clans morgue room
|
void |
setName(java.lang.String newName) |
Sets a new name for this
|
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 |
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 |
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 |
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
|
void |
setTrophies(int trophyFlag) |
Sets a bitmap representing the trophies won by this
The bitmap is made up of TROPHY_* constants.
|
java.util.Enumeration<Tattoo> |
tattoos() |
Returns an enumeration of all the tattoos on this object.
|
boolean |
tick(Tickable ticking,
int tickID) |
this is the method which is called periodically by the threading engine.
|
void |
update() |
Orders the system to update this clan in the database.
|
boolean |
updateClanPrivileges(MOB M) |
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
|
java.util.Enumeration<Clan.ClanVote> |
votes() |
If the clan type allows voting, this returns a
series of ClanVote objects
|
protected java.lang.String clanName
protected java.lang.String clanCategory
protected java.lang.String clanPremise
protected java.lang.String clanRecall
protected java.lang.String clanMorgue
protected java.lang.String clanClass
protected int clanLevel
protected java.lang.String clanDonationRoom
protected int clanTrophies
protected java.lang.Boolean isRivalrous
protected int autoPosition
protected java.lang.String acceptanceSettings
protected int clanStatus
protected long lastStatusChange
protected java.lang.String lastClanKillLog
protected double taxRate
protected double dues
protected volatile long exp
protected volatile long lastClanTickMs
protected java.lang.Object expSync
protected java.util.List<Clan.ClanVote> voteList
protected java.util.List<java.lang.Long> clanKills
protected java.lang.Integer overrideMinClanMembers
protected long lastPropsReload
protected ItemCollection extItems
protected java.util.Map<java.lang.String,long[]> relations
protected int government
protected long lastGovernmentLoadTime
protected ClanGovernment govt
protected long totalOnlineMins
protected long totalLevelsGained
protected int monthOnlineMins
protected int monthPlayerXP
protected int monthClanXP
protected int monthConquered
protected int monthClanLevels
protected int monthControlPoints
protected int monthNewMembers
protected volatile int tickUp
protected volatile int transientSize
protected java.util.Set<Clan.ClanFlag> clanFlags
protected MOB factoryMob
protected static final java.util.List<Ability> empty
protected CMUniqNameSortSVec<Tattoo> tattoos
protected java.util.Map<java.lang.String,AchievementLibrary.Tracker> achievementers
public java.lang.String ID()
CMObject
public int getTickStatus()
Tickable
getTickStatus
in interface Tickable
Tickable.tick(Tickable, int)
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
public ClanGovernment getGovernment()
Clan
getGovernment
in interface Clan
ClanGovernment
,
Clan.getGovernmentID()
,
Clan.setGovernmentID(int)
protected ClanGovernment govt()
public void resetMonthlyTrophyData()
Clan
resetMonthlyTrophyData
in interface Clan
Clan.getTrophies()
,
Clan.setTrophies(int)
,
Clan.bumpTrophyData(Trophy, int)
,
Clan.getTrophyData(Trophy)
public long getTrophyData(Clan.Trophy trophy)
Clan
getTrophyData
in interface Clan
trophy
- the trophy to get counter data forClan.getTrophies()
,
Clan.setTrophies(int)
,
Clan.bumpTrophyData(Trophy, int)
public void bumpTrophyData(Clan.Trophy trophy, int amt)
Clan
bumpTrophyData
in interface Clan
trophy
- the trophy to bump counter data foramt
- the amount, positive or negative, to bump it byClan.getTrophies()
,
Clan.setTrophies(int)
,
Clan.bumpTrophyData(Trophy, int)
public void updateVotes()
Clan
updateVotes
in interface Clan
public void addVote(Clan.ClanVote CV)
Clan
addVote
in interface Clan
CV
- the clanvote object to addClan.ClanVote
public void delVote(Clan.ClanVote CV)
Clan
delVote
in interface Clan
CV
- the clanvote object to removeClan.ClanVote
public void recordClanKill(MOB killer, MOB killed)
Clan
recordClanKill
in interface Clan
killer
- the member of this clan that did the killingkilled
- the mob or member of other clan killedpublic int getCurrentClanKills(MOB killer)
Clan
getCurrentClanKills
in interface Clan
killer
- the member of this clan that did the killing or NULL for allpublic double getCurrentClanGoldDonations(MOB memberM)
Clan
getCurrentClanGoldDonations
in interface Clan
memberM
- the member of this clan that did the killing or NULL for allpublic double getCurrentClanDuesOwed(MOB memberM)
Clan
getCurrentClanDuesOwed
in interface Clan
memberM
- the member of this clan that did the killing or NULL for allpublic long getCurrentClanXPDonations(MOB memberM)
Clan
getCurrentClanXPDonations
in interface Clan
memberM
- the member of this clan that did the killing or NULL for allpublic boolean isSet(Clan.ClanFlag flag)
Clan
isSet
in interface Clan
flag
- the flag nameClan.setFlag(ClanFlag, boolean)
public void setFlag(Clan.ClanFlag flag, boolean setOrUnset)
Clan
setFlag
in interface Clan
flag
- the flag namesetOrUnset
- true to set it, false to unsetClan.isSet(ClanFlag)
public boolean isOnlyFamilyApplicants()
Clan
isOnlyFamilyApplicants
in interface Clan
public boolean isLoyaltyThroughItems()
Clan
isLoyaltyThroughItems
in interface Clan
public boolean isWorshipConquest()
Clan
isWorshipConquest
in interface Clan
public long calculateMapPoints()
Clan
calculateMapPoints
in interface Clan
Clan.calculateMapPoints(List)
,
Clan.getControlledAreas()
,
Conquerable
public long calculateMapPoints(java.util.List<Area> controlledAreas)
Clan
calculateMapPoints
in interface Clan
controlledAreas
- the areas controlledClan.calculateMapPoints()
,
Clan.getControlledAreas()
,
Conquerable
public java.util.List<Area> getControlledAreas()
Clan
getControlledAreas
in interface Clan
Conquerable
,
Area
public java.util.Enumeration<Clan.ClanVote> votes()
Clan
votes
in interface Clan
Clan.ClanVote
public int getAutoPosition()
Clan
getAutoPosition
in interface Clan
Clan.setAutoPosition(int)
public void setAutoPosition(int pos)
Clan
setAutoPosition
in interface Clan
pos
- the positition to give to applicantsClan.getAutoPosition()
public void setExp(long newexp)
Clan
public void adjExp(MOB memberM, int howMuch)
Clan
public void adjDeposit(MOB memberM, double howMuch)
Clan
adjDeposit
in interface Clan
memberM
- member the person contributinghowMuch
- the value adjustment, + or -public void adjDuesDeposit(MOB memberM, double howMuch)
Clan
adjDuesDeposit
in interface Clan
memberM
- member the person contributinghowMuch
- the value adjustment, + or -public long getExp()
Clan
public int getTrophies()
Clan
getTrophies
in interface Clan
Clan
,
Clan.setTrophies(int)
,
Clan.bumpTrophyData(Trophy, int)
,
Clan.getTrophyData(Trophy)
public void setTrophies(int trophyFlag)
Clan
setTrophies
in interface Clan
trophyFlag
- a bitmap of the trophiesClan
,
Clan.getTrophies()
,
Clan.bumpTrophyData(Trophy, int)
,
Clan.getTrophyData(Trophy)
public void setTaxes(double rate)
Clan
setTaxes
in interface Clan
rate
- the tax rate 0-100.0Clan.getTaxes()
public double getTaxes()
Clan
getTaxes
in interface Clan
Clan.setTaxes(double)
public void setDues(double dues)
Clan
public double getDues()
Clan
public int getClanRelations(java.lang.String id)
Clan
getClanRelations
in interface Clan
id
- the name of anotherClan.setClanRelations(String, int, long)
,
Clan.getLastRelationChange(String)
public long getLastRelationChange(java.lang.String id)
Clan
getLastRelationChange
in interface Clan
id
- the other clanClan.setClanRelations(String, int, long)
,
Clan.getClanRelations(String)
public void setClanRelations(java.lang.String id, int rel, long time)
Clan
setClanRelations
in interface Clan
id
- another clanrel
- the REL_* constant for the new relationshiptime
- a current date/time stamp for this changepublic int getGovernmentID()
Clan
getGovernmentID
in interface Clan
Clan
,
Clan.setGovernmentID(int)
,
Clan.getGovernment()
public void setGovernmentID(int type)
Clan
setGovernmentID
in interface Clan
type
- the type id constantClan
,
Clan.getGovernmentID()
,
Clan.getGovernment()
public java.lang.String getCategory()
Clan
getCategory
in interface Clan
Clan.setCategory(String)
public int getMinClanMembers()
Clan
getMinClanMembers
in interface Clan
public void setMinClanMembers(int amt)
Clan
setMinClanMembers
in interface Clan
amt
- the new min clan memberspublic void setCategory(java.lang.String newCategory)
Clan
setCategory
in interface Clan
newCategory
- the new cata of this clanClan.getCategory()
public boolean isRivalrous()
Clan
isRivalrous
in interface Clan
Clan
,
Clan.setRivalrous(boolean)
public void setRivalrous(boolean isRivalrous)
Clan
setRivalrous
in interface Clan
isRivalrous
- true or falseClan
,
Clan.isRivalrous()
public void create()
Clan
public void update()
Clan
public void addMember(MOB M, int role)
Clan
public void delMember(MOB M)
Clan
public boolean updateClanPrivileges(MOB M)
Clan
updateClanPrivileges
in interface Clan
M
- the mob whose status needs updatingpublic void destroyClan()
Clan
destroyClan
in interface Clan
protected CharClass getClanClassC()
public java.lang.String getDetail(MOB mob)
Clan
public java.lang.String L(java.lang.String str, java.lang.String... xs)
public java.lang.String getGovernmentName()
Clan
getGovernmentName
in interface Clan
Clan
public boolean canBeAssigned(MOB mob, int role)
Clan
canBeAssigned
in interface Clan
mob
- the mob to checkrole
- the role to check forpublic Clan.Authority getAuthority(int roleID, Clan.Function function)
Clan
getAuthority
in interface Clan
roleID
- the roleID whose priviledges to check.function
- the ClanFunction function constant to useClan
,
Clan.Authority
public java.lang.String fixRequirementMask(java.lang.String oldMask)
public java.lang.String getBasicRequirementMask()
Clan
getBasicRequirementMask
in interface Clan
protected java.util.List<Clan.MemberRecord> getRealMemberList(int PosFilter)
public int getSize()
Clan
public java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
Environmental.Name()
public java.lang.String getName()
Clan
getName
in interface Clan
Clan.setName(String)
public java.lang.String clanID()
Clan
clanID
in interface Clan
Clan.getName()
public void setName(java.lang.String newName)
Clan
setName
in interface Clan
newName
- the new name of this clanClan.getName()
,
Clan.clanID()
public java.lang.String getPremise()
Clan
getPremise
in interface Clan
Clan.setPremise(String)
public void setPremise(java.lang.String newPremise)
Clan
setPremise
in interface Clan
newPremise
- the new premise textClan.getPremise()
public MOB getFactoryMOB()
Clan
getFactoryMOB
in interface Clan
public int getClanLevel()
Clan
getClanLevel
in interface Clan
Clan.setClanLevel(int)
public void setClanLevel(int newClanLevel)
Clan
setClanLevel
in interface Clan
newClanLevel
- the new clan levelClan.getClanLevel()
public java.lang.String getAcceptanceSettings()
Clan
getAcceptanceSettings
in interface Clan
MaskingLibrary
,
Clan.setAcceptanceSettings(String)
public void setAcceptanceSettings(java.lang.String newSettings)
Clan
setAcceptanceSettings
in interface Clan
newSettings
- the mask used to identify prospectsMaskingLibrary
,
Clan.getAcceptanceSettings()
public java.lang.String getClanClass()
Clan
getClanClass
in interface Clan
Clan.setClanClass(String)
public void setClanClass(java.lang.String newClass)
Clan
setClanClass
in interface Clan
newClass
- the new enforced character classClan.getClanClass()
public java.lang.String getDataXML()
Clan
getDataXML
in interface Clan
Clan.setDataXML(String)
public void setDataXML(java.lang.String politics)
Clan
setDataXML
in interface Clan
politics
- xml document describing the politics and other data of this clanClan.getDataXML()
public int getStatus()
Clan
getStatus
in interface Clan
Clan
,
Clan.setStatus(int)
public void setStatus(int newStatus)
Clan
setStatus
in interface Clan
newStatus
- a CLANSTAT_* constantClan
,
Clan.getStatus()
public java.lang.String getRecall()
Clan
getRecall
in interface Clan
Clan.setRecall(String)
public void setRecall(java.lang.String newRecall)
Clan
setRecall
in interface Clan
newRecall
- the roomid of this clans clan homeClan.getRecall()
public java.lang.String getMorgue()
Clan
getMorgue
in interface Clan
Clan.setMorgue(String)
public void setMorgue(java.lang.String newMorgue)
Clan
setMorgue
in interface Clan
newMorgue
- the roomID of this clans morgue roomClan.getMorgue()
public java.lang.String getDonation()
Clan
getDonation
in interface Clan
Clan.setDonation(String)
public void setDonation(java.lang.String newDonation)
Clan
setDonation
in interface Clan
newDonation
- the roomID of this clans donation roomClan.getDonation()
public java.util.List<Clan.MemberRecord> getMemberList()
Clan
getMemberList
in interface Clan
Clan.getMemberList(int)
,
Clan.getFullMemberList()
,
Clan.MemberRecord
public int filterMedianLevel(java.util.List<Clan.FullMemberRecord> members)
public java.util.List<Clan.MemberRecord> filterMemberList(java.util.List<? extends Clan.MemberRecord> members, int posFilter)
public java.util.List<Clan.MemberRecord> getMemberList(int posFilter)
Clan
getMemberList
in interface Clan
posFilter
- the position filterClan
,
Clan.MemberRecord
public Clan.MemberRecord findMemberRecord(java.lang.String name)
Clan
findMemberRecord
in interface Clan
name
- the name of the memberClan.getMemberList(int)
,
Clan.getFullMemberList()
,
Clan.MemberRecord
public MOB findMember(java.lang.String name)
Clan
findMember
in interface Clan
name
- the name of the memberClan.getMemberList(int)
,
Clan.getFullMemberList()
,
Clan.MemberRecord
public Clan.MemberRecord getMember(java.lang.String name)
Clan
getMember
in interface Clan
name
- the name of the memberClan.getMemberList(int)
,
Clan.getFullMemberList()
public java.util.List<Clan.FullMemberRecord> getFullMemberList()
Clan
getFullMemberList
in interface Clan
Clan.getMemberList()
,
Clan.FullMemberRecord
public int getNumVoters(Clan.Function function)
Clan
getNumVoters
in interface Clan
function
- the FUNC_* constantClan
public java.util.List<java.lang.Integer> getTopRankedRoles(Clan.Function func)
Clan
getTopRankedRoles
in interface Clan
func
- the function to perform, or null just to return privileged rankClanPosition
,
Clan.Function
public int getNumberRoles()
Clan
getNumberRoles
in interface Clan
public int getTopQualifiedRoleID(Clan.Function func, MOB mob)
Clan
getTopQualifiedRoleID
in interface Clan
func
- the function (or null) they must be able to domob
- the mob to check for a top rankClanPosition
,
Clan.Function
public int getRoleFromName(java.lang.String position)
Clan
getRoleFromName
in interface Clan
position
- the name of the position to look forpublic boolean isPubliclyListedFor(MOB mob)
Clan
isPubliclyListedFor
in interface Clan
mob
- the person viewingpublic java.lang.String[] getRolesList()
Clan
getRolesList
in interface Clan
public int getMostInRole(int roleID)
Clan
getMostInRole
in interface Clan
roleID
- the role to get a max forpublic java.lang.String getRoleName(int roleID, boolean titleCase, boolean plural)
Clan
getRoleName
in interface Clan
roleID
- the role code of the role to describetitleCase
- whether or not to uppercase the first wordplural
- whether or not to return the word as a pluralprotected boolean isSafeFromPurge()
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
ticking
- a reference to this Tickable objecttickID
- the TICKID_ constant describing this periodic call, as defined in TickableTickable
,
ServiceEngine
,
TickableGroup
public boolean doesOutRank(int highRoleID, int lowRoleID)
Clan
doesOutRank
in interface Clan
highRoleID
- firstlowRoleID
- secondpublic void clanAnnounce(java.lang.String msg)
Clan
clanAnnounce
in interface Clan
msg
- the message to sendpublic SearchIDList<Ability> clanAbilities(MOB mob)
Clan
clanAbilities
in interface Clan
mob
- the mob to grant the abilities toAbility
public int numClanEffects(MOB mob)
Clan
numClanEffects
in interface Clan
mob
- the mob to grant the abilities toAbility
public ChameleonList<Ability> clanEffects(MOB mob)
Clan
clanEffects
in interface Clan
mob
- the mob to grant the abilities toAbility
public int applyExpMods(MOB memberM, int exp)
Clan
applyExpMods
in interface Clan
memberM
- member the person contributing the xpexp
- the old experienceprotected MOB getLoadResponsibleMember()
public java.lang.String getResponsibleMemberName()
Clan
getResponsibleMemberName
in interface Clan
public ItemCollection getExtItems()
Clan
getExtItems
in interface Clan
ItemCollection
,
Item
public void addTattoo(java.lang.String of)
addTattoo
in interface Tattooable
of
- the permanent tattoo name to addTattooable
,
Tattooable.addTattoo(String, int)
,
Tattooable.addTattoo(Tattoo)
public void addTattoo(java.lang.String of, int tickDown)
Tattooable
addTattoo
in interface Tattooable
of
- the permanent tattoo name to addtickDown
- the ticks of life for this tattooTattooable
,
Tattooable.addTattoo(String)
,
Tattooable.addTattoo(Tattoo)
public boolean delTattoo(java.lang.String of)
Tattooable
delTattoo
in interface Tattooable
of
- the tattoo name of the tattoo to removeTattooable
,
Tattooable.delTattoo(Tattoo)
public void addTattoo(Tattoo of)
Tattooable
addTattoo
in interface Tattooable
of
- the tattoo object to addTattooable
,
Tattooable.addTattoo(String, int)
,
Tattooable.addTattoo(String)
public void delTattoo(Tattoo of)
Tattooable
delTattoo
in interface Tattooable
of
- the tattoo object to removeTattooable
,
Tattooable.delTattoo(String)
public java.util.Enumeration<Tattoo> tattoos()
Tattooable
tattoos
in interface Tattooable
Tattooable
public Tattoo findTattoo(java.lang.String of)
Tattooable
findTattoo
in interface Tattooable
of
- the marker name to return a tattoo forTattooable
,
Tattooable.findTattooStartsWith(String)
public Tattoo findTattooStartsWith(java.lang.String of)
Tattooable
findTattooStartsWith
in interface Tattooable
of
- the marker name to return a tattoo starter forTattooable
,
Tattooable.findTattoo(String)
public void killAchievementTracker(AchievementLibrary.Achievement A, Tattooable C, MOB mob)
Achievable
killAchievementTracker
in interface Achievable
A
- the achievement to kill the tracker forC
- the mob or clan being trackedmob
- the mob to delete a tracker forAchievable.rebuildAchievementTracker(Tattooable, MOB, String)
,
AchievementLibrary.Tracker
,
AchievementLibrary.Achievement
public AchievementLibrary.Tracker getAchievementTracker(AchievementLibrary.Achievement A, Tattooable C, MOB mob)
Achievable
getAchievementTracker
in interface Achievable
A
- the achievement to get the tracker forC
- the mob or clan being trackedmob
- the mob to create a tracker for#see Achievable#killAchievementTracker(Achievement, MOB)
,
AchievementLibrary.Tracker
,
AchievementLibrary.Achievement
public void rebuildAchievementTracker(Tattooable C, MOB mob, java.lang.String achievementTattoo)
Achievable
rebuildAchievementTracker
in interface Achievable
C
- the mob or clan being trackedmob
- the mob to modify the tracker for.achievementTattoo
- the tattoo/id of the achievementAchievable.getAchievementTracker(com.planet_ink.coffee_mud.Libraries.interfaces.AchievementLibrary.Achievement, Tattooable, MOB)
public Pair<java.lang.String,java.lang.String> getPreferredBanking()
getPreferredBanking
in interface Clan
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 boolean isStat(java.lang.String code)
Modifiable
isStat
in interface Modifiable
code
- the name of the field to read.Modifiable.getStatCodes()
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 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()