|
|||||||||
| 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()| Field Summary | |
|---|---|
static long |
HYGIENE_COMMONDIRTY
Constant for hygeine system, denotes amount of dirtiness from using common skills |
static long |
HYGIENE_DELIMIT
Constant for hygeine system, denotes ceiling of stinkiness before emoting |
static long |
HYGIENE_FIGHTDIRTY
Constant for hygeine system, denotes amount of dirtiness from fighting |
static long |
HYGIENE_WATERCLEAN
Constant for hygeine 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 |
addGTellStack(java.lang.String msg)
Adds a new string message to the gtell stack. |
void |
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. |
java.lang.String |
announceMessage()
For players with the ANNOUNCE command, this is the message used to prefix the announcements proclaimed. |
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. |
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.lang.String |
getColorStr()
Returns a custom coded string detailing the changes to the official color code that apply to this player only. |
java.util.Vector |
getGTellStack()
Returns a Vector 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. |
int |
getPageBreak()
Returns the page break row for this player, or 0. |
java.lang.String |
getPrompt()
Returns the custom prompt, an encoded string, for this player. |
java.util.Vector |
getSecurityGroups()
Returns a modifiable Vector of security flags and groups strings to which this player is privileged. |
java.util.Vector |
getTellStack()
Returns a Vector of the last few string messages sent and received to and from this player. |
java.util.Vector |
getTitles()
Returns a Vector of modifiable title definitions. |
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(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. |
long |
lastUpdated()
The time, in milis since 1970, that the player was last saved. |
long |
leveledDateTime(int level)
The time, in milis since 1970, 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. |
java.lang.String |
poofIn()
For player with the GOTO command, this is the message seen by all when the player arrives from using GOTO. |
java.lang.String |
poofOut()
For player with the GOTO command, this is the message seen by all when the player leaves using GOTO. |
long |
replyTime()
Returns the last time, in millis since 1970, that a player last sent this playe a private message. |
MOB |
replyTo()
Returns the last MOB player who sent this player a private instant message. |
int |
replyType()
Returns the type of private message last sent to this player, an encoded constant. |
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 |
setHygiene(long newVal)
Sets the number meaning how stinky this player is. |
void |
setLastUpdated(long time)
Sets the time, in milis since 1970, that the player was last saved. |
void |
setLeveledDateTime(int level,
Room R)
Notifies the player records that, at the moment this method was called, the player gained the 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 |
setWrap(int newWrap)
Sets the word wrap column number for this player, or 0. |
java.lang.String |
tranPoofIn()
For player with the TRANSFER command, this is the message seen by all when the player arrives from using TRANSFER. |
java.lang.String |
tranPoofOut()
For player with the TRANSFER command, this is the message seen by all when the player leaves using TRANSFER. |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.Common.interfaces.AccountStats |
|---|
getAccountExpiration, getEmail, getFriends, getIgnored, getXML, lastDateTime, lastIP, notes, password, setAccountExpiration, setEmail, setLastDateTime, setLastIP, setNotes, setPassword, setXML |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
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
| Method Detail |
|---|
long lastUpdated()
lastUpdated in interface AccountStatssetLastUpdated(long)void setLastUpdated(long time)
setLastUpdated in interface AccountStatstime - the time, in milis since 1970, that the player was last saved.lastUpdated()long leveledDateTime(int level)
level - the level to check for
setLeveledDateTime(int, Room)
void setLeveledDateTime(int level,
Room R)
level - the level to set upR - 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()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.Vector getTitles()
getActiveTitle()java.lang.String getActiveTitle()
getTitles()java.util.Vector getTellStack()
addTellStack(String)void addTellStack(java.lang.String msg)
msg - the new message for the tell stack.getTellStack()java.util.Vector getGTellStack()
addGTellStack(String)void addGTellStack(java.lang.String msg)
msg - the new message for the gtell stack.getGTellStack()java.lang.String poofIn()
poofOut(),
setPoofs(String, String, String, String)java.lang.String poofOut()
poofIn(),
setPoofs(String, String, String, String)java.lang.String tranPoofIn()
tranPoofOut(),
setPoofs(String, String, String, String)java.lang.String tranPoofOut()
tranPoofIn(),
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 TRANSFERtranPoofIn(),
tranPoofOut(),
poofIn(),
poofOut()java.lang.String announceMessage()
setAnnounceMessage(String)void setAnnounceMessage(java.lang.String msg)
msg - prefix to announcementsannounceMessage()MOB replyTo()
setReplyTo(MOB, int),
replyType(),
replyTime()
void setReplyTo(MOB mob,
int replyType)
mob - the last MOB player who sent this player a private instant message.replyType - the type ofreplyTo(),
replyType(),
replyTime(),
REPLY_SAY,
REPLY_TELL,
REPLY_YELLint replyType()
setReplyTo(MOB, int),
replyTo(),
replyTime(),
REPLY_SAY,
REPLY_TELL,
REPLY_YELLlong replyTime()
setReplyTo(MOB, int),
replyTo(),
replyType()java.util.Vector getSecurityGroups()
int initializeBirthday(int ageHours,
Race R)
ageHours - the number of hours the player playedR - the players Race
getBirthday(),
MOB.getAgeHours(),
Raceint[] getBirthday()
initializeBirthday(int, Race)long getHygiene()
adjHygiene(long),
setHygiene(long),
HYGIENE_DELIMITboolean adjHygiene(long byThisMuch)
byThisMuch - an amount to adjust the stinkiness by.
getHygiene(),
setHygiene(long),
HYGIENE_COMMONDIRTY,
HYGIENE_FIGHTDIRTY,
HYGIENE_WATERCLEAN,
HYGIENE_DELIMITvoid setHygiene(long newVal)
newVal - how stinky this player is.getHygiene(),
adjHygiene(long),
HYGIENE_DELIMITboolean hasVisited(Room R)
R - the room to check and see whether the player has been there.
hasVisited(Area),
percentVisited(MOB, Area),
addRoomVisit(Room)boolean hasVisited(Area A)
A - the area to check
hasVisited(Room),
percentVisited(MOB, Area),
addRoomVisit(Room)
int percentVisited(MOB mob,
Area A)
mob - the player of these statsA - the Area to check
hasVisited(Room),
hasVisited(Area),
addRoomVisit(Room)void addRoomVisit(Room R)
R - the room to credit the player withhasVisited(Room),
hasVisited(Area),
percentVisited(MOB, Area)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 objectboolean sameAs(PlayerStats E)
E - the object to compare this one to
CMModifiable.getStatCodes(),
CMModifiable.getStat(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||