|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jurpe.system.commands.GenericCommands jurpe.system.commands.PersistenceCommands
public class PersistenceCommands
Persistence related commands.
CoreCommands
Constructor Summary | |
---|---|
PersistenceCommands()
|
Method Summary | |
---|---|
static HighScores |
loadHighScores()
Loads High Score Table. |
static PCharacter |
loadPC(java.lang.String pcName)
Restore serialized PCharacter. |
static void |
saveHighScores(HighScores hs)
Persist high scores (filename is in Config.xml file) |
static boolean |
savePC(PCharacter pc,
java.lang.String namepath)
Serialize Playing Character and his references (Inventory, Skills and such) Extension is taken from Config file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistenceCommands()
Method Detail |
---|
public static boolean savePC(PCharacter pc, java.lang.String namepath)
pc
- Playing Characternamepath
- complete path where you want to save your character, without
extension.
public static PCharacter loadPC(java.lang.String pcName) throws JurpeException
pcName
- complete path to file with extension.
JurpeException
public static void saveHighScores(HighScores hs)
hs
- High Score TableHighScores
public static HighScores loadHighScores()
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |