|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Common.DefaultPlayerStats
public class DefaultPlayerStats
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Common.interfaces.AccountStats |
|---|
AccountStats.Agent, AccountStats.PrideStat |
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> |
ableMap
|
protected PlayerAccount |
account
|
protected long |
accountExpires
|
protected java.util.Map<java.lang.String,AchievementLibrary.Tracker> |
achievementers
|
protected java.util.Map<java.lang.String,java.lang.String> |
alias
|
protected java.lang.String |
announceMsg
|
protected java.util.Set<java.lang.String> |
autoInvokeSet
|
protected int[] |
birthday
|
protected int |
bonusCharStatPt
|
protected int |
bonusCommonSk
|
protected int |
bonusCraftSk
|
protected int |
bonusLanguages
|
protected int |
bonusNonCraftSk
|
protected int |
channelMask
|
protected java.util.Map<CharClass,java.util.Map<java.lang.String,java.lang.Object>> |
classMap
|
protected static java.lang.String[] |
CODES
|
protected java.lang.String |
colorStr
|
protected java.util.Map<java.lang.String,int[]> |
combatSpams
|
protected java.lang.String |
deathPoof
|
protected int |
deferredXP
|
protected java.lang.String |
email
|
protected java.util.Map<java.lang.String,ExpertiseLibrary.ExpertiseDefinition> |
experMap
|
protected ItemCollection |
extItems
|
protected java.util.Set<java.lang.String> |
friends
|
protected static int |
GTELL_STACK_MAX_SIZE
|
protected java.util.List<java.lang.String> |
gtellStack
|
protected long |
hygiene
|
protected java.util.Set<java.lang.String> |
ignored
|
protected java.util.Set<java.lang.String> |
introductions
|
protected boolean |
isSavable
|
protected java.lang.String |
lastIP
|
protected long |
lastRolePlayTm
|
protected long |
lastUpdated
|
protected long |
lastXPDateTime
|
protected java.util.Map<java.lang.String,java.lang.Integer> |
legacy
|
protected QuadVector<java.lang.Integer,java.lang.Long,java.lang.String,java.lang.Long> |
levelInfo
|
protected long |
lLastDateTime
|
protected int |
maxDeferredXP
|
protected int |
maxRolePlayXP
|
protected java.lang.String |
notes
|
protected int |
pageBreak
|
protected java.lang.String |
password
|
protected java.lang.String |
poofin
|
protected java.lang.String |
poofout
|
protected long[] |
prideExpireTime
|
protected int[][] |
prideStats
|
protected java.lang.String |
prompt
|
protected long |
replyTime
|
protected MOB |
replyTo
|
protected int |
replyType
|
protected int |
rolePlayXP
|
protected java.lang.String |
savedPose
|
protected CMSecurity.SecGroup |
securityFlags
|
protected static int |
TELL_STACK_MAX_SIZE
|
protected java.util.List<java.lang.String> |
tellStack
|
protected int |
theme
|
protected java.util.List<java.lang.String> |
titles
|
protected java.lang.String |
tranpoofin
|
protected java.lang.String |
tranpoofout
|
protected RoomnumberSet |
visitedRoomSet
|
protected int |
wrap
|
protected java.lang.String[] |
xtraValues
|
| Fields inherited from interface com.planet_ink.coffee_mud.Common.interfaces.PlayerStats |
|---|
BIRTHDEX_DAY, BIRTHDEX_LASTYEARCELEBRATED, BIRTHDEX_MONTH, BIRTHDEX_YEAR, HYGIENE_COMMONDIRTY, HYGIENE_DELIMIT, HYGIENE_FIGHTDIRTY, HYGIENE_RAINCLEAN, HYGIENE_WATERCLEAN, REPLY_SAY, REPLY_TELL, REPLY_YELL |
| Constructor Summary | |
|---|---|
DefaultPlayerStats()
|
|
| Method Summary | |
|---|---|
void |
addAliasName(java.lang.String named)
Adds a new alias command for this player, undefined at first. |
void |
addAutoInvokeList(java.lang.String abilityID)
Adds the given ability ID is on the list of those skills whose autoInvocation should be suppressed. |
void |
addGTellStack(java.lang.String msg)
Adds a new string message to the gtell stack. |
void |
addLegacyLevel(java.lang.String category)
Adds a new legacy level in the given category. |
boolean |
addRoomVisit(Room R)
Records the fact that this player has been to the given room. |
void |
addTellStack(java.lang.String msg)
Adds a new string message to the tell stack. |
boolean |
adjHygiene(long byThisMuch)
Modifies, up or down, how stinky this player is. |
boolean |
amDestroyed()
Whether the destroy() method has been previousy called on this object. |
void |
bumpPrideStat(AccountStats.PrideStat stat,
int amt)
Add to one of the pride stats for this player or account |
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 |
delAliasName(java.lang.String named)
Removes an old alias command for this player. |
void |
destroy()
Utterly and permanently destroy this object, not only removing it from the map, but causing this object to be collected as garbage by Java. |
PlayerAccount |
getAccount()
If the ACCOUNTSYSTEM is used, this will access the account object that is shared by all players of this account. |
long |
getAccountExpiration()
If the ACCOUNT system is used, this returns the time, in milis since 1970, that this account will expire (meaning the player will no longer be able to log in) |
AchievementLibrary.Tracker |
getAchievementTracker(AchievementLibrary.Achievement A,
MOB mob)
Returns the tracker for the given achievement, for the given mob, or creates it if it does not exist. |
java.lang.String |
getActiveTitle()
Returns which of the player available titles is currently being used by this player. |
java.lang.String |
getAlias(java.lang.String named)
Returns the definition of the given alias command for this player. |
java.lang.String[] |
getAliasNames()
Returns the string array set of defined alias commands for this player. |
java.lang.String |
getAliasXML()
|
java.lang.String |
getAnnounceMessage()
For players with the ANNOUNCE command, this is the message used to prefix the announcements proclaimed. |
int[] |
getBirthday()
Returns a 2-dimensional integer array with the players birth day and month (in mud calendar) |
int |
getBonusCharStatPoints()
Returns the number of bonus char stat points to assign to stats during character creation. |
int |
getBonusCommonSkillLimits()
Returns the number of bonus common skills available to this character. |
int |
getBonusCraftingSkillLimits()
Returns the number of bonus Crafting skills available to this character. |
int |
getBonusLanguageLimits()
Returns the number of bonus Language skills available to this character. |
int |
getBonusNonCraftingSkillLimits()
Returns the number of bonus Gathering skills available to this character. |
int |
getChannelMask()
Returns a bitmask of channels turned on/off. |
java.util.Map<java.lang.String,java.lang.Object> |
getClassVariableMap(CharClass charClass)
Returns a personal miscellaneous object map, to be used for non-core-system attributes, such as transient class variables. |
protected int |
getCodeNum(java.lang.String code)
|
java.lang.String |
getColorStr()
Returns a custom coded string detailing the changes to the official color code that apply to this player only. |
java.util.Map<java.lang.String,int[]> |
getCombatSpams()
If the player has NoCombatSpam turned on, then these player settings are used to hold accumulated information about combat results for summarizing later. |
java.lang.String |
getDeathPoof()
This is the message seen by all when the player dies. |
int |
getDeferredXP()
Returns the current amount of deferred xp that this player has been awarded, typically over a given level. |
java.lang.String |
getEmail()
Returns the players email address, if available. |
ItemCollection |
getExtItems()
Gets external items belonging to this player, which should be destroyed with the player, but can still be transient. |
java.util.Map<java.lang.String,ExpertiseLibrary.ExpertiseDefinition> |
getExtraQualifiedExpertises()
Returns a mapping definition between awarded expertise and their requirements. |
java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> |
getExtraQualifiedSkills()
Returns a mapping definition between awarded abilities and their requirements. |
java.util.Set<java.lang.String> |
getFriends()
Returns a modifiable Set that contains the set of player Names that constitutes this players friends. |
java.util.List<java.lang.String> |
getGTellStack()
Returns a List of the last few string messages sent and received to and from this players group. |
SHashSet<java.lang.String> |
getHashFrom(java.lang.String str)
|
long |
getHygiene()
Returns a long value of how stinky this player is. |
java.util.Set<java.lang.String> |
getIgnored()
Returns a modifiable Set that contains the set of player Names that constitutes this players ignored player list. |
long |
getLastDateTime()
The time, in milis since 1970, that the player last logged off. |
java.lang.String |
getLastIP()
The last IP address this player logged in from. |
long |
getLastRolePlayXPTime()
Returns the last time roleplay xp was earned in a way that could be spammed. |
long |
getLastUpdated()
The time, in milis since 1970, that the player was last saved. |
long |
getLastXPAwardMillis()
Returns the last time this player has been awarded XP. |
int |
getLegacyLevel(java.lang.String category)
Returns the legacy levels for this player, in the given categories |
java.lang.String |
getLegacyXML()
|
int |
getMaxDeferredXP()
Returns the maximum amount of deferred xp that this player can be awarded, typically over a given level. |
int |
getMaxRolePlayXP()
Returns the maximum amount of role playing xp that this player can be awarded, typically over a given level. |
java.lang.String |
getNotes()
Returns the administrative notes entered about this player. |
int |
getPageBreak()
Returns the page break row for this player, or 0. |
java.lang.String |
getPasswordStr()
Returns the players password, perhaps encoded, perhaps plain text. |
java.lang.String |
getPoofIn()
For player with the GOTO command, this is the message seen by all when the player arrives from using GOTO. |
java.lang.String |
getPoofOut()
For player with the GOTO command, this is the message seen by all when the player leaves using GOTO. |
int |
getPrideStat(TimeClock.TimePeriod period,
AccountStats.PrideStat stat)
Get one of the pride stats for this player or account |
protected java.lang.String |
getPrivateList(java.util.Set<java.lang.String> h)
|
java.lang.String |
getPrompt()
Returns the custom prompt, an encoded string, for this player. |
MOB |
getReplyToMOB()
Returns the last MOB player who sent this player a private instant message. |
long |
getReplyToTime()
Returns the last time, in millis since 1970, that a player last sent this playe a private message. |
int |
getReplyType()
Returns the type of private message last sent to this player, an encoded constant. |
int |
getRolePlayXP()
Returns the current amount of role playing xp that this player has been awarded, typically over a given level. |
java.lang.String |
getSavedPose()
Gets the saved pose string for players. |
int |
getSaveStatIndex()
Returns the index into the stat codes array where extra savable fields begins. |
CMSecurity.SecGroup |
getSecurityFlags()
Returns a read-only Set of security flags that apply to this player. |
java.lang.String |
getSetSecurityFlags(java.lang.String newFlags)
Returns and/or sets the security flags and groups strings to which this player is privileged. |
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. |
java.util.List<java.lang.String> |
getTellStack()
Returns a List of the last few string messages sent and received to and from this player. |
int |
getTheme()
Returns the theme used to create this player. |
java.util.List<java.lang.String> |
getTitles()
Returns a list of modifiable title definitions. |
int |
getTotalLegacyLevels()
Returns the total legacy levels for this player, all categories |
java.lang.String |
getTranPoofIn()
For player with the TRANSFER command, this is the message seen by all when the player arrives from using TRANSFER. |
java.lang.String |
getTranPoofOut()
For player with the TRANSFER command, this is the message seen by all when the player leaves using TRANSFER. |
int |
getWrap()
Returns the word wrap column number for this player, or 0. |
java.lang.String |
getXML()
Returns an XML representation of all the data in this object, for persistent storage. |
boolean |
hasVisited(Area A)
Returns whether this player has visited the given area. |
boolean |
hasVisited(Room R)
Returns whether this player has visited the given room. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
int |
initializeBirthday(TimeClock clock,
int ageHours,
Race R)
When a player is first created, this method is used to either initialize their birthday, or derive their birthday based on the number of hours they've played. |
void |
initializeClass()
Called ONCE after all objects are loaded, but before the map is read in during initialization. |
void |
introduceTo(java.lang.String name)
If the INTRODUCTIONSYSTEM is used, this notifys the system that this player has met the player of the given name. |
boolean |
isIgnored(MOB mob)
Returns whether the given player is being ignored. |
boolean |
isIgnored(java.lang.String name)
Returns whether the given player name is being ignored. |
boolean |
isIntroducedTo(java.lang.String name)
If the INTRODUCTIONSYSTEM is used, this returns true if the player has been introduced to the other player of the given name. |
boolean |
isOnAutoInvokeList(java.lang.String abilityID)
Checks whether the given ability ID is on the list of those skills whose autoInvocation should be suppressed. |
boolean |
isSavable()
Whether, if this object is in a room, whether it is appropriate to save this object to the database as a permanent feature of its container. |
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. |
void |
killAchievementTracker(AchievementLibrary.Achievement A,
MOB mob)
Deletes the tracker for the given achievement, for the given mob. |
long |
leveledDateTime(int level)
The time, in milis since 1970, that the player gained the given level |
long |
leveledMinutesPlayed(int level)
The number of minutes played when the player gained the given level |
java.lang.String |
leveledRoomID(int level)
The roomID that the player gained the given level |
boolean |
matchesPassword(java.lang.String checkPass)
Returns the players password, perhaps encoded, perhaps plain text. |
java.lang.String |
name()
The displayable name of this object. |
CMObject |
newInstance()
Returns a new instance of this class. |
int |
percentVisited(MOB mob,
Area A)
Returns the percentage (0-100) of the given area that the given player has explored. |
void |
rebuildAchievementTracker(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 |
removeAutoInvokeList(java.lang.String abilityID)
Removes the given ability ID is on the list of those skills whose autoInvocation should be suppressed. |
boolean |
sameAs(PlayerStats E)
Whether this object instance is functionally identical to the object passed in. |
void |
setAccount(PlayerAccount account)
If the ACCOUNTSYSTEM is used, this will allow you to set the account object that is shared by all players of this account. |
void |
setAccountExpiration(long newVal)
If the ACCOUNT system is used, this sets the time, in milis since 1970, that this account will expire (meaning the player will no longer be able to log in) |
void |
setAlias(java.lang.String named,
java.lang.String value)
Modifies the commands executed by an existing alias command. |
void |
setAnnounceMessage(java.lang.String msg)
For players with the ANNOUNCE command, this sets the message used to prefix the announcements proclaimed. |
void |
setBonusCharStatPoints(int bonus)
Sets the number of bonus char stat points to assign to stats during character creation. |
void |
setBonusCommonSkillLimits(int bonus)
Sets the number of bonus common skills available to this character. |
void |
setBonusCraftingSkillLimits(int bonus)
Sets the number of bonus Crafting skills available to this character. |
void |
setBonusLanguageLimits(int bonus)
Sets the number of bonus Language skills available to this character. |
void |
setBonusNonCraftingSkillLimits(int bonus)
Sets the number of bonus Gathering skills available to this character. |
void |
setChannelMask(int newMask)
Sets the bitmask of channels turned on/off. |
void |
setColorStr(java.lang.String newColors)
Sets a custom coded string detailing the changes to the official color code that apply to this player only. |
void |
setDeathPoof(java.lang.String poof)
This is the message seen by all when the player dies. |
void |
setDeferredXP(int amt)
Sets the amount of deferred xp that this player has been awarded, typically over a given level. |
void |
setEmail(java.lang.String newAdd)
Sets the players email address, if available. |
void |
setHygiene(long newVal)
Sets the number meaning how stinky this player is. |
void |
setLastDateTime(long C)
Sets the time, in milis since 1970, that the player last logged off. |
void |
setLastIP(java.lang.String ip)
Sets the last IP address this player logged in from. |
void |
setLastRolePlayXPTime(long tm)
Sets the last time roleplay xp was earned in a way that could be spammed. |
void |
setLastUpdated(long time)
Sets the time, in milis since 1970, that the player was last saved. |
void |
setLastXPAwardMillis(long time)
Sets the last time this player has been awarded XP. |
void |
setLeveledDateTime(int level,
long ageHours,
Room R)
Notifies the player records that, at the moment this method was called, the player gained the given level. |
void |
setMaxDeferredXP(int amt)
Sets the maximum amount of deferred xp that this player can be awarded, typically over a given level. |
void |
setMaxRolePlayXP(int amt)
Sets the maximum amount of role playing xp that this player can be awarded, typically over a given level. |
void |
setNotes(java.lang.String newnotes)
Sets the administrative notes entered about this player. |
void |
setPageBreak(int newBreak)
Sets the page break row for this player, or 0. |
void |
setPassword(java.lang.String newPassword)
Sets the players password. |
void |
setPoofs(java.lang.String poofIn,
java.lang.String poofOut,
java.lang.String tranPoofIn,
java.lang.String tranPoofOut)
For players with either the GOTO or TRANSFER command, this will set the various messages seen when coming and going using either of those commands. |
void |
setPrompt(java.lang.String newPrompt)
Sets the custom prompt, an encoded string, for this player. |
void |
setReplyTo(MOB mob,
int replyType)
Sets the last MOB player who sent this player a private instant message, and some information about that tell (a defined constant). |
void |
setRolePlayXP(int amt)
Sets the amount of role playing xp that this player has been awarded, typically over a given level. |
void |
setSavable(boolean truefalse)
Sets whether this object can be saved as a permanent aspect of its host. |
void |
setSavedPose(java.lang.String msg)
Sets the saved pose string for players. |
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 |
setTheme(int theme)
Sets the theme used to create this player. |
void |
setWrap(int newWrap)
Sets the word wrap column number for this player, or 0. |
void |
setXML(java.lang.String xmlStr)
Restores the data in this object from an XML document. |
void |
unVisit(Area A)
Deletes the visitation record for all rooms in the given area. |
void |
unVisit(Room R)
Deletes the visitation record for the given room |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int TELL_STACK_MAX_SIZE
protected static final int GTELL_STACK_MAX_SIZE
protected long hygiene
protected int theme
protected java.lang.String[] xtraValues
protected java.lang.String lastIP
protected long lLastDateTime
protected long lastXPDateTime
protected long lastUpdated
protected int rolePlayXP
protected int maxRolePlayXP
protected long lastRolePlayTm
protected int deferredXP
protected int maxDeferredXP
protected int channelMask
protected java.lang.String email
protected java.lang.String password
protected java.lang.String colorStr
protected java.lang.String prompt
protected java.lang.String poofin
protected java.lang.String poofout
protected java.lang.String tranpoofin
protected java.lang.String tranpoofout
protected java.lang.String deathPoof
protected java.lang.String announceMsg
protected java.lang.String savedPose
protected java.lang.String notes
protected int wrap
protected int bonusCommonSk
protected int bonusCraftSk
protected int bonusNonCraftSk
protected int bonusLanguages
protected int bonusCharStatPt
protected int pageBreak
protected int[] birthday
protected MOB replyTo
protected int replyType
protected long replyTime
protected java.util.Set<java.lang.String> friends
protected java.util.Set<java.lang.String> ignored
protected java.util.List<java.lang.String> tellStack
protected java.util.List<java.lang.String> gtellStack
protected java.util.List<java.lang.String> titles
protected java.util.Set<java.lang.String> autoInvokeSet
protected PlayerAccount account
protected CMSecurity.SecGroup securityFlags
protected long accountExpires
protected RoomnumberSet visitedRoomSet
protected java.util.Set<java.lang.String> introductions
protected long[] prideExpireTime
protected int[][] prideStats
protected ItemCollection extItems
protected volatile boolean isSavable
protected java.util.Map<java.lang.String,AchievementLibrary.Tracker> achievementers
protected java.util.Map<java.lang.String,java.lang.String> alias
protected java.util.Map<java.lang.String,java.lang.Integer> legacy
protected java.util.Map<java.lang.String,int[]> combatSpams
protected java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> ableMap
protected java.util.Map<java.lang.String,ExpertiseLibrary.ExpertiseDefinition> experMap
protected java.util.Map<CharClass,java.util.Map<java.lang.String,java.lang.Object>> classMap
protected QuadVector<java.lang.Integer,java.lang.Long,java.lang.String,java.lang.Long> levelInfo
protected static java.lang.String[] CODES
| Constructor Detail |
|---|
public DefaultPlayerStats()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectpublic java.lang.String name()
CMObject
name in interface CMObjectEnvironmental.Name()public CMObject newInstance()
CMObject
newInstance in interface CMObjectpublic void initializeClass()
CMObject
initializeClass in interface CMObjectpublic CMObject copyOf()
CMObject
copyOf in interface CMObjectpublic java.lang.String getLastIP()
AccountStats
getLastIP in interface AccountStatsAccountStats.setLastIP(String)public void setLastIP(java.lang.String ip)
AccountStats
setLastIP in interface AccountStatsip - the last IP address this player logged in from.AccountStats.getLastIP()public java.lang.String getEmail()
AccountStats
getEmail in interface AccountStatsAccountStats.setEmail(String)public void setEmail(java.lang.String newAdd)
AccountStats
setEmail in interface AccountStatsnewAdd - the players email address, if available.AccountStats.getEmail()public int getTheme()
PlayerStats
getTheme in interface PlayerStatsArea.THEME_BIT_NAMES,
PlayerStats.setTheme(int)public void setTheme(int theme)
PlayerStats
setTheme in interface PlayerStatstheme - the theme used to create this player.Area.THEME_BIT_NAMES,
PlayerStats.getTheme()public long getLastUpdated()
PlayerStats
getLastUpdated in interface AccountStatsgetLastUpdated in interface PlayerStatsPlayerStats.setLastUpdated(long)public void setLastUpdated(long time)
PlayerStats
setLastUpdated in interface AccountStatssetLastUpdated in interface PlayerStatstime - the time, in milis since 1970, that the player was last saved.PlayerStats.getLastUpdated()public long getLastDateTime()
AccountStats
getLastDateTime in interface AccountStatsAccountStats.setLastDateTime(long)public void setLastDateTime(long C)
AccountStats
setLastDateTime in interface AccountStatsC - the time, in milis since 1970, that the player last logged off.AccountStats.getLastDateTime()public java.lang.String getPasswordStr()
AccountStats
getPasswordStr in interface AccountStatsAccountStats.setPassword(String),
AccountStats.matchesPassword(String)public void setPassword(java.lang.String newPassword)
AccountStats
setPassword in interface AccountStatsnewPassword - the players password.AccountStats.getPasswordStr(),
AccountStats.matchesPassword(String)public boolean matchesPassword(java.lang.String checkPass)
AccountStats
matchesPassword in interface AccountStatscheckPass - the password to compare reality to
AccountStats.setPassword(String),
AccountStats.getPasswordStr()public int getWrap()
PlayerStats
getWrap in interface PlayerStatsPlayerStats.setWrap(int)public void setWrap(int newWrap)
PlayerStats
setWrap in interface PlayerStatsnewWrap - the word wrap column number for this player, or 0.PlayerStats.getWrap()public int getPageBreak()
PlayerStats
getPageBreak in interface PlayerStatsPlayerStats.setPageBreak(int)public void setPageBreak(int newBreak)
PlayerStats
setPageBreak in interface PlayerStatsnewBreak - the page break row for this player, or 0.PlayerStats.getPageBreak()public java.lang.String getNotes()
AccountStats
getNotes in interface AccountStatsAccountStats.setNotes(String)public void setNotes(java.lang.String newnotes)
AccountStats
setNotes in interface AccountStatsnewnotes - the administrative notes entered about this player.AccountStats.getNotes()public void setChannelMask(int newMask)
PlayerStats
setChannelMask in interface PlayerStatsnewMask - the bitmask of channels turned on/off. (1=off)PlayerStats.setChannelMask(int)public int getChannelMask()
PlayerStats
getChannelMask in interface PlayerStatsPlayerStats.setChannelMask(int)public MOB getReplyToMOB()
PlayerStats
getReplyToMOB in interface PlayerStatsPlayerStats.setReplyTo(MOB, int),
PlayerStats.getReplyType(),
PlayerStats.getReplyToTime()public int getReplyType()
PlayerStats
getReplyType in interface PlayerStatsPlayerStats.setReplyTo(MOB, int),
PlayerStats.getReplyToMOB(),
PlayerStats.getReplyToTime(),
PlayerStats.REPLY_SAY,
PlayerStats.REPLY_TELL,
PlayerStats.REPLY_YELLpublic long getReplyToTime()
PlayerStats
getReplyToTime in interface PlayerStatsPlayerStats.setReplyTo(MOB, int),
PlayerStats.getReplyToMOB(),
PlayerStats.getReplyType()
public void setReplyTo(MOB mob,
int replyType)
PlayerStats
setReplyTo in interface PlayerStatsmob - the last MOB player who sent this player a private instant message.replyType - the type ofPlayerStats.getReplyToMOB(),
PlayerStats.getReplyType(),
PlayerStats.getReplyToTime(),
PlayerStats.REPLY_SAY,
PlayerStats.REPLY_TELL,
PlayerStats.REPLY_YELLpublic void setPrompt(java.lang.String newPrompt)
PlayerStats
setPrompt in interface PlayerStatsnewPrompt - the custom prompt, an encoded string, or ""PlayerStats.getPrompt()public java.lang.String getColorStr()
PlayerStats
getColorStr in interface PlayerStatsPlayerStats.setColorStr(String)public void setColorStr(java.lang.String newColors)
PlayerStats
setColorStr in interface PlayerStatsnewColors - a custom coded color stringPlayerStats.getColorStr()public java.lang.String getAnnounceMessage()
PlayerStats
getAnnounceMessage in interface PlayerStatsPlayerStats.setAnnounceMessage(String)public void setAnnounceMessage(java.lang.String msg)
PlayerStats
setAnnounceMessage in interface PlayerStatsmsg - prefix to announcementsPlayerStats.getAnnounceMessage()public java.lang.String getSavedPose()
PlayerStats
getSavedPose in interface PlayerStatsPlayerStats.setSavedPose(String)public void setSavedPose(java.lang.String msg)
PlayerStats
setSavedPose in interface PlayerStatsmsg - a saved pose stringPlayerStats.getSavedPose()public java.lang.String getPrompt()
PlayerStats
getPrompt in interface PlayerStatsPlayerStats.setPrompt(String)public boolean isIntroducedTo(java.lang.String name)
PlayerStats
isIntroducedTo in interface PlayerStatsname - the name of the other player
PlayerStats.introduceTo(String)public void introduceTo(java.lang.String name)
PlayerStats
introduceTo in interface PlayerStatsname - the player whom this player just met.PlayerStats.isIntroducedTo(String)public SHashSet<java.lang.String> getHashFrom(java.lang.String str)
public void addTellStack(java.lang.String msg)
PlayerStats
addTellStack in interface PlayerStatsmsg - the new message for the tell stack.PlayerStats.getTellStack()public java.util.List<java.lang.String> getTellStack()
PlayerStats
getTellStack in interface PlayerStatsPlayerStats.addTellStack(String)public void addGTellStack(java.lang.String msg)
PlayerStats
addGTellStack in interface PlayerStatsmsg - the new message for the gtell stack.PlayerStats.getGTellStack()public java.util.List<java.lang.String> getGTellStack()
PlayerStats
getGTellStack in interface PlayerStatsPlayerStats.addGTellStack(String)public java.util.Set<java.lang.String> getFriends()
AccountStats
getFriends in interface AccountStatspublic java.util.Set<java.lang.String> getIgnored()
AccountStats
getIgnored in interface AccountStatsAccountStats.isIgnored(String),
AccountStats.isIgnored(MOB)public boolean isIgnored(MOB mob)
AccountStats
isIgnored in interface AccountStatsmob - the mob to check
AccountStats.getIgnored(),
AccountStats.isIgnored(String)public boolean isIgnored(java.lang.String name)
AccountStats
isIgnored in interface AccountStatsname - the name to check
AccountStats.getIgnored(),
AccountStats.isIgnored(MOB)public java.util.Map<java.lang.String,java.lang.Object> getClassVariableMap(CharClass charClass)
PlayerStats
getClassVariableMap in interface PlayerStatscharClass - the Character Class for the variables
public java.lang.String[] getAliasNames()
PlayerStats
getAliasNames in interface PlayerStatsPlayerStats.getAlias(String),
PlayerStats.addAliasName(String),
PlayerStats.delAliasName(String),
PlayerStats.setAlias(String, String)public java.lang.String getAlias(java.lang.String named)
PlayerStats
getAlias in interface PlayerStatsnamed - the alias command to get the definition of
PlayerStats.getAliasNames(),
PlayerStats.addAliasName(String),
PlayerStats.delAliasName(String),
PlayerStats.setAlias(String, String)public void addAliasName(java.lang.String named)
PlayerStats
addAliasName in interface PlayerStatsnamed - the name of the alias command to addPlayerStats.getAliasNames(),
PlayerStats.getAlias(String),
PlayerStats.delAliasName(String),
PlayerStats.setAlias(String, String)public void delAliasName(java.lang.String named)
PlayerStats
delAliasName in interface PlayerStatsnamed - the name of the alias command to deletePlayerStats.getAliasNames(),
PlayerStats.getAlias(String),
PlayerStats.addAliasName(String),
PlayerStats.setAlias(String, String)
public void setAlias(java.lang.String named,
java.lang.String value)
PlayerStats
setAlias in interface PlayerStatsnamed - the alias command to modifyvalue - the new command(s) to executePlayerStats.getAliasNames(),
PlayerStats.getAlias(String),
PlayerStats.addAliasName(String),
PlayerStats.delAliasName(String)public java.lang.String getAliasXML()
public java.lang.String getLegacyXML()
public java.lang.String getActiveTitle()
PlayerStats
getActiveTitle in interface PlayerStatsPlayerStats.getTitles()public java.util.List<java.lang.String> getTitles()
PlayerStats
getTitles in interface PlayerStatsPlayerStats.getActiveTitle()public java.lang.String getDeathPoof()
PlayerStats
getDeathPoof in interface PlayerStatsPlayerStats.setDeathPoof(String)public void setDeathPoof(java.lang.String poof)
PlayerStats
setDeathPoof in interface PlayerStatspoof - the death poof-messagePlayerStats.getDeathPoof()public java.lang.String getPoofIn()
PlayerStats
getPoofIn in interface PlayerStatsPlayerStats.getPoofOut(),
PlayerStats.setPoofs(String, String, String, String)public java.lang.String getPoofOut()
PlayerStats
getPoofOut in interface PlayerStatsPlayerStats.getPoofIn(),
PlayerStats.setPoofs(String, String, String, String)public java.lang.String getTranPoofIn()
PlayerStats
getTranPoofIn in interface PlayerStatsPlayerStats.getTranPoofOut(),
PlayerStats.setPoofs(String, String, String, String)public java.lang.String getTranPoofOut()
PlayerStats
getTranPoofOut in interface PlayerStatsPlayerStats.getTranPoofIn(),
PlayerStats.setPoofs(String, String, String, String)public int[] getBirthday()
PlayerStats
getBirthday in interface PlayerStatsPlayerStats.initializeBirthday(TimeClock, int, Race)
public int initializeBirthday(TimeClock clock,
int ageHours,
Race R)
PlayerStats
initializeBirthday in interface PlayerStatsclock - the local clock to use for month/day calculationsageHours - the number of hours the player playedR - the players Race
PlayerStats.getBirthday(),
MOB.getAgeMinutes(),
Raceprotected java.lang.String getPrivateList(java.util.Set<java.lang.String> h)
public void bumpPrideStat(AccountStats.PrideStat stat,
int amt)
AccountStats
bumpPrideStat in interface AccountStatsstat - which pride stat to add toamt - the amount to addAccountStats.PrideStat
public int getPrideStat(TimeClock.TimePeriod period,
AccountStats.PrideStat stat)
AccountStats
getPrideStat in interface AccountStatsperiod - the time period to get the number forstat - which pride stat to get
AccountStats.PrideStatpublic java.lang.String getXML()
AccountStats
getXML in interface AccountStatsAccountStats.setXML(String)public java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> getExtraQualifiedSkills()
PlayerStats
getExtraQualifiedSkills in interface PlayerStatspublic void setXML(java.lang.String xmlStr)
AccountStats
setXML in interface AccountStatsxmlStr - an XML representation of all the data in this objectAccountStats.getXML()public java.lang.String getSetSecurityFlags(java.lang.String newFlags)
PlayerStats
getSetSecurityFlags in interface PlayerStatsnewFlags - null, or a semicolon list of flags and groups
public CMSecurity.SecGroup getSecurityFlags()
PlayerStats
getSecurityFlags in interface PlayerStats
public void setPoofs(java.lang.String poofIn,
java.lang.String poofOut,
java.lang.String tranPoofIn,
java.lang.String tranPoofOut)
PlayerStats
setPoofs in interface PlayerStatspoofIn - the msg seen when entering a room using GOTOpoofOut - the msg seen when leaving a room using TRANSFERtranPoofIn - the msg seen when entering a room using GOTOtranPoofOut - the msg seen when leaving a room using TRANSFERPlayerStats.getTranPoofIn(),
PlayerStats.getTranPoofOut(),
PlayerStats.getPoofIn(),
PlayerStats.getPoofOut()public long getHygiene()
PlayerStats
getHygiene in interface PlayerStatsPlayerStats.adjHygiene(long),
PlayerStats.setHygiene(long),
PlayerStats.HYGIENE_DELIMITpublic void setHygiene(long newVal)
PlayerStats
setHygiene in interface PlayerStatsnewVal - how stinky this player is.PlayerStats.getHygiene(),
PlayerStats.adjHygiene(long),
PlayerStats.HYGIENE_DELIMITpublic boolean adjHygiene(long byThisMuch)
PlayerStats
adjHygiene in interface PlayerStatsbyThisMuch - an amount to adjust the stinkiness by.
PlayerStats.getHygiene(),
PlayerStats.setHygiene(long),
PlayerStats.HYGIENE_COMMONDIRTY,
PlayerStats.HYGIENE_FIGHTDIRTY,
PlayerStats.HYGIENE_WATERCLEAN,
PlayerStats.HYGIENE_DELIMITpublic java.util.Map<java.lang.String,int[]> getCombatSpams()
PlayerStats
getCombatSpams in interface PlayerStatspublic long getAccountExpiration()
AccountStats
getAccountExpiration in interface AccountStatsAccountStats.setAccountExpiration(long)public void setAccountExpiration(long newVal)
AccountStats
setAccountExpiration in interface AccountStatsnewVal - the time, in milis, that this player expires.AccountStats.getAccountExpiration()public boolean addRoomVisit(Room R)
PlayerStats
addRoomVisit in interface PlayerStatsR - the room to credit the player with
PlayerStats.hasVisited(Room),
PlayerStats.hasVisited(Area),
PlayerStats.percentVisited(MOB, Area),
PlayerStats.unVisit(Room),
PlayerStats.unVisit(Area)public boolean hasVisited(Room R)
PlayerStats
hasVisited in interface PlayerStatsR - the room to check and see whether the player has been there.
PlayerStats.hasVisited(Area),
PlayerStats.percentVisited(MOB, Area),
PlayerStats.addRoomVisit(Room),
PlayerStats.unVisit(Room),
PlayerStats.unVisit(Area)public boolean hasVisited(Area A)
PlayerStats
hasVisited in interface PlayerStatsA - the area to check
PlayerStats.hasVisited(Room),
PlayerStats.percentVisited(MOB, Area),
PlayerStats.addRoomVisit(Room),
PlayerStats.unVisit(Room),
PlayerStats.unVisit(Area)public void unVisit(Room R)
PlayerStats
unVisit in interface PlayerStatsR - the room to removePlayerStats.hasVisited(Room),
PlayerStats.hasVisited(Area),
PlayerStats.percentVisited(MOB, Area),
PlayerStats.unVisit(Area)public void unVisit(Area A)
PlayerStats
unVisit in interface PlayerStatsA - area of rooms to removePlayerStats.hasVisited(Room),
PlayerStats.hasVisited(Area),
PlayerStats.percentVisited(MOB, Area),
PlayerStats.unVisit(Room)
public int percentVisited(MOB mob,
Area A)
PlayerStats
percentVisited in interface PlayerStatsmob - the player of these statsA - the Area to check
PlayerStats.hasVisited(Room),
PlayerStats.hasVisited(Area),
PlayerStats.addRoomVisit(Room),
PlayerStats.unVisit(Room),
PlayerStats.unVisit(Area)
public void killAchievementTracker(AchievementLibrary.Achievement A,
MOB mob)
AccountStats
killAchievementTracker in interface AccountStatsA - the achievement to kill the tracker formob - the mob to delete a tracker forAccountStats.rebuildAchievementTracker(MOB, String),
AchievementLibrary.Tracker,
AchievementLibrary.Achievement
public AchievementLibrary.Tracker getAchievementTracker(AchievementLibrary.Achievement A,
MOB mob)
AccountStats
getAchievementTracker in interface AccountStatsA - the achievement to get the tracker formob - the mob to create a tracker for
see #killAchievementTracker(Achievement, MOB),
AchievementLibrary.Tracker,
AchievementLibrary.Achievement
public void rebuildAchievementTracker(MOB mob,
java.lang.String achievementTattoo)
AccountStats
rebuildAchievementTracker in interface AccountStatsmob - the mob to modify the tracker for.achievementTattoo - the tattoo/id of the achievementAccountStats.getAchievementTracker(com.planet_ink.coffee_mud.Libraries.interfaces.AchievementLibrary.Achievement, MOB)public long leveledDateTime(int level)
PlayerStats
leveledDateTime in interface PlayerStatslevel - the level to check for
PlayerStats.setLeveledDateTime(int, long, Room)public java.lang.String leveledRoomID(int level)
PlayerStats
leveledRoomID in interface PlayerStatslevel - the level to check for
PlayerStats.setLeveledDateTime(int, long, Room)public long leveledMinutesPlayed(int level)
PlayerStats
leveledMinutesPlayed in interface PlayerStatslevel - the level to check for
PlayerStats.setLeveledDateTime(int, long, Room)
public void setLeveledDateTime(int level,
long ageHours,
Room R)
PlayerStats
setLeveledDateTime in interface PlayerStatslevel - the level to set upageHours - the hours played at this pointR - the room in which the level was gainedPlayerStats.leveledDateTime(int)public int getTotalLegacyLevels()
PlayerStats
getTotalLegacyLevels in interface PlayerStatsPlayerStats.addLegacyLevel(String),
PlayerStats.getLegacyLevel(String)public void addLegacyLevel(java.lang.String category)
PlayerStats
addLegacyLevel in interface PlayerStatscategory - the category to add a legacy level forPlayerStats.getTotalLegacyLevels(),
PlayerStats.getLegacyLevel(String)public int getLegacyLevel(java.lang.String category)
PlayerStats
getLegacyLevel in interface PlayerStatscategory - the category to add a legacy level for
PlayerStats.addLegacyLevel(String),
PlayerStats.getTotalLegacyLevels()public java.util.Map<java.lang.String,ExpertiseLibrary.ExpertiseDefinition> getExtraQualifiedExpertises()
PlayerStats
getExtraQualifiedExpertises in interface PlayerStatspublic PlayerAccount getAccount()
PlayerStats
getAccount in interface PlayerStatspublic void setAccount(PlayerAccount account)
PlayerStats
setAccount in interface PlayerStatsaccount - the account objectpublic ItemCollection getExtItems()
PlayerStats
getExtItems in interface PlayerStatsItemCollection,
Itempublic int getBonusCharStatPoints()
AccountStats
getBonusCharStatPoints in interface AccountStatsAccountStats.setBonusCharStatPoints(int)public void setBonusCharStatPoints(int bonus)
AccountStats
setBonusCharStatPoints in interface AccountStatsbonus - the number of bonus charstat pointsAccountStats.getBonusCharStatPoints()public int getBonusCommonSkillLimits()
AccountStats
getBonusCommonSkillLimits in interface AccountStatsAccountStats.setBonusCommonSkillLimits(int)public void setBonusCommonSkillLimits(int bonus)
AccountStats
setBonusCommonSkillLimits in interface AccountStatsbonus - the number of bonus Common pointsAccountStats.getBonusCommonSkillLimits()public int getBonusCraftingSkillLimits()
AccountStats
getBonusCraftingSkillLimits in interface AccountStatsAccountStats.setBonusCraftingSkillLimits(int)public void setBonusCraftingSkillLimits(int bonus)
AccountStats
setBonusCraftingSkillLimits in interface AccountStatsbonus - the number of bonus Crafting pointsAccountStats.getBonusCraftingSkillLimits()public int getBonusNonCraftingSkillLimits()
AccountStats
getBonusNonCraftingSkillLimits in interface AccountStatsAccountStats.setBonusNonCraftingSkillLimits(int)public void setBonusNonCraftingSkillLimits(int bonus)
AccountStats
setBonusNonCraftingSkillLimits in interface AccountStatsbonus - the number of bonus Gathering pointsAccountStats.getBonusNonCraftingSkillLimits()public int getBonusLanguageLimits()
AccountStats
getBonusLanguageLimits in interface AccountStatsAccountStats.setBonusLanguageLimits(int)public void setBonusLanguageLimits(int bonus)
AccountStats
setBonusLanguageLimits in interface AccountStatsbonus - the number of bonus Language pointsAccountStats.getBonusLanguageLimits()public int getMaxRolePlayXP()
PlayerStats
getMaxRolePlayXP in interface PlayerStatsPlayerStats.setMaxRolePlayXP(int),
PlayerStats.getRolePlayXP(),
PlayerStats.setRolePlayXP(int),
AccountStats.setLastDateTime(long),
PlayerStats.getLastRolePlayXPTime()public void setMaxRolePlayXP(int amt)
PlayerStats
setMaxRolePlayXP in interface PlayerStatsamt - the maximum amount of role playing xpPlayerStats.getMaxRolePlayXP(),
PlayerStats.getRolePlayXP(),
PlayerStats.setRolePlayXP(int),
AccountStats.setLastDateTime(long),
PlayerStats.getLastRolePlayXPTime()public int getRolePlayXP()
PlayerStats
getRolePlayXP in interface PlayerStatsPlayerStats.setMaxRolePlayXP(int),
PlayerStats.getMaxRolePlayXP(),
PlayerStats.setRolePlayXP(int),
AccountStats.setLastDateTime(long),
PlayerStats.getLastRolePlayXPTime()public void setRolePlayXP(int amt)
PlayerStats
setRolePlayXP in interface PlayerStatsamt - the maximum amount of role playing xpPlayerStats.getMaxRolePlayXP(),
PlayerStats.getRolePlayXP(),
PlayerStats.setMaxRolePlayXP(int),
AccountStats.setLastDateTime(long),
PlayerStats.getLastRolePlayXPTime()public long getLastRolePlayXPTime()
PlayerStats
getLastRolePlayXPTime in interface PlayerStatsPlayerStats.setMaxRolePlayXP(int),
PlayerStats.getMaxRolePlayXP(),
PlayerStats.setRolePlayXP(int),
PlayerStats.getRolePlayXP(),
AccountStats.setLastDateTime(long)public void setLastRolePlayXPTime(long tm)
PlayerStats
setLastRolePlayXPTime in interface PlayerStatstm - the last time roleplay xpPlayerStats.getMaxRolePlayXP(),
PlayerStats.getRolePlayXP(),
PlayerStats.setRolePlayXP(int),
PlayerStats.setMaxRolePlayXP(int),
PlayerStats.getLastRolePlayXPTime()public int getMaxDeferredXP()
PlayerStats
getMaxDeferredXP in interface PlayerStatsPlayerStats.setMaxDeferredXP(int),
PlayerStats.getDeferredXP(),
PlayerStats.setDeferredXP(int)public void setMaxDeferredXP(int amt)
PlayerStats
setMaxDeferredXP in interface PlayerStatsamt - the maximum amount of deferred xpPlayerStats.getMaxDeferredXP(),
PlayerStats.getDeferredXP(),
PlayerStats.setDeferredXP(int)public int getDeferredXP()
PlayerStats
getDeferredXP in interface PlayerStatsPlayerStats.setMaxDeferredXP(int),
PlayerStats.getMaxDeferredXP(),
PlayerStats.setDeferredXP(int)public void setDeferredXP(int amt)
PlayerStats
setDeferredXP in interface PlayerStatsamt - the maximum amount of deferred xpPlayerStats.getMaxDeferredXP(),
PlayerStats.getDeferredXP(),
PlayerStats.setMaxDeferredXP(int)public long getLastXPAwardMillis()
PlayerStats
getLastXPAwardMillis in interface PlayerStatspublic void setLastXPAwardMillis(long time)
PlayerStats
setLastXPAwardMillis in interface PlayerStatstime - the time xp was awarded in millispublic java.lang.String getStat(java.lang.String code)
Modifiable
getStat in interface Modifiablecode - the name of the field to read.
Modifiable.getStatCodes()
public void setStat(java.lang.String code,
java.lang.String val)
Modifiable
setStat in interface Modifiablecode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()public boolean isOnAutoInvokeList(java.lang.String abilityID)
PlayerStats
isOnAutoInvokeList in interface PlayerStatsabilityID - the ability ID() to suppress
public void addAutoInvokeList(java.lang.String abilityID)
PlayerStats
addAutoInvokeList in interface PlayerStatsabilityID - the ability ID() to addpublic void removeAutoInvokeList(java.lang.String abilityID)
PlayerStats
removeAutoInvokeList in interface PlayerStatsabilityID - the ability ID() to removepublic int getSaveStatIndex()
Modifiable
getSaveStatIndex in interface ModifiableModifiable.getStatCodes(),
Modifiable.getStat(String),
Modifiable.setStat(String, String)public java.lang.String[] getStatCodes()
Modifiable
getStatCodes in interface ModifiableModifiable.getStat(String),
Modifiable.setStat(String, String)public boolean isStat(java.lang.String code)
Modifiable
isStat in interface Modifiablecode - the name of the field to read.
Modifiable.getStatCodes()protected int getCodeNum(java.lang.String code)
public boolean sameAs(PlayerStats E)
PlayerStats
sameAs in interface PlayerStatsE - the object to compare this one to
Modifiable.getStatCodes(),
Modifiable.getStat(String)public int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public void destroy()
Contingent
destroy in interface Contingentpublic boolean isSavable()
Contingent
isSavable in interface Contingentpublic boolean amDestroyed()
Contingent
amDestroyed in interface Contingentpublic void setSavable(boolean truefalse)
Contingent
setSavable in interface Contingenttruefalse - whether this behavior can be saved as part of its host.Contingent.isSavable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||