Inheritance diagram for Doomwad::Switch:

Definition at line 70 of file switches.hpp.
Public Member Functions | |
| virtual size_t | getLength (void) const throw () |
| Get the length of an element. | |
| virtual bool | read (const Lump &lump, Lump::size_type i) throw () |
| Read this element from a Lump. | |
| Switch (const std::string &, const std::string &, int16=DEFAULT) | |
| Constructor. | |
| Switch (void) throw () | |
| Default constructor. | |
| virtual std::string | toString (void) const throw () |
| Convert this element to a string. | |
| virtual bool | write (Lump &lump, Lump::size_type i) const throw () |
| Write this element into a Lump. | |
| virtual | ~Switch (void) throw () |
| Destructor. | |
Public Attributes | |
| std::string | off |
| Texture displayed when the switch is off. | |
| std::string | on |
| Texture displayed when the switch is on. | |
| int16 | type |
| Type, or which versions of Doom this works in. | |
Static Public Attributes | |
| static const int16 | DEFAULT = Switch::DOOM2 |
| Default type. | |
| static const int16 | DOOM = 0x0002 |
| Works with shareware and Ultimate Doom. | |
| static const int16 | DOOM2 = 0x0003 |
| Works with shareware, Ultimate, and Doom 2. | |
| static const size_t | LENGTH = 0x00000014 |
| Length of a Switch record. | |
| static const int16 | SHAREWARE = 0x0001 |
| Works with shareware Doom. | |
| static const int16 | TERMINATE = 0x0000 |
| Marks the end of a Switches resource. | |
|
||||||||||||||||
|
Constructor. The user must specify texture/flat names, the type and speed are optional.
Definition at line 77 of file switches.cpp. |
|
|
Get the length of an element. Each element record type has a length. Some are fixed, in which case this function returns that length. Some records are variable-length, in which case this function returns zero.
Implements Doomwad::WadEntryElement. Definition at line 82 of file switches.cpp. References LENGTH. |
|
||||||||||||
|
Read this element from a Lump. Read one element from a Lump at the specified index.
Implements Doomwad::WadEntryElement. Definition at line 102 of file switches.cpp. Referenced by Doomwad::Switches::setFromLump(). |
|
|
Convert this element to a string. The format of the string will vary from class to class, but every subclass must be able to format itself as a string. IMPORTANT: this string representation is not guaranteed to preserve all data. Reading back in is not supported. This function's goal is to make the object's state user-readable, not machine-readable.
Implements Doomwad::WadEntryElement. Definition at line 117 of file switches.cpp. |
|
||||||||||||
|
Write this element into a Lump. Write one element into a Lump at the specified index.
Implements Doomwad::WadEntryElement. Definition at line 87 of file switches.cpp. |
1.4.0