|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--monrovia.server.core.GameDataImpl
Loading implementation for the platform end.
Inner Class Summary | |
class |
GameDataImpl.MapDataImpl
|
class |
GameDataImpl.ObjectDataImpl
|
Field Summary | |
static java.lang.String |
DEFAULT_PLAYER_CREATURE
|
static java.lang.String |
DEFAULT_WALK
|
static short[] |
EMPTY_ICON
|
static int |
EMPTY_ICON_ID
|
static short[] |
PLAYER_ICON
|
static int |
PLAYER_ICON_ID
|
Constructor Summary | |
GameDataImpl()
Constructor. |
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. |
void |
addEmbryo(java.lang.String pArea,
Creature pCreature)
|
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 |
check()
|
void |
command(int pID,
Creature pCreature)
|
void |
command(int pID,
Creature pCreature,
int pArg)
|
void |
command(int pID,
Creature pCreature,
int pArg1,
int pArg2)
|
void |
command(int pID,
Creature pCreature,
java.lang.String pArg)
|
Command |
getCommand(java.lang.String pName)
|
java.lang.String |
getPlayerCreatureImpl()
|
java.lang.String |
getWalkImplementation()
|
static byte[] |
iconToByteArray(short[] pIcon)
|
boolean |
isMapArea(java.lang.String pArea)
|
void |
setPlayerCreatureImpl(java.lang.String pPlayerCreatureImpl)
Set the class that implements player creature. |
void |
setWalkImplementation(java.lang.String pWalkImplementation)
Set the class that implements walking. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_WALK
public static final java.lang.String DEFAULT_PLAYER_CREATURE
public static final int EMPTY_ICON_ID
public static final short[] EMPTY_ICON
public static final int PLAYER_ICON_ID
public static final short[] PLAYER_ICON
Constructor Detail |
public GameDataImpl()
Method Detail |
public java.lang.String getWalkImplementation()
public void setWalkImplementation(java.lang.String pWalkImplementation)
GameDataStorage.GameData
Note: This has no effect, if this is used after first command is added.
setWalkImplementation
in interface GameDataStorage.GameData
monrovia.server.core.GameDataStorage.GameData
pImplementation
- The name of the walk implementationpublic java.lang.String getPlayerCreatureImpl()
public void setPlayerCreatureImpl(java.lang.String pPlayerCreatureImpl)
GameDataStorage.GameData
setPlayerCreatureImpl
in interface GameDataStorage.GameData
monrovia.server.core.GameDataStorage.GameData
pImplementation
- The name of the player creature
implementationpublic GameDataStorage.ObjectData addGround(java.lang.String pName, java.lang.String pImplementation) throws StorageException
GameDataStorage.GameData
addGround
in interface GameDataStorage.GameData
monrovia.server.core.GameDataStorage.GameData
pName
- Name of the objectpImplementation
- Name of the implementing classpublic GameDataStorage.MapData addMapArea(java.lang.String pName, int pWidth, int pHeight, int pDefaultGroundID)
GameDataStorage.GameData
addMapArea
in interface GameDataStorage.GameData
monrovia.server.core.GameDataStorage.GameData
pName
- Name of the map areapWidth
- Width of the areapHeight
- Height of the areapDefaultGroundID
- Default groundpublic GameDataStorage.ObjectData addCommand(java.lang.String pName, java.lang.String pImplementation) throws StorageException
GameDataStorage.GameData
addCommand
in interface GameDataStorage.GameData
monrovia.server.core.GameDataStorage.GameData
pName
- Name of the command. This will appear to the PalmpImplementation
- Name of the implementing classjava.lang.ClassNotFoundException
- If the implementation class
is not found.public GameDataStorage.ObjectData addAzoic(java.lang.String pName, java.lang.String pImplementation, byte[] pIcon) throws StorageException
GameDataStorage.GameData
addAzoic
in interface GameDataStorage.GameData
monrovia.server.core.GameDataStorage.GameData
pName
- Name of the objectpImplementation
- Name of the implementing classpIcon
- The icon to show in the Palm mappublic GameDataStorage.ObjectData addCreature(java.lang.String pName, java.lang.String pImplementation, byte[] pIcon) throws StorageException
GameDataStorage.GameData
addCreature
in interface GameDataStorage.GameData
monrovia.server.core.GameDataStorage.GameData
pName
- name of the objectpImplementation
- Name of the implementing classpIcon
- The icon to show in the Palm mappublic void check() throws StorageException
public boolean isMapArea(java.lang.String pArea)
public void addEmbryo(java.lang.String pArea, Creature pCreature)
public void command(int pID, Creature pCreature)
public void command(int pID, Creature pCreature, int pArg)
public void command(int pID, Creature pCreature, int pArg1, int pArg2)
public void command(int pID, Creature pCreature, java.lang.String pArg)
public Command getCommand(java.lang.String pName)
public static byte[] iconToByteArray(short[] pIcon)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |