|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccountStats
An interface for a base player account. Shared by PlayerAccount and PlayerStats (since the account system is optional)
Nested Class Summary | |
---|---|
static class |
AccountStats.Agent
A simple enum for picking between a player and an account |
static class |
AccountStats.PrideStat
The recorded player and account statistics. |
Method Summary | |
---|---|
void |
bumpPrideStat(AccountStats.PrideStat stat,
int amt)
Add to one of the pride stats for this player or 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. |
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. |
java.lang.String |
getEmail()
Returns the players email address, if available. |
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.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 |
getLastUpdated()
The time, in milis since 1970, that the player was last saved. |
java.lang.String |
getNotes()
Returns the administrative notes entered about this player. |
java.lang.String |
getPasswordStr()
Returns the players password, perhaps encoded, perhaps plain text. |
int |
getPrideStat(TimeClock.TimePeriod period,
AccountStats.PrideStat stat)
Get one of the pride stats for this player or account |
java.lang.String |
getXML()
Returns an XML representation of all the data in this object, for persistent storage. |
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. |
void |
killAchievementTracker(AchievementLibrary.Achievement A,
MOB mob)
Deletes the tracker for the given achievement, for the given mob. |
boolean |
matchesPassword(java.lang.String str)
Returns the players password, perhaps encoded, perhaps plain text. |
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 |
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 |
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 |
setEmail(java.lang.String newAdd)
Sets the players email address, if available. |
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 |
setLastUpdated(long time)
Sets the time, in milis since 1970, that the player was last saved. |
void |
setNotes(java.lang.String newnotes)
Sets the administrative notes entered about this player. |
void |
setPassword(java.lang.String newPassword)
Sets the players password. |
void |
setXML(java.lang.String str)
Restores the data in this object from an XML document. |
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 |
Method Detail |
---|
java.lang.String getEmail()
setEmail(String)
void setEmail(java.lang.String newAdd)
newAdd
- the players email address, if available.getEmail()
long getLastDateTime()
setLastDateTime(long)
void setLastDateTime(long C)
C
- the time, in milis since 1970, that the player last logged off.getLastDateTime()
long getLastUpdated()
setLastUpdated(long)
void setLastUpdated(long time)
time
- the time, in milis since 1970, that the player was last saved.getLastUpdated()
java.lang.String getPasswordStr()
setPassword(String)
,
matchesPassword(String)
boolean matchesPassword(java.lang.String str)
str
- the password to compare reality to
setPassword(String)
,
getPasswordStr()
void setPassword(java.lang.String newPassword)
newPassword
- the players password.getPasswordStr()
,
matchesPassword(String)
java.lang.String getLastIP()
setLastIP(String)
void setLastIP(java.lang.String ip)
ip
- the last IP address this player logged in from.getLastIP()
long getAccountExpiration()
setAccountExpiration(long)
void setAccountExpiration(long newVal)
newVal
- the time, in milis, that this player expires.getAccountExpiration()
java.lang.String getNotes()
setNotes(String)
void setNotes(java.lang.String newnotes)
newnotes
- the administrative notes entered about this player.getNotes()
int getBonusCharStatPoints()
setBonusCharStatPoints(int)
void setBonusCharStatPoints(int bonus)
bonus
- the number of bonus charstat pointsgetBonusCharStatPoints()
int getBonusCommonSkillLimits()
setBonusCommonSkillLimits(int)
void setBonusCommonSkillLimits(int bonus)
bonus
- the number of bonus Common pointsgetBonusCommonSkillLimits()
int getBonusCraftingSkillLimits()
setBonusCraftingSkillLimits(int)
void setBonusCraftingSkillLimits(int bonus)
bonus
- the number of bonus Crafting pointsgetBonusCraftingSkillLimits()
int getBonusNonCraftingSkillLimits()
setBonusNonCraftingSkillLimits(int)
void setBonusNonCraftingSkillLimits(int bonus)
bonus
- the number of bonus Gathering pointsgetBonusNonCraftingSkillLimits()
int getBonusLanguageLimits()
setBonusLanguageLimits(int)
void setBonusLanguageLimits(int bonus)
bonus
- the number of bonus Language pointsgetBonusLanguageLimits()
java.util.Set<java.lang.String> getFriends()
java.util.Set<java.lang.String> getIgnored()
isIgnored(String)
,
isIgnored(MOB)
boolean isIgnored(MOB mob)
mob
- the mob to check
getIgnored()
,
isIgnored(String)
boolean isIgnored(java.lang.String name)
name
- the name to check
getIgnored()
,
isIgnored(MOB)
void bumpPrideStat(AccountStats.PrideStat stat, int amt)
stat
- which pride stat to add toamt
- the amount to addAccountStats.PrideStat
int getPrideStat(TimeClock.TimePeriod period, AccountStats.PrideStat stat)
period
- the time period to get the number forstat
- which pride stat to get
AccountStats.PrideStat
AchievementLibrary.Tracker getAchievementTracker(AchievementLibrary.Achievement A, MOB mob)
A
- the achievement to get the tracker formob
- the mob to create a tracker for
see #killAchievementTracker(Achievement, MOB)
,
AchievementLibrary.Tracker
,
AchievementLibrary.Achievement
void killAchievementTracker(AchievementLibrary.Achievement A, MOB mob)
A
- the achievement to kill the tracker formob
- the mob to delete a tracker forrebuildAchievementTracker(MOB, String)
,
AchievementLibrary.Tracker
,
AchievementLibrary.Achievement
void rebuildAchievementTracker(MOB mob, java.lang.String achievementTattoo)
mob
- the mob to modify the tracker for.achievementTattoo
- the tattoo/id of the achievementgetAchievementTracker(com.planet_ink.coffee_mud.Libraries.interfaces.AchievementLibrary.Achievement, MOB)
java.lang.String getXML()
setXML(String)
void setXML(java.lang.String str)
str
- an XML representation of all the data in this objectgetXML()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |