|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlayerStats
Accessible from any PC mob object, PlayerStats are the repository for all manner of player specific mob values.
MOB.playerStats()
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Common.interfaces.AccountStats |
---|
AccountStats.Agent, AccountStats.PrideStat |
Field Summary | |
---|---|
static int |
BIRTHDEX_DAY
Constant for day of birthday, as from getBirthday() |
static int |
BIRTHDEX_LASTYEARCELEBRATED
Constant for year of last known birthday, as from getBirthday() |
static int |
BIRTHDEX_MONTH
Constant for month of birthday, as from getBirthday() |
static int |
BIRTHDEX_YEAR
Constant for year of birthday, as from getBirthday() |
static long |
HYGIENE_COMMONDIRTY
Constant for hygiene system, denotes amount of dirtiness from using common skills |
static long |
HYGIENE_DELIMIT
Constant for hygiene system, denotes ceiling of stinkiness before emoting |
static long |
HYGIENE_FIGHTDIRTY
Constant for hygiene system, denotes amount of dirtiness from fighting |
static long |
HYGIENE_RAINCLEAN
Constant for hygiene system, denotes amount of cleaning water does per tick |
static long |
HYGIENE_WATERCLEAN
Constant for hygiene system, denotes amount of cleaning water does per tick |
static int |
REPLY_SAY
Constant for private messenging, means the last private msg was a SAYTO |
static int |
REPLY_TELL
Constant for private messenging, means the last private msg was a TELL |
static int |
REPLY_YELL
Constant for private messenging, means the last private msg was a YELL |
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. |
void |
delAliasName(java.lang.String named)
Removes an old alias command for this player. |
PlayerAccount |
getAccount()
If the ACCOUNTSYSTEM is used, this will access the account object that is shared by all players of this account. |
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 |
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 |
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. |
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. |
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.List<java.lang.String> |
getGTellStack()
Returns a List of the last few string messages sent and received to and from this players group. |
long |
getHygiene()
Returns a long value of how stinky this player is. |
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 |
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. |
int |
getPageBreak()
Returns the page break row for this player, or 0. |
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. |
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. |
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.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. |
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. |
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 |
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 |
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. |
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 |
int |
percentVisited(MOB mob,
Area A)
Returns the percentage (0-100) of the given area that the given player has explored. |
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 |
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 |
setChannelMask(int newMask)
Sets the bitmask of channels turned on/off. |
void |
setColorStr(java.lang.String color)
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 |
setHygiene(long newVal)
Sets the number meaning how stinky this player is. |
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 |
setPageBreak(int newBreak)
Sets the page break row for this player, or 0. |
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 prompt)
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 |
setSavedPose(java.lang.String msg)
Sets the saved pose string for players. |
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 |
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 interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
Methods inherited from interface com.planet_ink.coffee_mud.Common.interfaces.AccountStats |
---|
bumpPrideStat, getAccountExpiration, getAchievementTracker, getBonusCharStatPoints, getBonusCommonSkillLimits, getBonusCraftingSkillLimits, getBonusLanguageLimits, getBonusNonCraftingSkillLimits, getEmail, getFriends, getIgnored, getLastDateTime, getLastIP, getNotes, getPasswordStr, getPrideStat, getXML, isIgnored, isIgnored, killAchievementTracker, matchesPassword, rebuildAchievementTracker, setAccountExpiration, setBonusCharStatPoints, setBonusCommonSkillLimits, setBonusCraftingSkillLimits, setBonusLanguageLimits, setBonusNonCraftingSkillLimits, setEmail, setLastDateTime, setLastIP, setNotes, setPassword, setXML |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, ID, initializeClass, name, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
---|
amDestroyed, destroy, isSavable, setSavable |
Field Detail |
---|
static final int BIRTHDEX_DAY
getBirthday()
static final int BIRTHDEX_MONTH
getBirthday()
static final int BIRTHDEX_YEAR
getBirthday()
static final int BIRTHDEX_LASTYEARCELEBRATED
getBirthday()
static final int REPLY_SAY
static final int REPLY_YELL
static final int REPLY_TELL
static final long HYGIENE_DELIMIT
static final long HYGIENE_WATERCLEAN
static final long HYGIENE_COMMONDIRTY
static final long HYGIENE_FIGHTDIRTY
static final long HYGIENE_RAINCLEAN
Method Detail |
---|
long getLastUpdated()
getLastUpdated
in interface AccountStats
setLastUpdated(long)
void setLastUpdated(long time)
setLastUpdated
in interface AccountStats
time
- the time, in milis since 1970, that the player was last saved.getLastUpdated()
long leveledDateTime(int level)
level
- the level to check for
setLeveledDateTime(int, long, Room)
java.lang.String leveledRoomID(int level)
level
- the level to check for
setLeveledDateTime(int, long, Room)
long leveledMinutesPlayed(int level)
level
- the level to check for
setLeveledDateTime(int, long, Room)
void setLeveledDateTime(int level, long ageHours, Room R)
level
- the level to set upageHours
- the hours played at this pointR
- the room in which the level was gainedleveledDateTime(int)
int getChannelMask()
setChannelMask(int)
void setChannelMask(int newMask)
newMask
- the bitmask of channels turned on/off. (1=off)setChannelMask(int)
java.lang.String getColorStr()
setColorStr(String)
void setColorStr(java.lang.String color)
color
- a custom coded color stringgetColorStr()
java.lang.String getSavedPose()
setSavedPose(String)
void setSavedPose(java.lang.String msg)
msg
- a saved pose stringgetSavedPose()
int getWrap()
setWrap(int)
void setWrap(int newWrap)
newWrap
- the word wrap column number for this player, or 0.getWrap()
int getPageBreak()
setPageBreak(int)
void setPageBreak(int newBreak)
newBreak
- the page break row for this player, or 0.getPageBreak()
java.lang.String getPrompt()
setPrompt(String)
void setPrompt(java.lang.String prompt)
prompt
- the custom prompt, an encoded string, or ""getPrompt()
java.util.List<java.lang.String> getTitles()
getActiveTitle()
java.lang.String getActiveTitle()
getTitles()
java.util.List<java.lang.String> getTellStack()
addTellStack(String)
void addTellStack(java.lang.String msg)
msg
- the new message for the tell stack.getTellStack()
java.util.List<java.lang.String> getGTellStack()
addGTellStack(String)
void addGTellStack(java.lang.String msg)
msg
- the new message for the gtell stack.getGTellStack()
java.lang.String getPoofIn()
getPoofOut()
,
setPoofs(String, String, String, String)
java.lang.String getPoofOut()
getPoofIn()
,
setPoofs(String, String, String, String)
java.lang.String getTranPoofIn()
getTranPoofOut()
,
setPoofs(String, String, String, String)
java.lang.String getTranPoofOut()
getTranPoofIn()
,
setPoofs(String, String, String, String)
void setPoofs(java.lang.String poofIn, java.lang.String poofOut, java.lang.String tranPoofIn, java.lang.String tranPoofOut)
poofIn
- 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 TRANSFERgetTranPoofIn()
,
getTranPoofOut()
,
getPoofIn()
,
getPoofOut()
java.lang.String getDeathPoof()
setDeathPoof(String)
void setDeathPoof(java.lang.String poof)
poof
- the death poof-messagegetDeathPoof()
java.lang.String getAnnounceMessage()
setAnnounceMessage(String)
void setAnnounceMessage(java.lang.String msg)
msg
- prefix to announcementsgetAnnounceMessage()
MOB getReplyToMOB()
setReplyTo(MOB, int)
,
getReplyType()
,
getReplyToTime()
void setReplyTo(MOB mob, int replyType)
mob
- the last MOB player who sent this player a private instant message.replyType
- the type ofgetReplyToMOB()
,
getReplyType()
,
getReplyToTime()
,
REPLY_SAY
,
REPLY_TELL
,
REPLY_YELL
int getReplyType()
setReplyTo(MOB, int)
,
getReplyToMOB()
,
getReplyToTime()
,
REPLY_SAY
,
REPLY_TELL
,
REPLY_YELL
long getReplyToTime()
setReplyTo(MOB, int)
,
getReplyToMOB()
,
getReplyType()
CMSecurity.SecGroup getSecurityFlags()
java.lang.String getSetSecurityFlags(java.lang.String newFlags)
newFlags
- null, or a semicolon list of flags and groups
int initializeBirthday(TimeClock clock, int ageHours, Race R)
clock
- the local clock to use for month/day calculationsageHours
- the number of hours the player playedR
- the players Race
getBirthday()
,
MOB.getAgeMinutes()
,
Race
int[] getBirthday()
initializeBirthday(TimeClock, int, Race)
long getHygiene()
adjHygiene(long)
,
setHygiene(long)
,
HYGIENE_DELIMIT
boolean adjHygiene(long byThisMuch)
byThisMuch
- an amount to adjust the stinkiness by.
getHygiene()
,
setHygiene(long)
,
HYGIENE_COMMONDIRTY
,
HYGIENE_FIGHTDIRTY
,
HYGIENE_WATERCLEAN
,
HYGIENE_DELIMIT
void setHygiene(long newVal)
newVal
- how stinky this player is.getHygiene()
,
adjHygiene(long)
,
HYGIENE_DELIMIT
boolean hasVisited(Room R)
R
- the room to check and see whether the player has been there.
hasVisited(Area)
,
percentVisited(MOB, Area)
,
addRoomVisit(Room)
,
unVisit(Room)
,
unVisit(Area)
boolean hasVisited(Area A)
A
- the area to check
hasVisited(Room)
,
percentVisited(MOB, Area)
,
addRoomVisit(Room)
,
unVisit(Room)
,
unVisit(Area)
int percentVisited(MOB mob, Area A)
mob
- the player of these statsA
- the Area to check
hasVisited(Room)
,
hasVisited(Area)
,
addRoomVisit(Room)
,
unVisit(Room)
,
unVisit(Area)
boolean addRoomVisit(Room R)
R
- the room to credit the player with
hasVisited(Room)
,
hasVisited(Area)
,
percentVisited(MOB, Area)
,
unVisit(Room)
,
unVisit(Area)
void unVisit(Area A)
A
- area of rooms to removehasVisited(Room)
,
hasVisited(Area)
,
percentVisited(MOB, Area)
,
unVisit(Room)
void unVisit(Room R)
R
- the room to removehasVisited(Room)
,
hasVisited(Area)
,
percentVisited(MOB, Area)
,
unVisit(Area)
java.util.Map<java.lang.String,java.lang.Object> getClassVariableMap(CharClass charClass)
charClass
- the Character Class for the variables
java.lang.String[] getAliasNames()
getAlias(String)
,
addAliasName(String)
,
delAliasName(String)
,
setAlias(String, String)
java.lang.String getAlias(java.lang.String named)
named
- the alias command to get the definition of
getAliasNames()
,
addAliasName(String)
,
delAliasName(String)
,
setAlias(String, String)
void addAliasName(java.lang.String named)
named
- the name of the alias command to addgetAliasNames()
,
getAlias(String)
,
delAliasName(String)
,
setAlias(String, String)
void delAliasName(java.lang.String named)
named
- the name of the alias command to deletegetAliasNames()
,
getAlias(String)
,
addAliasName(String)
,
setAlias(String, String)
void setAlias(java.lang.String named, java.lang.String value)
named
- the alias command to modifyvalue
- the new command(s) to executegetAliasNames()
,
getAlias(String)
,
addAliasName(String)
,
delAliasName(String)
boolean isIntroducedTo(java.lang.String name)
name
- the name of the other player
introduceTo(String)
void introduceTo(java.lang.String name)
name
- the player whom this player just met.isIntroducedTo(String)
PlayerAccount getAccount()
void setAccount(PlayerAccount account)
account
- the account objectItemCollection getExtItems()
ItemCollection
,
Item
boolean sameAs(PlayerStats E)
E
- the object to compare this one to
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
int getTheme()
Area.THEME_BIT_NAMES
,
setTheme(int)
void setTheme(int theme)
theme
- the theme used to create this player.Area.THEME_BIT_NAMES
,
getTheme()
int getTotalLegacyLevels()
addLegacyLevel(String)
,
getLegacyLevel(String)
void addLegacyLevel(java.lang.String category)
category
- the category to add a legacy level forgetTotalLegacyLevels()
,
getLegacyLevel(String)
boolean isOnAutoInvokeList(java.lang.String abilityID)
abilityID
- the ability ID() to suppress
void addAutoInvokeList(java.lang.String abilityID)
abilityID
- the ability ID() to addvoid removeAutoInvokeList(java.lang.String abilityID)
abilityID
- the ability ID() to removeint getLegacyLevel(java.lang.String category)
category
- the category to add a legacy level for
addLegacyLevel(String)
,
getTotalLegacyLevels()
java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> getExtraQualifiedSkills()
java.util.Map<java.lang.String,ExpertiseLibrary.ExpertiseDefinition> getExtraQualifiedExpertises()
java.util.Map<java.lang.String,int[]> getCombatSpams()
int getMaxRolePlayXP()
setMaxRolePlayXP(int)
,
getRolePlayXP()
,
setRolePlayXP(int)
,
AccountStats.setLastDateTime(long)
,
getLastRolePlayXPTime()
void setMaxRolePlayXP(int amt)
amt
- the maximum amount of role playing xpgetMaxRolePlayXP()
,
getRolePlayXP()
,
setRolePlayXP(int)
,
AccountStats.setLastDateTime(long)
,
getLastRolePlayXPTime()
int getRolePlayXP()
setMaxRolePlayXP(int)
,
getMaxRolePlayXP()
,
setRolePlayXP(int)
,
AccountStats.setLastDateTime(long)
,
getLastRolePlayXPTime()
void setRolePlayXP(int amt)
amt
- the maximum amount of role playing xpgetMaxRolePlayXP()
,
getRolePlayXP()
,
setMaxRolePlayXP(int)
,
AccountStats.setLastDateTime(long)
,
getLastRolePlayXPTime()
long getLastRolePlayXPTime()
setMaxRolePlayXP(int)
,
getMaxRolePlayXP()
,
setRolePlayXP(int)
,
getRolePlayXP()
,
AccountStats.setLastDateTime(long)
void setLastRolePlayXPTime(long tm)
tm
- the last time roleplay xpgetMaxRolePlayXP()
,
getRolePlayXP()
,
setRolePlayXP(int)
,
setMaxRolePlayXP(int)
,
getLastRolePlayXPTime()
int getMaxDeferredXP()
setMaxDeferredXP(int)
,
getDeferredXP()
,
setDeferredXP(int)
void setMaxDeferredXP(int amt)
amt
- the maximum amount of deferred xpgetMaxDeferredXP()
,
getDeferredXP()
,
setDeferredXP(int)
int getDeferredXP()
setMaxDeferredXP(int)
,
getMaxDeferredXP()
,
setDeferredXP(int)
void setDeferredXP(int amt)
amt
- the maximum amount of deferred xpgetMaxDeferredXP()
,
getDeferredXP()
,
setMaxDeferredXP(int)
long getLastXPAwardMillis()
void setLastXPAwardMillis(long time)
time
- the time xp was awarded in millis
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |