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 voidAddChannel(RadioChannel channel, boolean overwrite)java.util.MapgetChannels()intgetCurrentTimeStamp()static RadioScriptManagergetInstance()static booleanhasInstance()voidinit(int savedWorldVersion)voidLoad(java.io.BufferedReader r)voidLoadOLD(java.io.DataInputStream input)voidPlayerListensChannel(int chanfrequency, boolean mode, boolean sourceIsTV)voidRemoveChannel(int frequency)voidreset()voidSave(java.io.FileWriter w)voidSaveOLD(java.io.DataOutputStream output)voidsimulateChannelUntil(int frequency, int days, boolean force)voidsimulateScriptsUntil(int days, boolean force)voidupdate()voidUpdateScripts(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
-