public class CreatorManager extends Object implements CreatorListener
| Constructor and Description |
|---|
CreatorManager()
Creates a new instance of
CreatorManager. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCreatorListener(CreatorListener listener)
Adds a listener that will receive any changes made by the
CreatorManager. |
void |
cancelCreation()
Requests that character creation finish without creating a character.
|
void |
changeStatistics(int id,
CharacterStats stats)
Notifies the listener of new character statistics.
|
void |
createCurrentCharacter(String name)
Requests that the server create the current character as one owned
by the player.
|
void |
rollForStats(int charClass)
Requests new statistics be rolled for the given character
|
void |
setClient(com.sun.sgs.client.simple.SimpleClient simpleClient)
Sets the client that this class uses for all communication with
the game server.
|
public void addCreatorListener(CreatorListener listener)
CreatorManager.listener - the listener to addpublic void setClient(com.sun.sgs.client.simple.SimpleClient simpleClient)
simpleClient - the client that will use this classpublic void rollForStats(int charClass)
charClass - the type of characterpublic void createCurrentCharacter(String name)
name - the character's namepublic void cancelCreation()
public void changeStatistics(int id,
CharacterStats stats)
changeStatistics in interface CreatorListenerid - the character's identifierstats - the new statisticsCopyright © 2013. All Rights Reserved.