Class Switches.Entry
java.lang.Object
net.mtrop.doom.texture.Switches.Entry
- All Implemented Interfaces:
BinaryObject
- Enclosing class:
Switches
Entry for Switches.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.mtrop.doom.object.BinaryObject
BinaryObject.InlineScanner<BO extends BinaryObject>, BinaryObject.Reflect, BinaryObject.Scanner<BO extends BinaryObject>, BinaryObject.Shared, BinaryObject.Transformer<BO extends BinaryObject> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetGame()voidreadBytes(InputStream in) Reads from anInputStreamand sets this object's fields.toString()voidwriteBytes(OutputStream out) Writes this object to anOutputStream.
-
Field Details
-
LENGTH
public static final int LENGTHLength of a single entry in bytes.- See Also:
-
offName
The "off" texture name. -
onName
The "on" texture name. -
game
The game that this is used for.
-
-
Method Details
-
getOffName
- Returns:
- the switch "off" position texture.
-
getOnName
- Returns:
- the switch "on" position texture.
-
getGame
- Returns:
- the active game type of the switch.
-
readBytes
Description copied from interface:BinaryObjectReads from anInputStreamand sets this object's fields. Only reads the amount of bytes that it takes to read a single instance of the object. Note that not every object may have a consistent length!- Specified by:
readBytesin interfaceBinaryObject- Parameters:
in- theInputStreamto read from.- Throws:
IOException- if a read error occurs.
-
writeBytes
Description copied from interface:BinaryObjectWrites this object to anOutputStream.- Specified by:
writeBytesin interfaceBinaryObject- Parameters:
out- theOutputStreamto write to.- Throws:
IOException- if a write error occurs.
-
toString
-