monrovia.server.core
Interface GameDataStorage.GameData

All Known Implementing Classes:
GameDataImpl
Enclosing class:
GameDataStorage

public static interface GameDataStorage.GameData

Other end loading interface.


Method Summary
 GameDataStorage.ObjectData addAzoic(java.lang.String pName, java.lang.String pImplementation, byte[] pIcon)
          Add a new static map object aka an azoic.
 GameDataStorage.ObjectData addCommand(java.lang.String pName, java.lang.String pImplementation)
          Add a new command type.
 GameDataStorage.ObjectData addCreature(java.lang.String pName, java.lang.String pImplementation, byte[] pIcon)
          Add a new creature.
 GameDataStorage.ObjectData addGround(java.lang.String pName, java.lang.String pImplementation)
          Add a new ground object.
 GameDataStorage.MapData addMapArea(java.lang.String pName, int pWidth, int pHeight, int pDefaultGroundID)
          Add a new map area.
 void setPlayerCreatureImpl(java.lang.String pImplementation)
          Set the class that implements player creature.
 void setWalkImplementation(java.lang.String pImplementation)
          Set the class that implements walking.
 

Method Detail

setWalkImplementation

public void setWalkImplementation(java.lang.String pImplementation)
Set the class that implements walking.

Note: This has no effect, if this is used after first command is added.

Parameters:
pImplementation - The name of the walk implementation

setPlayerCreatureImpl

public void setPlayerCreatureImpl(java.lang.String pImplementation)
Set the class that implements player creature.

Parameters:
pImplementation - The name of the player creature implementation

addGround

public GameDataStorage.ObjectData addGround(java.lang.String pName,
                                            java.lang.String pImplementation)
                                     throws StorageException
Add a new ground object.

Parameters:
pName - Name of the object
pImplementation - Name of the implementing class
Returns:
Pass the loaded object data for this object

addMapArea

public GameDataStorage.MapData addMapArea(java.lang.String pName,
                                          int pWidth,
                                          int pHeight,
                                          int pDefaultGroundID)
Add a new map area.

Parameters:
pName - Name of the map area
pWidth - Width of the area
pHeight - Height of the area
pDefaultGroundID - Default ground
Returns:
Pass the loaded map data for this object.

addCommand

public GameDataStorage.ObjectData addCommand(java.lang.String pName,
                                             java.lang.String pImplementation)
                                      throws StorageException
Add a new command type.

Parameters:
pName - Name of the command. This will appear to the Palm
pImplementation - Name of the implementing class
Returns:
Pass the loaded command data for this object.
Throws:
java.lang.ClassNotFoundException - If the implementation class is not found.

addAzoic

public GameDataStorage.ObjectData addAzoic(java.lang.String pName,
                                           java.lang.String pImplementation,
                                           byte[] pIcon)
                                    throws StorageException
Add a new static map object aka an azoic.

Parameters:
pName - Name of the object
pImplementation - Name of the implementing class
pIcon - The icon to show in the Palm map
Returns:
Pass the loaded object data for this object

addCreature

public GameDataStorage.ObjectData addCreature(java.lang.String pName,
                                              java.lang.String pImplementation,
                                              byte[] pIcon)
                                       throws StorageException
Add a new creature.

Parameters:
pName - name of the object
pImplementation - Name of the implementing class
pIcon - The icon to show in the Palm map
Returns:
Pass the loaded object data for this object