com.planet_ink.coffee_mud.Libraries
Class CharCreation

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.StdLibrary
      extended by com.planet_ink.coffee_mud.Libraries.CharCreation
All Implemented Interfaces:
CMObject, CharCreationLibrary, CMLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>

public class CharCreation
extends StdLibrary
implements CharCreationLibrary


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CharCreationLibrary
CharCreationLibrary.LoginResult
 
Field Summary
 java.util.Hashtable bodyRooms
           
 java.util.Hashtable deathRooms
           
 java.util.Hashtable<java.lang.String,java.lang.Long> pendingLogins
           
 java.util.Hashtable startRooms
           
 
Fields inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CharCreationLibrary
DEFAULT_BADNAMES
 
Constructor Summary
CharCreation()
           
 
Method Summary
 boolean canChangeToThisClass(MOB mob, CharClass thisClass, int theme)
           
 java.util.List<CharClass> classQualifies(MOB mob, int theme)
           
 CharCreationLibrary.LoginResult completeCharacterLogin(Session session, java.lang.String login, boolean wiziFlag)
           
 CharCreationLibrary.LoginResult createAccount(PlayerAccount acct, java.lang.String login, Session session)
           
 CharCreationLibrary.LoginResult createCharacter(PlayerAccount acct, java.lang.String login, Session session)
           
 Room getDefaultBodyRoom(MOB mob)
           
 Room getDefaultDeathRoom(MOB mob)
           
 Room getDefaultStartRoom(MOB mob)
           
 java.lang.String getEmailAddress(Session session, boolean[] emailConfirmation)
           
 boolean getRetireReason(java.lang.String mobName, Session session)
           
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 void initBodyRooms(CMProps page)
           
 void initDeathRooms(CMProps page)
           
 void initStartRooms(CMProps page)
           
 boolean isExpired(PlayerAccount acct, Session session, long expiration)
           
 boolean isOkName(java.lang.String login)
           
 CharCreationLibrary.LoginResult login(Session session, int attempt)
           
 boolean newCharactersAllowed(java.lang.String login, Session session, boolean checkPlayerName)
           
 void notifyFriends(MOB mob, java.lang.String message)
           
 void pageRooms(CMProps page, java.util.Map<java.lang.String,java.lang.String> table, java.lang.String start)
           
 CharCreationLibrary.LoginResult prelimChecks(Session session, java.lang.String login, PlayerLibrary.ThinnerPlayer player)
           
 java.util.List<Race> raceQualifies(MOB mob, int theme)
           
 void reloadTerminal(MOB mob)
           
 void reRollStats(MOB mob, CharStats C)
           
 CharCreationLibrary.LoginResult selectAccountCharacter(PlayerAccount acct, Session session)
           
 void setGlobalBitmaps(MOB mob)
           
 void showTheNews(MOB mob)
           
 boolean shutdown()
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
activate, compareTo, copyOf, getSupportThread, initializeClass, newInstance, propertiesLoaded
 
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, getSupportThread, propertiesLoaded
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject
copyOf, initializeClass, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

pendingLogins

public java.util.Hashtable<java.lang.String,java.lang.Long> pendingLogins

startRooms

public java.util.Hashtable startRooms

deathRooms

public java.util.Hashtable deathRooms

bodyRooms

public java.util.Hashtable bodyRooms
Constructor Detail

CharCreation

public CharCreation()
Method Detail

ID

public java.lang.String ID()
Description copied from interface: CMObject
The CoffeeMud Java Class ID shared by all instances of this object. Unlike the Java Class name, this method does not include package information. However, it must return a String value unique to its class category in the ClassLoader. Class categories include Libraries, Common, Areas, Abilities, Behaviors, CharClasses, Commands, Exits Locales, MOBS, Races, WebMacros, Basic Items, Armor, Weapons, ClanItems, MiscTech. The name is typically identical to the class name.

Specified by:
ID in interface CMObject
Overrides:
ID in class StdLibrary
Returns:
the name of this class

reRollStats

public void reRollStats(MOB mob,
                        CharStats C)
Specified by:
reRollStats in interface CharCreationLibrary

canChangeToThisClass

public boolean canChangeToThisClass(MOB mob,
                                    CharClass thisClass,
                                    int theme)
Specified by:
canChangeToThisClass in interface CharCreationLibrary

getRetireReason

public boolean getRetireReason(java.lang.String mobName,
                               Session session)
Specified by:
getRetireReason in interface CharCreationLibrary

classQualifies

public java.util.List<CharClass> classQualifies(MOB mob,
                                                int theme)
Specified by:
classQualifies in interface CharCreationLibrary

raceQualifies

public java.util.List<Race> raceQualifies(MOB mob,
                                          int theme)
Specified by:
raceQualifies in interface CharCreationLibrary

isOkName

public boolean isOkName(java.lang.String login)
Specified by:
isOkName in interface CharCreationLibrary

reloadTerminal

public void reloadTerminal(MOB mob)
Specified by:
reloadTerminal in interface CharCreationLibrary

showTheNews

public void showTheNews(MOB mob)
Specified by:
showTheNews in interface CharCreationLibrary

isExpired

public boolean isExpired(PlayerAccount acct,
                         Session session,
                         long expiration)

selectAccountCharacter

public CharCreationLibrary.LoginResult selectAccountCharacter(PlayerAccount acct,
                                                              Session session)
                                                       throws java.io.IOException
Specified by:
selectAccountCharacter in interface CharCreationLibrary
Throws:
java.io.IOException

createAccount

public CharCreationLibrary.LoginResult createAccount(PlayerAccount acct,
                                                     java.lang.String login,
                                                     Session session)
                                              throws java.io.IOException
Throws:
java.io.IOException

getEmailAddress

public java.lang.String getEmailAddress(Session session,
                                        boolean[] emailConfirmation)
                                 throws java.io.IOException
Throws:
java.io.IOException

createCharacter

public CharCreationLibrary.LoginResult createCharacter(PlayerAccount acct,
                                                       java.lang.String login,
                                                       Session session)
                                                throws java.io.IOException
Specified by:
createCharacter in interface CharCreationLibrary
Throws:
java.io.IOException

prelimChecks

public CharCreationLibrary.LoginResult prelimChecks(Session session,
                                                    java.lang.String login,
                                                    PlayerLibrary.ThinnerPlayer player)

notifyFriends

public void notifyFriends(MOB mob,
                          java.lang.String message)
Specified by:
notifyFriends in interface CharCreationLibrary

login

public CharCreationLibrary.LoginResult login(Session session,
                                             int attempt)
                                      throws java.io.IOException
Specified by:
login in interface CharCreationLibrary
Throws:
java.io.IOException

newCharactersAllowed

public boolean newCharactersAllowed(java.lang.String login,
                                    Session session,
                                    boolean checkPlayerName)

setGlobalBitmaps

public void setGlobalBitmaps(MOB mob)

completeCharacterLogin

public CharCreationLibrary.LoginResult completeCharacterLogin(Session session,
                                                              java.lang.String login,
                                                              boolean wiziFlag)
                                                       throws java.io.IOException
Throws:
java.io.IOException

getDefaultStartRoom

public Room getDefaultStartRoom(MOB mob)
Specified by:
getDefaultStartRoom in interface CharCreationLibrary

getDefaultDeathRoom

public Room getDefaultDeathRoom(MOB mob)
Specified by:
getDefaultDeathRoom in interface CharCreationLibrary

getDefaultBodyRoom

public Room getDefaultBodyRoom(MOB mob)
Specified by:
getDefaultBodyRoom in interface CharCreationLibrary

pageRooms

public void pageRooms(CMProps page,
                      java.util.Map<java.lang.String,java.lang.String> table,
                      java.lang.String start)
Specified by:
pageRooms in interface CharCreationLibrary

initStartRooms

public void initStartRooms(CMProps page)
Specified by:
initStartRooms in interface CharCreationLibrary

initDeathRooms

public void initDeathRooms(CMProps page)
Specified by:
initDeathRooms in interface CharCreationLibrary

initBodyRooms

public void initBodyRooms(CMProps page)
Specified by:
initBodyRooms in interface CharCreationLibrary

shutdown

public boolean shutdown()
Specified by:
shutdown in interface CMLibrary
Overrides:
shutdown in class StdLibrary