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


Field Summary
 java.util.Hashtable bodyRooms
           
 java.util.Hashtable deathRooms
           
 java.util.Hashtable pendingLogins
           
 java.util.Hashtable startRooms
           
 
Constructor Summary
CharCreation()
           
 
Method Summary
 boolean checkExpiration(MOB mob)
           
 boolean classOkForMe(MOB mob, CharClass thisClass, int theme)
           
 java.util.Vector classQualifies(MOB mob, int theme)
           
 boolean createCharacter(MOB mob, java.lang.String login, Session session)
           
 Room getDefaultBodyRoom(MOB mob)
           
 Room getDefaultDeathRoom(MOB mob)
           
 Room getDefaultStartRoom(MOB mob)
           
 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 isOkName(java.lang.String login)
           
 int login(MOB mob, int attempt)
          0=no login, 1=login, 2=swap login
 void pageRooms(CMProps page, java.util.Hashtable table, java.lang.String start)
           
 void reloadTerminal(MOB mob)
           
 void reRollStats(MOB mob, CharStats C)
           
 void showTheNews(MOB mob)
           
 boolean shutdown()
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
activate, compareTo, copyOf, getSupportThread, initializeClass, newInstance
 
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
 
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 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

classOkForMe

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

classQualifies

public java.util.Vector classQualifies(MOB mob,
                                       int theme)
Specified by:
classQualifies in interface CharCreationLibrary
Returns:

isOkName

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

reloadTerminal

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

showTheNews

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

checkExpiration

public boolean checkExpiration(MOB mob)
Specified by:
checkExpiration in interface CharCreationLibrary
Returns:

createCharacter

public boolean createCharacter(MOB mob,
                               java.lang.String login,
                               Session session)
                        throws java.io.IOException
Specified by:
createCharacter in interface CharCreationLibrary
Returns:
Throws:
java.io.IOException

login

public int login(MOB mob,
                 int attempt)
          throws java.io.IOException
Description copied from interface: CharCreationLibrary
0=no login, 1=login, 2=swap login

Specified by:
login in interface CharCreationLibrary
Returns:
Throws:
java.io.IOException

getDefaultStartRoom

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

getDefaultDeathRoom

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

getDefaultBodyRoom

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

pageRooms

public void pageRooms(CMProps page,
                      java.util.Hashtable 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