Package zombie.radio
Class ZomboidRadio
java.lang.Object
zombie.radio.ZomboidRadio
public class ZomboidRadio
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEBUG_MODE
static boolean
DEBUG_SOUND
static boolean
DEBUG_XML
static int
DUMMY_VALUE_NO_LONGER_USED
static boolean
POST_RADIO_SILENCE
static java.lang.String
SAVE_FILE
-
Method Summary
Modifier and Type Method Description void
addChannelName(java.lang.String name, int frequency, java.lang.String category)
void
addChannelName(java.lang.String name, int frequency, java.lang.String category, boolean overwrite)
java.lang.Object
clone()
java.util.ArrayList
getBroadcastDevices()
java.util.Map
GetChannelList(java.lang.String category)
java.lang.String
getChannelName(int frequency)
int
getDaysSinceStart()
java.util.ArrayList
getDevices()
java.util.Map
getFullChannelList()
GameMode
getGameMode()
static ZomboidRadio
getInstance()
java.lang.String
getRandomBzztFzzt()
RadioScriptManager
getScriptManager()
static boolean
hasInstance()
void
Init(int savedWorldVersion)
static boolean
isStaticSound(java.lang.String str)
boolean
Load()
void
PlayerListensChannel(int channel, boolean listenmode, boolean isTV)
void
ReceiveTransmission(int sourceX, int sourceY, int channel, java.lang.String msg, java.lang.String codes, float r, float g, float b, int signalStrength, boolean isTV)
void
RegisterDevice(IsoWaveSignal device)
void
removeChannelName(int frequency)
void
render()
void
Reset()
void
Save()
java.lang.String
scrambleString(java.lang.String msg, int intensity, boolean ignoreBBcode, java.lang.String customScramble)
void
SendTransmission(int sourceX, int sourceY, int channel, java.lang.String msg, java.lang.String codes, float r, float g, float b, int signalStrength, boolean isTV)
void
setHasRecievedServerData(boolean state)
void
UnRegisterDevice(IsoWaveSignal device)
void
update()
void
UpdateScripts(int hour, int mins)
void
WriteRadioServerDataPacket(ByteBufferWriter bb)
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SAVE_FILE
public static final java.lang.String SAVE_FILE- See Also:
- Constant Field Values
-
DUMMY_VALUE_NO_LONGER_USED
public static int DUMMY_VALUE_NO_LONGER_USED -
DEBUG_MODE
public static boolean DEBUG_MODE -
DEBUG_XML
public static boolean DEBUG_XML -
DEBUG_SOUND
public static boolean DEBUG_SOUND -
POST_RADIO_SILENCE
public static boolean POST_RADIO_SILENCE
-
-
Method Details
-
hasInstance
public static boolean hasInstance() -
getInstance
-
isStaticSound
public static boolean isStaticSound(java.lang.String str) -
getScriptManager
-
getDaysSinceStart
public int getDaysSinceStart() -
getDevices
public java.util.ArrayList getDevices() -
getBroadcastDevices
public java.util.ArrayList getBroadcastDevices() -
setHasRecievedServerData
public void setHasRecievedServerData(boolean state) -
addChannelName
public void addChannelName(java.lang.String name, int frequency, java.lang.String category) -
addChannelName
public void addChannelName(java.lang.String name, int frequency, java.lang.String category, boolean overwrite) -
removeChannelName
public void removeChannelName(int frequency) -
GetChannelList
public java.util.Map GetChannelList(java.lang.String category) -
getChannelName
public java.lang.String getChannelName(int frequency) -
getFullChannelList
public java.util.Map getFullChannelList() -
WriteRadioServerDataPacket
-
Init
public void Init(int savedWorldVersion) -
Save
public void Save() throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.FileNotFoundException
java.io.IOException
-
Load
public boolean Load() throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.FileNotFoundException
java.io.IOException
-
Reset
public void Reset() -
UpdateScripts
public void UpdateScripts(int hour, int mins) -
render
public void render() -
update
public void update() -
getGameMode
-
getRandomBzztFzzt
public java.lang.String getRandomBzztFzzt() -
scrambleString
public java.lang.String scrambleString(java.lang.String msg, int intensity, boolean ignoreBBcode, java.lang.String customScramble) -
ReceiveTransmission
public void ReceiveTransmission(int sourceX, int sourceY, int channel, java.lang.String msg, java.lang.String codes, float r, float g, float b, int signalStrength, boolean isTV) -
SendTransmission
public void SendTransmission(int sourceX, int sourceY, int channel, java.lang.String msg, java.lang.String codes, float r, float g, float b, int signalStrength, boolean isTV) -
PlayerListensChannel
public void PlayerListensChannel(int channel, boolean listenmode, boolean isTV) -
RegisterDevice
-
UnRegisterDevice
-
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-