Package zombie.radio.scripting
Class RadioScript
java.lang.Object
zombie.radio.scripting.RadioScript
public class RadioScript
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RadioScript.ExitOption
-
Constructor Summary
Constructors Constructor Description RadioScript(java.lang.String n, int loopmin, int loopmax)
RadioScript(java.lang.String n, int loopmin, int loopmax, java.lang.String guid)
-
Method Summary
Modifier and Type Method Description void
AddBroadcast(RadioBroadCast broadcast)
void
AddBroadcast(RadioBroadCast broadcast, boolean ignoreTimestamps)
void
AddExitOption(java.lang.String scriptname, int chance, int startdelay)
void
clearExitOptions()
java.util.ArrayList
getBroadcastList()
RadioBroadCast
getCurrentBroadcast()
java.lang.String
GetGUID()
int
getLoopMax()
int
getLoopMin()
java.lang.String
GetName()
RadioScript.ExitOption
getNextScript()
int
getStartDay()
int
getStartDayStamp()
RadioBroadCast
getValidAirBroadcast()
void
Reset()
void
setStartDayStamp(int day)
boolean
UpdateScript(int timeStamp)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
RadioScript
public RadioScript(java.lang.String n, int loopmin, int loopmax) -
RadioScript
public RadioScript(java.lang.String n, int loopmin, int loopmax, java.lang.String guid)
-
-
Method Details
-
GetGUID
public java.lang.String GetGUID() -
GetName
public java.lang.String GetName() -
getStartDayStamp
public int getStartDayStamp() -
getStartDay
public int getStartDay() -
getLoopMin
public int getLoopMin() -
getLoopMax
public int getLoopMax() -
getCurrentBroadcast
-
getBroadcastList
public java.util.ArrayList getBroadcastList() -
clearExitOptions
public void clearExitOptions() -
setStartDayStamp
public void setStartDayStamp(int day) -
getValidAirBroadcast
-
Reset
public void Reset() -
UpdateScript
public boolean UpdateScript(int timeStamp) -
getNextScript
-
AddBroadcast
-
AddBroadcast
-
AddExitOption
public void AddExitOption(java.lang.String scriptname, int chance, int startdelay)
-