Inheritance diagram for Doomwad::Animation:

ANIMATED Lump.
Definition at line 75 of file animated.hpp.
Public Member Functions | |
| Animation (const std::string &, const std::string &, byte=DEFAULT_TYPE, uint32=DEFAULT_SPEED) | |
| Constructor. | |
| Animation (void) throw () | |
| Default constructor. | |
| 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. | |
| 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 | ~Animation (void) throw () |
| Destructor. | |
Public Attributes | |
| std::string | first |
| First animation in the sequence. | |
| std::string | last |
| Last animation in the sequence. | |
| uint32 | speed |
| Number of frames between animations. | |
| byte | type |
| Animation type. | |
Static Public Attributes | |
| static const uint32 | DEFAULT_SPEED = 0x00000008 |
| Default animation speed when one is not specified. | |
| static const byte | DEFAULT_TYPE = Animation::TEXTURE |
| Default animation type when one is not specified. | |
| static const byte | FLAT = 0x00 |
| This animation describes a floor/ceiling flat. | |
| static const size_t | LENGTH = 0x00000017 |
| Length of an Animation record. | |
| static const byte | TERMINATE = 0xFF |
| This animation is the end of Lump marker. | |
| static const byte | TEXTURE = 0x01 |
| This animation describes a wall texture. | |
|
|
Default constructor. Zeros out the texture/flat names and uses default values for speed and type. Definition at line 63 of file animated.cpp. |
|
||||||||||||||||||||
|
Constructor. The user must specify texture/flat names, the type and speed are optional.
Definition at line 81 of file animated.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 94 of file animated.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 115 of file animated.cpp. Referenced by Doomwad::Animated::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 131 of file animated.cpp. References first, last, speed, and type. Referenced by Doomwad::Animated::toString(). |
|
||||||||||||
|
Write this element into a Lump. Write one element into a Lump at the specified index.
Implements Doomwad::WadEntryElement. Definition at line 99 of file animated.cpp. Referenced by Doomwad::Animated::toLump(). |
1.4.0