CMObject
, Tickable
, CharCreationLibrary
, CMLibrary
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class CharCreation extends StdLibrary implements CharCreationLibrary
Modifier and Type | Class | Description |
---|---|---|
static class |
CharCreation.LoginState |
CharCreationLibrary.LoginResult, CharCreationLibrary.LoginSession, CharCreationLibrary.NewCharNameCheckResult
Modifier and Type | Field | Description |
---|---|---|
protected PairList<MaskingLibrary.CompiledZMask,java.lang.String> |
bodyRoomMasks |
|
protected java.util.Map<java.lang.String,java.lang.String> |
bodyRooms |
|
protected PairList<MaskingLibrary.CompiledZMask,java.lang.String> |
deathRoomMasks |
|
protected java.util.Map<java.lang.String,java.lang.String> |
deathRooms |
|
static java.lang.String[] |
DEFAULT_BADNAMES |
|
protected MaskingLibrary.CompiledZMask |
deitiesMask |
|
protected CMath.CompiledFormula |
maxCarryFormula |
|
protected CMath.CompiledFormula |
maxFollowersFormula |
|
protected CMath.CompiledFormula |
maxItemsFormula |
|
protected boolean |
propertiesReLoaded |
|
protected Pair<java.lang.String,java.lang.Integer>[] |
randomNameConsonants |
|
protected Pair<java.lang.String,java.lang.Integer>[] |
randomNameVowels |
|
protected java.lang.String |
RECONFIRMSTR |
|
protected MaskingLibrary.CompiledZMask |
requiresDeityMask |
|
protected PairList<MaskingLibrary.CompiledZMask,java.lang.String> |
startRoomMasks |
|
protected java.util.Map<java.lang.String,java.lang.String> |
startRooms |
idConverter
isDebugging, name, serviceClient, tickStatus
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
Constructor | Description |
---|---|
CharCreation() |
Modifier and Type | Method | Description |
---|---|---|
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) |
|
boolean |
activate() |
Activates the library.
|
protected java.lang.String |
buildQualifyingClassList(MOB mob,
java.util.List<CharClass> classes,
java.lang.String finalConnector) |
|
protected java.lang.String |
buildQualifyingDeityList(MOB mob,
java.util.List<Deity> deities,
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 |
charcrDeityConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session) |
|
protected CharCreationLibrary.LoginResult |
charcrDeityDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session) |
|
protected CharCreationLibrary.LoginResult |
charcrDeityPicked(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj,
Session session) |
|
protected CharCreationLibrary.LoginResult |
charcrDeityStart(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 |
charcrStartFinish(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 java.util.List<Deity> |
deityQualifies(MOB mob,
int theme) |
|
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.
|
java.util.Enumeration<java.lang.String> |
getBodyRoomIDs() |
Returns an enumeration of all possible body room ids
|
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.
|
int |
getMaxCarry(MOB mob) |
Returns the maximum weight the given mob can carry.
|
int |
getMaxFollowers(MOB mob) |
Returns the maximum followers the given mob can have
|
int |
getMaxItems(MOB mob) |
Returns the maximum items the given mob can carry.
|
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() |
|
protected CostDef.Cost[][] |
getStatCosts() |
|
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.
|
CostDef.Cost |
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 boolean |
isTattooedLike(MOB mob,
java.lang.String fullID) |
|
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.
|
int |
numAccountsAllowed(PlayerAccount acct) |
|
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.
|
void |
propertiesLoaded() |
This method is called whenever system properties are altered by the user.
|
java.util.List<Race> |
raceQualifies(MOB mob,
int theme) |
Returns the list of all races that the given mob can choose
into, given their currrent state, and the given theme.
|
protected boolean |
raceQualifies(MOB mob,
Race R,
int 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.
|
getServiceClient, L
copyOf, initializeClass, name, newInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, setThreadStatus, tick
protected final java.util.Map<java.lang.String,java.lang.String> startRooms
protected final PairList<MaskingLibrary.CompiledZMask,java.lang.String> startRoomMasks
protected final java.util.Map<java.lang.String,java.lang.String> deathRooms
protected final PairList<MaskingLibrary.CompiledZMask,java.lang.String> deathRoomMasks
protected final java.util.Map<java.lang.String,java.lang.String> bodyRooms
protected final PairList<MaskingLibrary.CompiledZMask,java.lang.String> bodyRoomMasks
protected Pair<java.lang.String,java.lang.Integer>[] randomNameVowels
protected Pair<java.lang.String,java.lang.Integer>[] randomNameConsonants
protected MaskingLibrary.CompiledZMask requiresDeityMask
protected MaskingLibrary.CompiledZMask deitiesMask
protected boolean propertiesReLoaded
protected CMath.CompiledFormula maxCarryFormula
protected CMath.CompiledFormula maxItemsFormula
protected CMath.CompiledFormula maxFollowersFormula
protected final java.lang.String RECONFIRMSTR
public static final java.lang.String[] DEFAULT_BADNAMES
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 loginpublic 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 applicablepublic 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 availableArea.THEME_FANTASY
,
CharCreationLibrary.classQualifies(MOB, int)
protected boolean isTattooedLike(MOB mob, java.lang.String fullID)
public boolean isAvailableCharClass(CharClass C)
CharCreationLibrary
isAvailableCharClass
in interface CharCreationLibrary
C
- the CharClass to checkpublic 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 byCharCreationLibrary.canChangeToThisClass(MOB, CharClass, int)
public boolean isAvailableRace(Race R)
CharCreationLibrary
isAvailableRace
in interface CharCreationLibrary
R
- the Race to checkpublic java.util.List<Race> raceQualifies(MOB mob, int theme)
CharCreationLibrary
raceQualifies
in interface CharCreationLibrary
mob
- the mob who wants to do some racingtheme
- the theme to filter the races byCharCreationLibrary.canChangeToThisClass(MOB, CharClass, int)
public boolean isBadName(java.lang.String login)
CharCreationLibrary
isBadName
in interface CharCreationLibrary
login
- the name to testCharCreationLibrary.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 otherwiseCharCreationLibrary.isBadName(String)
,
CharCreationLibrary.isOkName(String, boolean)
,
CharCreationLibrary.newCharNameCheck(String, String, boolean)
,
CharCreationLibrary.newAccountNameCheck(String, String)
public void propertiesLoaded()
CMLibrary
propertiesLoaded
in interface CMLibrary
propertiesLoaded
in class StdLibrary
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 java.lang.String buildQualifyingDeityList(MOB mob, java.util.List<Deity> deities, 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 wizinvisiblejava.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 CostDef.Cost[][] getStatCosts()
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 charcrDeityStart(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrDeityPicked(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrDeityConfirm(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrDeityDone(com.planet_ink.coffee_mud.Libraries.CharCreation.LoginSessionImpl loginObj, Session session)
protected CharCreationLibrary.LoginResult charcrStartFinish(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 checkpublic 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 matchesCharCreationLibrary.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 checkerCharCreationLibrary.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 int numAccountsAllowed(PlayerAccount acct)
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-wasjava.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 roomCharCreationLibrary.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 roomCharCreationLibrary.initDeathRooms(CMProps)
,
CharCreationLibrary.getDefaultStartRoom(MOB)
,
CharCreationLibrary.getDefaultBodyRoom(MOB)
public java.util.Enumeration<java.lang.String> getBodyRoomIDs()
CharCreationLibrary
getBodyRoomIDs
in interface CharCreationLibrary
public Room getDefaultBodyRoom(MOB mob)
CharCreationLibrary
getDefaultBodyRoom
in interface CharCreationLibrary
mob
- the mob who needs to know their morgue roomCharCreationLibrary.initBodyRooms(CMProps)
,
CharCreationLibrary.getDefaultStartRoom(MOB)
,
CharCreationLibrary.getDefaultDeathRoom(MOB)
public CostDef.Cost 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 errorsCharStats
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 int getMaxCarry(MOB mob)
CharCreationLibrary
getMaxCarry
in interface CharCreationLibrary
mob
- the mob who wants to carry stuffpublic int getMaxItems(MOB mob)
CharCreationLibrary
getMaxItems
in interface CharCreationLibrary
mob
- the mob who wants to carry stuffpublic int getMaxFollowers(MOB mob)
CharCreationLibrary
getMaxFollowers
in interface CharCreationLibrary
mob
- the mob who wants followerspublic 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 statsjava.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 pointsjava.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 racejava.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 genderjava.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 personjava.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 minimumpublic 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)
public boolean activate()
CMLibrary
activate
in interface CMLibrary
activate
in class StdLibrary
CMLibrary.shutdown()