|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.stellarium.command.ScriptMgr
public class ScriptMgr
Field Summary | |
---|---|
private boolean |
allowUI
Allow user interface to function during scripts (except for time related keys which control script playback) |
private StelCommandInterface
|
commander
for executing script commands |
private long |
elapsedTime
ms since last script command executed |
private boolean |
guiDebug
|
private boolean |
playing
is a script playing? |
private boolean |
playPaused
is script playback paused? |
private java.io.Writer |
recFile
|
private long |
recordElapsedTime
ms since last command recorded |
private java.lang.String |
recordFileName
|
private boolean |
recording
is a script being recorded? |
private boolean |
removeableDirectoryMounted
|
private java.lang.String |
removeableScriptDirectory
|
private Script |
script
currently loaded script |
private static java.lang.String
|
STELLARIUM_FILE_PREFIX
|
private static java.lang.String
|
STS_EXTENSION
|
private long |
waitTime
ms until next script command should be executed |
Constructor Summary | |
---|---|
ScriptMgr(StelCommandInterface commandInterface)
|
Method Summary | |
---|---|
(package private) void |
cancelRecordScript()
|
(package private) void |
cancelScript()
delete script object... |
java.lang.String |
getRecordFileName()
|
java.lang.String |
getScriptList(java.lang.String directory)
|
(package private)
java.lang.String |
getScriptPath()
|
boolean |
isAllowUI()
|
boolean |
isGuiDebug()
|
boolean |
isPaused()
|
boolean |
isPlaying()
|
boolean |
isRecording()
|
private void |
mountIfNeeded(java.lang.String scriptFile)
|
(package private) void |
pauseScript()
|
(package private) void |
playScript(java.lang.String scriptFile,
java.lang.String scriptPath)
path is used for loading script assets |
boolean |
playStartupScript()
|
void |
recordCommand(java.lang.String commandline)
|
(package private) void |
recordScript(java.lang.String scriptFilename)
|
(package private) void |
resumeScript()
|
void |
setAllowUI(boolean aui)
|
void |
setGuiDebug(boolean guiDebug)
Should script errors be shown onscreen? |
private void |
unmountIfNeeded()
|
void |
update(int deltaTime)
runs maximum of one command per update note that waits can drift by up to 1/fps seconds |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String STELLARIUM_FILE_PREFIX
private static final java.lang.String STS_EXTENSION
private StelCommandInterface commander
private Script script
private long elapsedTime
private long waitTime
private long recordElapsedTime
private boolean recording
private boolean playing
private boolean playPaused
private java.io.Writer recFile
private java.lang.String recordFileName
private java.lang.String removeableScriptDirectory
private boolean removeableDirectoryMounted
private boolean allowUI
private boolean guiDebug
Constructor Detail |
---|
public ScriptMgr(StelCommandInterface commandInterface)
Method Detail |
---|
void playScript(java.lang.String scriptFile, java.lang.String scriptPath) throws StellariumException
scriptFile
-
scriptPath
-
StellariumException
private void mountIfNeeded(java.lang.String scriptFile) throws StellariumException
StellariumException
void cancelScript()
private void unmountIfNeeded()
void pauseScript() throws StellariumException
StellariumException
void resumeScript() throws StellariumException
StellariumException
void recordScript(java.lang.String scriptFilename)
public void recordCommand(java.lang.String commandline)
void cancelRecordScript() throws StellariumException
StellariumException
public void update(int deltaTime) throws StellariumException
StellariumException
public java.lang.String getScriptList(java.lang.String directory) throws StellariumException
directory
- A given directory
StellariumException
- If the directory is not an existing directory
java.lang.String getScriptPath()
public boolean playStartupScript()
public boolean isPlaying()
public boolean isPaused()
public boolean isRecording()
public java.lang.String getRecordFileName()
public void setAllowUI(boolean aui)
public boolean isAllowUI()
public boolean isGuiDebug()
public void setGuiDebug(boolean guiDebug)
guiDebug
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |