|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Libraries.StdLibrary
com.planet_ink.coffee_mud.Libraries.CharCreation
public class CharCreation
Nested Class Summary | |
---|---|
static class |
CharCreation.LoginState
|
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CharCreationLibrary |
---|
CharCreationLibrary.LoginResult, CharCreationLibrary.LoginSession, CharCreationLibrary.NewCharNameCheckResult |
Field Summary | |
---|---|
PairList<MaskingLibrary.CompiledZMask,java.lang.String> |
bodyRoomMasks
|
java.util.Map<java.lang.String,java.lang.String> |
bodyRooms
|
PairList<MaskingLibrary.CompiledZMask,java.lang.String> |
deathRoomMasks
|
java.util.Map<java.lang.String,java.lang.String> |
deathRooms
|
static java.lang.String[] |
DEFAULT_BADNAMES
|
Pair<java.lang.String,java.lang.Integer>[] |
randomNameConsonants
|
Pair<java.lang.String,java.lang.Integer>[] |
randomNameVowels
|
protected java.lang.String |
RECONFIRMSTR
|
PairList<MaskingLibrary.CompiledZMask,java.lang.String> |
startRoomMasks
|
java.util.Map<java.lang.String,java.lang.String> |
startRooms
|
Fields inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary |
---|
isDebugging, name, serviceClient, tickStatus |
Constructor Summary | |
---|---|
CharCreation()
|
Method Summary | |
---|---|
protected CharCreationLibrary.LoginResult |
acctcreateANSIConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctcreateEmailConfirmed(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctcreateEmailEntered(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctcreateEmailPrompt(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctcreateEmailStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctcreatePassworded(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctcreateStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctmenuAddToCommand(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctmenuCommand(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctmenuConfirmCommand(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctmenuPrompt(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctmenuShowChars(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctmenuShowMenu(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
acctmenuStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected java.lang.String |
buildQualifyingClassList(MOB mob,
java.util.List<CharClass> classes,
java.lang.String finalConnector)
|
boolean |
canChangeToThisClass(MOB mob,
CharClass thisClass,
int theme)
Returns whether the given mob can change to the given class (that is, to become level 0 in that class) in the given theme. |
protected CharCreationLibrary.LoginResult |
charcrANSIConfirmed(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrANSIDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrClassConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrClassDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrClassInit(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrClassPicked(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrClassStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrEmailConfirmed(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrEmailDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrEmailEntered(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrEmailPrompt(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrEmailStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrFactionDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrFactionNext(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrFactionPick(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrFinish(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrGenderDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrGenderStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrPasswordDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrRaceConfirmed(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrRaceDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrRaceReEntered(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrRaceStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrStatConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrStatDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrStatInit(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session,
int bonusPoints)
|
protected CharCreationLibrary.LoginResult |
charcrStatPick(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrStatPickAdd(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrStatStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrThemeDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrThemePicked(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
charcrThemeStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
java.util.List<CharClass> |
classQualifies(MOB mob,
int theme)
Returns the list of all character classes that the given mob can change into, given their currrent state, and the given theme. |
CharCreationLibrary.LoginResult |
completeCharacterLogin(Session session,
java.lang.String login,
boolean wiziFlag)
|
CharCreationLibrary.LoginResult |
completePlayerLogin(Session session,
boolean wizi)
Takes the given session and mobs login by putting the mob into the given start room in the world, checking their email, and seeing if they are allowed in. |
CharCreationLibrary.LoginResult |
createCharacter(java.lang.String login,
Session session)
Attempts to send the given session through the character creation process, at the end of which a character with the given login as name will be in the database, ready to load. |
CharCreationLibrary.LoginSession |
createLoginSession(Session session)
Creates a new Login Session for the given Session, which will start the login state machine process that will end eventually with either a disconnect or a character logged in. |
protected void |
finishCreateAccount(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
PlayerAccount acct,
java.lang.String login,
java.lang.String pw,
java.lang.String emailAddy,
Session session)
|
CharCreationLibrary.LoginResult |
finishLogin(Session session,
MOB mob,
Room startRoom,
boolean resetStats)
Completes the given session and mobs login by putting the mob into the given start room in the world, checking their email, and seeing if they are allowed in. |
CharCreationLibrary.NewCharNameCheckResult |
finishNameCheck(java.lang.String login,
java.lang.String ipAddress)
|
java.lang.String |
generateRandomName(int minSyllable,
int maxSyllable)
Returns a random fantasy name with the range of syllables given. |
Room |
getDefaultBodyRoom(MOB mob)
Given the characteristics of the given mob, this method returns the appropriate morgue room for the given mob. |
Room |
getDefaultDeathRoom(MOB mob)
Given the characteristics of the given mob, this method returns the appropriate death room for the given mob. |
Room |
getDefaultStartRoom(MOB mob)
Given the characteristics of the given mob, this method returns the appropriate start/recall room for the given mob. |
java.util.List<java.lang.String> |
getExpiredAcctOrCharsList()
Returns the list of the names of all the expired Accounts or Characters, depending on whether the account system is used or not. |
protected java.util.List<java.lang.String> |
getNamedFactionChoices(Faction F,
java.util.List<java.lang.Integer> mine)
|
protected Pair<java.lang.String,java.lang.Integer>[] |
getRandomConsonants()
|
protected Pair<java.lang.String,java.lang.Integer>[] |
getRandomVowels()
|
int |
getTotalBonusStatPoints(PlayerStats playerStats,
PlayerAccount account)
Based on the rules of the system, this method returns the number of bonus stat points available to players to allocate, if the system lets them do such a thing. |
int |
getTrainingCost(MOB mob,
int abilityCode,
boolean quiet)
Returns the cost, in trains, for the given mob to gain a point in the given ability code stat number. |
protected void |
getUniversalStartingItems(int theme,
MOB mob)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
void |
initBodyRooms(CMProps page)
Initialize the rules for determining the new character morgue room given the characteristics of the player. |
void |
initDeathRooms(CMProps page)
Initialize the rules for determining the new character death room given the characteristics of the player. |
void |
initStartRooms(CMProps page)
Initialize the rules for determining the new character start/recall room given the characteristics of the player. |
boolean |
isAvailableCharClass(CharClass C)
Returns whether the given character class may be selected by a user. |
boolean |
isAvailableRace(Race R)
Returns whether the given race may be selected by a user. |
boolean |
isBadName(java.lang.String login)
Returns only whether the given name has a bad word in it. |
boolean |
isExpired(PlayerAccount acct,
Session session,
MOB mob)
|
boolean |
isOkName(java.lang.String login,
boolean spacesOk)
Returns whether the given name is a valid, legitimate, unused, unbanned, non-bad name to use in coffeemud, for accounts or players. |
protected CharCreationLibrary.LoginResult |
loginAcctcharPword(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
loginAcctconvConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
loginEmailPassword(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
loginName(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
loginNewaccountConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
loginNewcharConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
loginPassReceived(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
loginPassStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
loginStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
protected CharCreationLibrary.LoginResult |
loginSubsystem(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
CharCreationLibrary.LoginResult |
loginSystem(Session session,
com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj)
|
protected void |
logoutLoginSession(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginSession)
|
protected Pair<java.lang.String,java.lang.Integer>[] |
makeRandomNameSets(java.lang.String rawData)
|
CharCreationLibrary.NewCharNameCheckResult |
newAccountNameCheck(java.lang.String login,
java.lang.String ipAddress)
Checks whether an account with the given login name from the given ipAddress may be created at this time. |
boolean |
newAccountsAllowed(java.lang.String login,
Session session,
PlayerAccount acct)
|
boolean |
newCharactersAllowed(java.lang.String login,
Session session,
PlayerAccount acct,
boolean skipAccountNameCheck)
|
CharCreationLibrary.NewCharNameCheckResult |
newCharNameCheck(java.lang.String login,
java.lang.String ipAddress,
boolean skipAccountNameCheck)
Checks whether a character with the given login name from the given ipAddress may be created at this time. |
void |
notifyFriends(MOB mob,
java.lang.String message)
If any of the given mobs friends are online, they are sent the given message. |
protected void |
pageRooms(CMProps page,
java.util.Map<java.lang.String,java.lang.String> table,
PairList<MaskingLibrary.CompiledZMask,java.lang.String> masks,
java.lang.String start)
|
boolean |
performSpamConnectionCheck(java.lang.String address)
Does a connection spam check against the given address, returning true if all is well, and false if it needs blocking. |
CharCreationLibrary.LoginResult |
prelimChecks(Session session,
MOB pickedMOB,
java.lang.String login,
java.lang.String email)
|
void |
promptBaseCharStats(int theme,
MOB mob,
int timeoutSecs,
Session session,
int bonusPoints)
A blocking call that populates the given mob with their base CharStats according to character creation rules. |
CharClass |
promptCharClass(int theme,
MOB mob,
Session session)
A blocking call that populates the given mob with a character class according to character creation rules. |
char |
promptGender(int theme,
MOB mob,
Session session)
A blocking call that populates the given mob with a particular gender according to character creation rules. |
Race |
promptRace(int theme,
MOB mob,
Session session)
A blocking call that populates the given mob with a particular race according to character creation rules. |
java.util.List<Race> |
raceQualifies(int theme)
Returns the list of all races that the given mob can choose into, given their currrent state, and the given theme. |
void |
reloadTerminal(MOB mob)
Resets the MXP, MSP and other session flags based on the mobs attributes. |
void |
reRollStats(CharStats baseCharStats,
int pointsLeft)
Re-populates the base stats of the given CharStats object by resetting the values to minimum, and then adding as many of the given points to random stats until they are all gone. |
void |
setGlobalBitmaps(MOB mob)
|
protected MOB |
setMOBClass(java.lang.String classID,
com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session)
|
void |
showTheNews(MOB mob)
Resets the terminal to the given mobs specs, shows any available polls, the daily message, and runs the MOTD. |
boolean |
shutdown()
Shuts down the library. |
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary |
---|
activate, checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, propertiesLoaded, setThreadStatus, tick |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary |
---|
activate, getServiceClient, L, propertiesLoaded |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, initializeClass, name, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
public java.util.Map<java.lang.String,java.lang.String> startRooms
public PairList<MaskingLibrary.CompiledZMask,java.lang.String> startRoomMasks
public java.util.Map<java.lang.String,java.lang.String> deathRooms
public PairList<MaskingLibrary.CompiledZMask,java.lang.String> deathRoomMasks
public java.util.Map<java.lang.String,java.lang.String> bodyRooms
public PairList<MaskingLibrary.CompiledZMask,java.lang.String> bodyRoomMasks
public Pair<java.lang.String,java.lang.Integer>[] randomNameVowels
public Pair<java.lang.String,java.lang.Integer>[] randomNameConsonants
protected final java.lang.String RECONFIRMSTR
public static final java.lang.String[] DEFAULT_BADNAMES
Constructor Detail |
---|
public CharCreation()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdLibrary
public CharCreationLibrary.LoginSession createLoginSession(Session session)
CharCreationLibrary
createLoginSession
in interface CharCreationLibrary
session
- the telnet session trying to login
public int getTotalBonusStatPoints(PlayerStats playerStats, PlayerAccount account)
CharCreationLibrary
getTotalBonusStatPoints
in interface CharCreationLibrary
playerStats
- The player stats object for the playeraccount
- the player account object for the player, if applicable
public void reRollStats(CharStats baseCharStats, int pointsLeft)
CharCreationLibrary
reRollStats
in interface CharCreationLibrary
baseCharStats
- the charstats object to populatepointsLeft
- the number of points above minimum to allocateCharStats
public boolean canChangeToThisClass(MOB mob, CharClass thisClass, int theme)
CharCreationLibrary
canChangeToThisClass
in interface CharCreationLibrary
mob
- null or the mob who wants to learn a new classthisClass
- the class that the mob wants to learntheme
- the theme defining which classes are available
Area.THEME_FANTASY
,
CharCreationLibrary.classQualifies(MOB, int)
public boolean isAvailableCharClass(CharClass C)
CharCreationLibrary
isAvailableCharClass
in interface CharCreationLibrary
C
- the CharClass to check
public java.util.List<CharClass> classQualifies(MOB mob, int theme)
CharCreationLibrary
classQualifies
in interface CharCreationLibrary
mob
- the mob who wants to change classestheme
- the theme to filter the classes by
CharCreationLibrary.canChangeToThisClass(MOB, CharClass, int)
public boolean isAvailableRace(Race R)
CharCreationLibrary
isAvailableRace
in interface CharCreationLibrary
R
- the Race to check
public java.util.List<Race> raceQualifies(int theme)
CharCreationLibrary
raceQualifies
in interface CharCreationLibrary
theme
- the theme to filter the races by
CharCreationLibrary.canChangeToThisClass(MOB, CharClass, int)
public boolean isBadName(java.lang.String login)
CharCreationLibrary
isBadName
in interface CharCreationLibrary
login
- the name to test
CharCreationLibrary.isOkName(String, boolean)
,
CharCreationLibrary.newCharNameCheck(String, String, boolean)
,
CharCreationLibrary.newAccountNameCheck(String, String)
public boolean isOkName(java.lang.String login, boolean spacesOk)
CharCreationLibrary
isOkName
in interface CharCreationLibrary
login
- the name to testspacesOk
- true if spaces in the name are ok, false otherwise
CharCreationLibrary.isBadName(String)
,
CharCreationLibrary.isOkName(String, boolean)
,
CharCreationLibrary.newCharNameCheck(String, String, boolean)
,
CharCreationLibrary.newAccountNameCheck(String, String)
public void reloadTerminal(MOB mob)
CharCreationLibrary
reloadTerminal
in interface CharCreationLibrary
mob
- the mob whose session needs to match hisCharCreationLibrary.showTheNews(MOB)
public void showTheNews(MOB mob)
CharCreationLibrary
showTheNews
in interface CharCreationLibrary
mob
- the mob to show these things toCharCreationLibrary.reloadTerminal(MOB)
public java.util.List<java.lang.String> getExpiredAcctOrCharsList()
CharCreationLibrary
getExpiredAcctOrCharsList
in interface CharCreationLibrary
public boolean isExpired(PlayerAccount acct, Session session, MOB mob)
protected void finishCreateAccount(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, PlayerAccount acct, java.lang.String login, java.lang.String pw, java.lang.String emailAddy, Session session)
protected java.lang.String buildQualifyingClassList(MOB mob, java.util.List<CharClass> classes, java.lang.String finalConnector)
protected void getUniversalStartingItems(int theme, MOB mob)
public CharCreationLibrary.LoginResult prelimChecks(Session session, MOB pickedMOB, java.lang.String login, java.lang.String email)
public void notifyFriends(MOB mob, java.lang.String message)
CharCreationLibrary
notifyFriends
in interface CharCreationLibrary
mob
- the mob whose friends need notifyingmessage
- the message to send to the mobs friends.protected CharCreationLibrary.LoginResult loginSubsystem(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session) throws java.io.IOException
java.io.IOException
protected CharCreationLibrary.LoginResult loginStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult loginName(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult loginAcctcharPword(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult loginAcctconvConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctcreateStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctcreateANSIConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctcreateEmailStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctcreateEmailPrompt(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctcreateEmailEntered(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctcreateEmailConfirmed(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctcreatePassworded(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult loginPassStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult loginNewcharConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult loginNewaccountConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult loginPassReceived(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session) throws java.io.IOException
java.io.IOException
protected CharCreationLibrary.LoginResult loginEmailPassword(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session) throws java.io.IOException
java.io.IOException
protected CharCreationLibrary.LoginResult acctmenuStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctmenuShowChars(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctmenuShowMenu(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctmenuPrompt(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctmenuConfirmCommand(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctmenuAddToCommand(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult acctmenuCommand(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session) throws java.io.IOException
java.io.IOException
public CharCreationLibrary.LoginResult completePlayerLogin(Session session, boolean wizi) throws java.io.IOException
CharCreationLibrary
completePlayerLogin
in interface CharCreationLibrary
session
- the session trying to login, with the mob to loginwizi
- true if the player should login wizinvisible
java.io.IOException
- any I/O errors during the processprotected CharCreationLibrary.LoginResult charcrStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrPasswordDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrEmailStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrEmailPrompt(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrEmailEntered(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrEmailConfirmed(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrEmailDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrANSIConfirmed(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrANSIDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrThemeStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrThemePicked(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrThemeDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected MOB setMOBClass(java.lang.String classID, com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrRaceStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrRaceReEntered(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrRaceConfirmed(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrRaceDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrGenderStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrGenderDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrStatInit(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session, int bonusPoints)
protected CharCreationLibrary.LoginResult charcrStatStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrStatConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrStatPickAdd(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrStatPick(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrStatDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrClassInit(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrClassStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrClassPicked(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrClassConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrClassDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrFactionNext(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrFactionPick(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrFactionDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrFinish(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected java.util.List<java.lang.String> getNamedFactionChoices(Faction F, java.util.List<java.lang.Integer> mine)
public CharCreationLibrary.NewCharNameCheckResult finishNameCheck(java.lang.String login, java.lang.String ipAddress)
public boolean performSpamConnectionCheck(java.lang.String address)
CharCreationLibrary
performSpamConnectionCheck
in interface CharCreationLibrary
address
- the address to check
public CharCreationLibrary.NewCharNameCheckResult newCharNameCheck(java.lang.String login, java.lang.String ipAddress, boolean skipAccountNameCheck)
CharCreationLibrary
newCharNameCheck
in interface CharCreationLibrary
login
- the name to checkipAddress
- the ip address of the name checkerskipAccountNameCheck
- true to ignore account name matches
CharCreationLibrary.isBadName(String)
,
CharCreationLibrary.isOkName(String, boolean)
,
CharCreationLibrary.newAccountNameCheck(String, String)
,
CharCreationLibrary.NewCharNameCheckResult
public CharCreationLibrary.NewCharNameCheckResult newAccountNameCheck(java.lang.String login, java.lang.String ipAddress)
CharCreationLibrary
newAccountNameCheck
in interface CharCreationLibrary
login
- the name to checkipAddress
- the ip address of the name checker
CharCreationLibrary.isBadName(String)
,
CharCreationLibrary.isOkName(String, boolean)
,
CharCreationLibrary.newCharNameCheck(String, String, boolean)
public boolean newCharactersAllowed(java.lang.String login, Session session, PlayerAccount acct, boolean skipAccountNameCheck)
public boolean newAccountsAllowed(java.lang.String login, Session session, PlayerAccount acct)
public void setGlobalBitmaps(MOB mob)
public CharCreationLibrary.LoginResult finishLogin(Session session, MOB mob, Room startRoom, boolean resetStats) throws java.io.IOException
CharCreationLibrary
finishLogin
in interface CharCreationLibrary
session
- the session trying to loginmob
- the mob trying to log instartRoom
- the room they will appear inresetStats
- true to reset their state (hit points, etc) or false to keep as-was
java.io.IOException
- any I/O errors during the processCharCreationLibrary.LoginResult
public CharCreationLibrary.LoginResult completeCharacterLogin(Session session, java.lang.String login, boolean wiziFlag) throws java.io.IOException
java.io.IOException
public Room getDefaultStartRoom(MOB mob)
CharCreationLibrary
getDefaultStartRoom
in interface CharCreationLibrary
mob
- the mob who needs to know their start room
CharCreationLibrary.initStartRooms(CMProps)
,
CharCreationLibrary.getDefaultDeathRoom(MOB)
,
CharCreationLibrary.getDefaultBodyRoom(MOB)
public Room getDefaultDeathRoom(MOB mob)
CharCreationLibrary
getDefaultDeathRoom
in interface CharCreationLibrary
mob
- the mob who needs to know their death room
CharCreationLibrary.initDeathRooms(CMProps)
,
CharCreationLibrary.getDefaultStartRoom(MOB)
,
CharCreationLibrary.getDefaultBodyRoom(MOB)
public Room getDefaultBodyRoom(MOB mob)
CharCreationLibrary
getDefaultBodyRoom
in interface CharCreationLibrary
mob
- the mob who needs to know their morgue room
CharCreationLibrary.initBodyRooms(CMProps)
,
CharCreationLibrary.getDefaultStartRoom(MOB)
,
CharCreationLibrary.getDefaultDeathRoom(MOB)
public int getTrainingCost(MOB mob, int abilityCode, boolean quiet)
CharCreationLibrary
getTrainingCost
in interface CharCreationLibrary
mob
- the mob who is trying to trainabilityCode
- the ability code the mob wants to trainquiet
- true to not give verbal errors
CharStats
protected void pageRooms(CMProps page, java.util.Map<java.lang.String,java.lang.String> table, PairList<MaskingLibrary.CompiledZMask,java.lang.String> masks, java.lang.String start)
public void initStartRooms(CMProps page)
CharCreationLibrary
initStartRooms
in interface CharCreationLibrary
page
- the properties containing info about the start roomsCharCreationLibrary.initDeathRooms(CMProps)
,
CharCreationLibrary.initBodyRooms(CMProps)
,
CharCreationLibrary.getDefaultStartRoom(MOB)
public void initDeathRooms(CMProps page)
CharCreationLibrary
initDeathRooms
in interface CharCreationLibrary
page
- the properties containing info about the death roomsCharCreationLibrary.initStartRooms(CMProps)
,
CharCreationLibrary.initBodyRooms(CMProps)
,
CharCreationLibrary.getDefaultDeathRoom(MOB)
public void initBodyRooms(CMProps page)
CharCreationLibrary
initBodyRooms
in interface CharCreationLibrary
page
- the properties containing info about the morgue roomsCharCreationLibrary.initStartRooms(CMProps)
,
CharCreationLibrary.initDeathRooms(CMProps)
,
CharCreationLibrary.getDefaultBodyRoom(MOB)
public boolean shutdown()
CMLibrary
shutdown
in interface CMLibrary
shutdown
in class StdLibrary
CMLibrary.activate()
public void promptBaseCharStats(int theme, MOB mob, int timeoutSecs, Session session, int bonusPoints) throws java.io.IOException
CharCreationLibrary
promptBaseCharStats
in interface CharCreationLibrary
theme
- the theme code to use for stat allocationmob
- the mob who is getting the new char statstimeoutSecs
- number of seconds before prompt times outsession
- the session which might help allocate the pointsbonusPoints
- any bonus points to allocate to stats
java.io.IOException
- any input errors that occurCharStats
,
Area.THEME_FANTASY
,
CharCreationLibrary.reRollStats(CharStats, int)
,
CharCreationLibrary.promptCharClass(int, MOB, Session)
,
CharCreationLibrary.promptRace(int, MOB, Session)
,
CharCreationLibrary.promptGender(int, MOB, Session)
public CharClass promptCharClass(int theme, MOB mob, Session session) throws java.io.IOException
CharCreationLibrary
promptCharClass
in interface CharCreationLibrary
theme
- the theme code to use for class selectionmob
- the mob who is getting the new char classsession
- the session which might help allocate the points
java.io.IOException
- any input errors that occurCharStats
,
CharCreationLibrary.reRollStats(CharStats, int)
,
CharCreationLibrary.promptBaseCharStats(int, MOB, int, Session, int)
,
CharCreationLibrary.promptRace(int, MOB, Session)
,
CharCreationLibrary.promptGender(int, MOB, Session)
,
Area.THEME_FANTASY
public Race promptRace(int theme, MOB mob, Session session) throws java.io.IOException
CharCreationLibrary
promptRace
in interface CharCreationLibrary
theme
- the theme code to use for race selectionmob
- the mob who is getting the new racesession
- the session which might help get the race
java.io.IOException
- any input errors that occurCharStats
,
CharCreationLibrary.reRollStats(CharStats, int)
,
CharCreationLibrary.promptBaseCharStats(int, MOB, int, Session, int)
,
CharCreationLibrary.promptCharClass(int, MOB, Session)
,
CharCreationLibrary.promptGender(int, MOB, Session)
,
Area.THEME_FANTASY
public char promptGender(int theme, MOB mob, Session session) throws java.io.IOException
CharCreationLibrary
promptGender
in interface CharCreationLibrary
theme
- the theme code to use for gender selectionmob
- the mob who is getting the new gendersession
- the session which might help get the gender
java.io.IOException
- any input errors that occurCharStats
,
CharCreationLibrary.reRollStats(CharStats, int)
,
CharCreationLibrary.promptBaseCharStats(int, MOB, int, Session, int)
,
CharCreationLibrary.promptCharClass(int, MOB, Session)
,
CharCreationLibrary.promptRace(int, MOB, Session)
,
Area.THEME_FANTASY
public CharCreationLibrary.LoginResult createCharacter(java.lang.String login, Session session) throws java.io.IOException
CharCreationLibrary
createCharacter
in interface CharCreationLibrary
login
- the name of the new charactersession
- the session of the character creating person
java.io.IOException
- an i/o error with the telnet sessionCharCreationLibrary.LoginResult
protected Pair<java.lang.String,java.lang.Integer>[] makeRandomNameSets(java.lang.String rawData)
protected Pair<java.lang.String,java.lang.Integer>[] getRandomVowels()
protected Pair<java.lang.String,java.lang.Integer>[] getRandomConsonants()
public java.lang.String generateRandomName(int minSyllable, int maxSyllable)
CharCreationLibrary
generateRandomName
in interface CharCreationLibrary
minSyllable
- the minimum number of syllables, at least 1maxSyllable
- the maximum number of syllables, at least minimum
public CharCreationLibrary.LoginResult loginSystem(Session session, com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj) throws java.io.IOException
java.io.IOException
protected void logoutLoginSession(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginSession)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |