Package zombie.radio.scripting
Class RadioScriptManager
java.lang.Object
zombie.radio.scripting.RadioScriptManager
public class RadioScriptManager
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description void
AddChannel(RadioChannel channel, boolean overwrite)
java.util.Map
getChannels()
int
getCurrentTimeStamp()
static RadioScriptManager
getInstance()
static boolean
hasInstance()
void
init(int savedWorldVersion)
void
Load(java.io.BufferedReader r)
void
LoadOLD(java.io.DataInputStream input)
void
PlayerListensChannel(int chanfrequency, boolean mode, boolean sourceIsTV)
void
RemoveChannel(int frequency)
void
reset()
void
Save(java.io.FileWriter w)
void
SaveOLD(java.io.DataOutputStream output)
void
simulateChannelUntil(int frequency, int days, boolean force)
void
simulateScriptsUntil(int days, boolean force)
void
update()
void
UpdateScripts(int day, int hour, int mins)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
hasInstance
public static boolean hasInstance() -
getInstance
-
init
public void init(int savedWorldVersion) -
getChannels
public java.util.Map getChannels() -
simulateScriptsUntil
public void simulateScriptsUntil(int days, boolean force) -
simulateChannelUntil
public void simulateChannelUntil(int frequency, int days, boolean force) -
getCurrentTimeStamp
public int getCurrentTimeStamp() -
PlayerListensChannel
public void PlayerListensChannel(int chanfrequency, boolean mode, boolean sourceIsTV) -
AddChannel
-
RemoveChannel
public void RemoveChannel(int frequency) -
UpdateScripts
public void UpdateScripts(int day, int hour, int mins) -
update
public void update() -
reset
public void reset() -
Save
public void Save(java.io.FileWriter w) throws java.io.IOException- Throws:
java.io.IOException
-
SaveOLD
public void SaveOLD(java.io.DataOutputStream output) throws java.io.IOException- Throws:
java.io.IOException
-
Load
public void Load(java.io.BufferedReader r) throws java.io.IOException- Throws:
java.io.IOException
-
LoadOLD
public void LoadOLD(java.io.DataInputStream input) throws java.io.IOException- Throws:
java.io.IOException
-