|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.huguesjohnson.tiamat.BaseAdventureGame
public abstract class BaseAdventureGame
BaseAdventureGame - abstract class containing functions used by an adventure style game
Nested Class Summary | |
---|---|
static class |
BaseAdventureGame.ConfigKeys
enum containing all supported configuration keys. |
Nested classes/interfaces inherited from interface com.huguesjohnson.tiamat.IAdventureCommands |
---|
IAdventureCommands.Actions, IAdventureCommands.Parameters |
Field Summary | |
---|---|
protected Sequence |
activeSequence
|
protected AudioPlayer |
audioPlayer
|
protected java.lang.String |
baseDataPath
|
protected StringTable |
config
|
protected java.lang.String |
configFilePath
|
protected java.lang.String |
currentAudioFile
|
protected Location |
currentLocation
|
protected java.lang.String |
currentLocationName
|
protected AdventureFrame |
frame
|
protected GameDataManager |
gameDataManager
|
protected java.lang.String |
gameInProgressDataPath
|
protected BaseGameState |
gameState
|
protected java.lang.String |
lastOpenPath
|
protected static java.lang.String |
NULLSTRING
|
protected PlayerCharacter |
player
|
protected GameScript |
script
|
Constructor Summary | |
---|---|
BaseAdventureGame(java.lang.String configFilePath,
AdventureFrame frame)
Create a new instance of BaseAdventureGame. |
Method Summary | |
---|---|
protected abstract Selection[] |
getCustomDefaultMenuSelections()
Returns an array of type Selection containing the custom menu entries. |
abstract java.lang.String |
getTitleScreenText()
Returns the text to display on the title screen. |
void |
loadGame()
|
abstract void |
onExit()
Event that fires when exit is complete. |
protected abstract void |
processCustomGameEvent(Event event)
Process a game event not handled in BaseAdventureGame. |
void |
run()
Starts the thread. |
void |
saveGame()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String configFilePath
protected StringTable config
protected AdventureFrame frame
protected BaseGameState gameState
protected PlayerCharacter player
protected java.lang.String currentAudioFile
protected AudioPlayer audioPlayer
protected java.lang.String gameInProgressDataPath
protected java.lang.String baseDataPath
protected Location currentLocation
protected java.lang.String currentLocationName
protected GameDataManager gameDataManager
protected GameScript script
protected Sequence activeSequence
protected java.lang.String lastOpenPath
protected static final java.lang.String NULLSTRING
Constructor Detail |
---|
public BaseAdventureGame(java.lang.String configFilePath, AdventureFrame frame)
configFilePath
- The path to the configuration file.frame
- The frame for the game.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void saveGame()
public void loadGame()
protected abstract Selection[] getCustomDefaultMenuSelections()
protected abstract void processCustomGameEvent(Event event)
event
- The event to process.public abstract void onExit()
public abstract java.lang.String getTitleScreenText()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |