Package zombie.radio.media
Class RecordedMedia
java.lang.Object
zombie.radio.media.RecordedMedia
public class RecordedMedia
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RecordedMedia.MediaNameSorter
-
Field Summary
Fields Modifier and Type Field Description static boolean
DISABLE_LINE_LEARNING
static java.lang.String
SAVE_FILE
static int
VERSION
-
Constructor Summary
Constructors Constructor Description RecordedMedia()
-
Method Summary
Modifier and Type Method Description java.util.ArrayList
getAllMediaForType(byte byte1)
java.util.ArrayList
getCategories()
short
getIndexForMediaData(MediaData mediaData)
MediaData
getMediaData(java.lang.String string)
MediaData
getMediaDataFromIndex(short short1)
static byte
getMediaTypeForCategory(java.lang.String string)
MediaData
getRandomFromCategory(java.lang.String string)
boolean
hasListenedLineAndAdd(java.lang.String string)
boolean
hasListenedToAll(IsoPlayer player, MediaData mediaData)
boolean
hasListenedToLine(IsoPlayer player, java.lang.String string)
void
init()
void
load()
MediaData
register(java.lang.String string, java.lang.String string2, java.lang.String string3, int int1)
void
save()
static java.lang.String
toAscii(java.lang.String string)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DISABLE_LINE_LEARNING
public static boolean DISABLE_LINE_LEARNING -
VERSION
public static final int VERSION- See Also:
- Constant Field Values
-
SAVE_FILE
public static final java.lang.String SAVE_FILE- See Also:
- Constant Field Values
-
-
Constructor Details
-
RecordedMedia
public RecordedMedia()
-
-
Method Details
-
hasListenedLineAndAdd
public boolean hasListenedLineAndAdd(java.lang.String string) -
init
public void init() -
getMediaTypeForCategory
public static byte getMediaTypeForCategory(java.lang.String string) -
getCategories
public java.util.ArrayList getCategories() -
getAllMediaForType
public java.util.ArrayList getAllMediaForType(byte byte1) -
register
public MediaData register(java.lang.String string, java.lang.String string2, java.lang.String string3, int int1) -
getMediaDataFromIndex
-
getIndexForMediaData
-
getMediaData
-
getRandomFromCategory
-
load
public void load() throws java.io.IOException- Throws:
java.io.IOException
-
save
public void save() throws java.io.IOException- Throws:
java.io.IOException
-
toAscii
public static java.lang.String toAscii(java.lang.String string) -
hasListenedToLine
-
hasListenedToAll
-