|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcage.core.Cage
public class Cage
Cage.java is the entry point into Cage. All production loading and scene changes are handled by this class. Cage is the driver for the separate Engines within the overall application. See documentation on main method for parameters/args.
Constructor Summary | |
---|---|
Cage()
|
Method Summary | |
---|---|
static void |
changeScene(java.lang.String sceneName)
Changes the scene by name lookup. |
static void |
gameLoop(int delay)
|
static Scene |
getCurrentScene()
Returns the scene currently displayed. |
static org.minueto.MinuetoEventQueue |
getQueue()
Returns the event queue for Cage input. |
static void |
main(java.lang.String[] args)
Starts CAGE running. |
static void |
restoreState()
Clears the currently loaded Scenes and loads a set of Scene, Carl game state values and a saved scene location into CAGE, restoring the state from a file output by saveState(). |
static void |
run(java.lang.String productionFile)
This method sets up a production for running and displays it until interuppted or input is given. |
static void |
saveState()
Writes the current state of the game to an XML file. |
static void |
setProductionAuthor(java.lang.String productionAuthor)
Sets the production author. |
static void |
setProductionName(java.lang.String productionName)
Sets the production name. |
static void |
setProductionStart(java.lang.String productionStart)
Sets the production start. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cage()
Method Detail |
---|
public static void run(java.lang.String productionFile)
productionFile
- The production to loadpublic static void setProductionName(java.lang.String productionName)
productionName
- The namepublic static void setProductionStart(java.lang.String productionStart)
productionStart
- The startpublic static void setProductionAuthor(java.lang.String productionAuthor)
productionAuthor
- The authorpublic static Scene getCurrentScene()
public static org.minueto.MinuetoEventQueue getQueue()
public static void changeScene(java.lang.String sceneName)
sceneName
- The scene name to switch to.public static void restoreState()
public static void saveState()
public static void main(java.lang.String[] args)
public static void gameLoop(int delay)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |