Inheritance diagram for Doomwad::Thing:

Definition at line 77 of file things.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. | |
| Thing (int16=0, int16=0, uint16=EAST, uint16=0, uint16=0) throw () | |
| Default Thing 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 | ~Thing (void) throw () |
| Thing destructor. | |
Public Attributes | |
| uint16 | angle |
| Angle, 0 is east. Use static constants for best results. | |
| uint16 | flags |
| Flags, for example, deaf, skill level, multiplayer. | |
| uint16 | type |
| Thing type, for example, a player start or a demon. | |
| int16 | x |
| X coordinate. | |
| int16 | y |
| Y coordinate. | |
Static Public Attributes | |
| static const uint16 | BOOM_NOCO = 0x0040 |
| Not in cooperative (Boom). | |
| static const uint16 | BOOM_NODM = 0x0020 |
| Not in deathmatch (Boom). | |
| static const uint16 | DEAF = 0x0008 |
| Deaf. | |
| static const uint16 | EAST = 0x0000 |
| East angle. | |
| static const size_t | LENGTH = 0x0000000A |
| Length of a single record. | |
| static const uint16 | MBF_FRIENDLY = 0x0080 |
| Friendly (MBF). | |
| static const uint16 | MULTI = 0x0010 |
| Multiplayer only. | |
| static const uint16 | NORTH = 0x005A |
| North angle. | |
| static const uint16 | NORTHEAST = 0x002D |
| North East angle. | |
| static const uint16 | NORTHWEST = 0x0087 |
| North West angle. | |
| static const uint16 | SKILL1 = 0x0001 |
| I'm Too Young to Die. | |
| static const uint16 | SKILL2 = 0x0002 |
| Hurt Me Plenty. | |
| static const uint16 | SKILL3 = 0x0004 |
| Ultra-Violence and Nightmare. | |
| static const uint16 | SOUTH = 0x010E |
| South angle. | |
| static const uint16 | SOUTHEAST = 0x013B |
| South East angle. | |
| static const uint16 | SOUTHWEST = 0x00E1 |
| South West angle. | |
| static const uint16 | WEST = 0x00B4 |
| West angle. | |
|
||||||||||||||||||||||||
|
Default Thing constructor. Constructs a new Thing using the given parameters.
Definition at line 92 of file things.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. Reimplemented in Doomwad::HexenThing. Definition at line 103 of file things.cpp. References LENGTH. |
|
||||||||||||
|
Read this element from a Lump. Read one element from a Lump at the specified index.
Implements Doomwad::WadEntryElement. Reimplemented in Doomwad::HexenThing. Definition at line 125 of file things.cpp. Referenced by Doomwad::Things::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. Reimplemented in Doomwad::HexenThing. Definition at line 142 of file things.cpp. |
|
||||||||||||
|
Write this element into a Lump. Write one element into a Lump at the specified index.
Implements Doomwad::WadEntryElement. Reimplemented in Doomwad::HexenThing. Definition at line 108 of file things.cpp. |
1.4.0