Class RadioScriptManager

java.lang.Object
zombie.radio.scripting.RadioScriptManager

public class RadioScriptManager
extends java.lang.Object
  • Method Details

    • hasInstance

      public static boolean hasInstance()
    • getInstance

      public static RadioScriptManager 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

      public void AddChannel​(RadioChannel channel, boolean overwrite)
    • 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