monrovia.server.core
Interface PlayerStorage.PlayerData

All Known Implementing Classes:
Player
Enclosing class:
PlayerStorage

public static interface PlayerStorage.PlayerData


Method Summary
 java.lang.String getCreatureName()
          Get the name of the creature.
 java.util.Map getParameterMap()
          Get unmodifiable version of the parameter map.
 java.lang.Class getParameterType(java.lang.String pName)
          Get type for given parameter in the creature.
 java.lang.String getPassword()
          Get the password.
 void setCreatureData(java.lang.String pName)
          Set information for the player creature.
 void setParameter(java.lang.String pName, java.lang.Object pValue)
          Set value for a parameter in the creature.
 void setPassword(java.lang.String pPassword)
          Set the password for the player.
 

Method Detail

setPassword

public void setPassword(java.lang.String pPassword)
Set the password for the player.

Parameters:
pPassword - The password

getPassword

public java.lang.String getPassword()
Get the password.

setCreatureData

public void setCreatureData(java.lang.String pName)
                     throws StorageException
Set information for the player creature.

Call this before trying to do anything for the parameters.

Parameters:
pName - The name of the creature

getCreatureName

public java.lang.String getCreatureName()
                                 throws StorageException
Get the name of the creature.

getParameterType

public java.lang.Class getParameterType(java.lang.String pName)
Get type for given parameter in the creature.

You must call setCreatureData() before calling this.

Parameters:
pName - The name of the parameter
Returns:
The type or null, if there is no such parameter

setParameter

public void setParameter(java.lang.String pName,
                         java.lang.Object pValue)
                  throws StorageException
Set value for a parameter in the creature.

You must call setCreatureData() before calling this.

Parameters:
pName - Name of the parameter
pValue - Value of the parameter

getParameterMap

public java.util.Map getParameterMap()
Get unmodifiable version of the parameter map.