de.adom.jade.startup.chargen
Class CharacterGenerator

java.lang.Object
  extended by de.adom.jade.startup.chargen.CharacterGenerator
Direct Known Subclasses:
BasicCharacterGenerator

public abstract class CharacterGenerator
extends java.lang.Object

Implements the default interface a character generator must have to confirm to the UI. All character generaqtors must fulfill the following conditions:


Constructor Summary
CharacterGenerator()
           
 
Method Summary
static CharacterGenerator getCharacterGenerator()
          Returns an instance of the currently selected character generator.
abstract  CharacterData getGeneratedData()
          Returns a freshly generated character.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterGenerator

public CharacterGenerator()
Method Detail

getGeneratedData

public abstract CharacterData getGeneratedData()
Returns a freshly generated character. This method call is responsible for everything - from setting up the character generator UI to generating the actual character data.

Returns:
the data for a freshly generated character or null if the attempt was aborted

getCharacterGenerator

public static CharacterGenerator getCharacterGenerator()
Returns an instance of the currently selected character generator.

Returns:
the currently selected character generator