|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PlayerAccount
An interface for a base player account. If this system is enabled, this represents essentially a "container" for various characters, who share a login and potentially an expiration date.
| Nested Class Summary | |
|---|---|
static class |
PlayerAccount.AccountFlag
Various account-level flags |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Common.interfaces.AccountStats |
|---|
AccountStats.Agent, AccountStats.PrideStat |
| Method Summary | |
|---|---|
void |
addNewPlayer(MOB mob)
Adds a new player to this account. |
void |
copyInto(PlayerAccount otherAccount)
Populates this account object with all the data from the given one, replacing any existing internal data. |
void |
delPlayer(MOB mob)
Removes a player from this account. |
void |
delPlayer(java.lang.String name)
Removes a player of this name from this account. |
java.lang.String |
findPlayer(java.lang.String name)
Returns the real name if the player is on this account |
MOB |
getAccountMob()
Retrieves a fake account mob, for forum and other access systems not directly relayed to gameplay. |
java.lang.String |
getAccountName()
Returns this accounts name |
int |
getBonusCharsLimit()
Returns the number of bonus characters available to this account. |
int |
getBonusCharsOnlineLimit()
Returns the number of bonus characters online available to this account. |
java.util.Enumeration<MOB> |
getLoadPlayers()
Return an enumeration of the fully loaded players that belong to this account. |
java.util.Enumeration<java.lang.String> |
getPlayers()
Return an enumeration of the players names that belong to this account. |
java.util.Enumeration<PlayerLibrary.ThinPlayer> |
getThinPlayers()
Return an enumeration of the semi-loaded players that belong to this account. |
boolean |
isSet(PlayerAccount.AccountFlag flag)
Checks whether the given string flag is set for this account. |
int |
numPlayers()
Returns the number of players this account currently has listed. |
void |
setAccountName(java.lang.String name)
Sets this accounts unique name |
void |
setBonusCharsLimit(int bonus)
Sets the number of bonus characters available to this account. |
void |
setBonusCharsOnlineLimit(int bonus)
Sets the number of bonus characters online available to this account. |
void |
setFlag(PlayerAccount.AccountFlag flag,
boolean setOrUnset)
Sets or unsets an account-wide flag. |
void |
setPlayerNames(java.util.List<java.lang.String> names)
Sets the names of all the players that belong to this account |
| 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.Modifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tattooable |
|---|
addTattoo, addTattoo, addTattoo, delTattoo, delTattoo, findTattoo, findTattooStartsWith, tattoos |
| Method Detail |
|---|
java.util.Enumeration<MOB> getLoadPlayers()
java.util.Enumeration<PlayerLibrary.ThinPlayer> getThinPlayers()
int numPlayers()
java.util.Enumeration<java.lang.String> getPlayers()
void addNewPlayer(MOB mob)
mob - the new player to add.void delPlayer(MOB mob)
mob - the player to delete.void delPlayer(java.lang.String name)
name - the name of the player to remove.MOB getAccountMob()
java.lang.String findPlayer(java.lang.String name)
name - the name look for check
java.lang.String getAccountName()
void setAccountName(java.lang.String name)
name - the accounts namevoid setPlayerNames(java.util.List<java.lang.String> names)
names - the names of the playersboolean isSet(PlayerAccount.AccountFlag flag)
flag - the flag name
setFlag(AccountFlag, boolean)
void setFlag(PlayerAccount.AccountFlag flag,
boolean setOrUnset)
flag - the flag namesetOrUnset - true to set it, false to unsetisSet(AccountFlag)int getBonusCharsOnlineLimit()
setBonusCharsOnlineLimit(int)void setBonusCharsOnlineLimit(int bonus)
bonus - the number of bonus chars onlinegetBonusCharsOnlineLimit()int getBonusCharsLimit()
setBonusCharsLimit(int)void setBonusCharsLimit(int bonus)
bonus - the number of bonus charsgetBonusCharsLimit()void copyInto(PlayerAccount otherAccount)
otherAccount - the data to copy from.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||