Inheritance diagram for Doomwad::Sector:

Definition at line 80 of file sectors.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. | |
| Sector (int16=0, int16=0, const std::string &=NOFLAT, const std::string &=NOFLAT, uint16=0, uint16=0, uint16=0) throw () | |
| Sector 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 | ~Sector (void) throw () |
| Sector destructor. | |
Static Public Member Functions | |
| static uint16 | makeGeneralized (uint16) throw () |
| Make a generalized sector type. | |
Public Attributes | |
| std::string | flat_ceil |
| Ceiling flat name. | |
| std::string | flat_floor |
| Floor flat name. | |
| uint16 | light |
| Light level. | |
| uint16 | tag |
| Linedef tag. | |
| uint16 | type |
| Sector type, i.e. blinks, secret, etc. | |
| int16 | z_ceil |
| Ceiling height. | |
| int16 | z_floor |
| Floor height. | |
Static Public Attributes | |
| static const uint16 | DAMAGE_10 = 0x0040 |
| (Boom Generalized) Causes 10% damage per second. | |
| static const uint16 | DAMAGE_20 = 0x0060 |
| (Boom Generalized) Causes 20% damage per second. | |
| static const uint16 | DAMAGE_5 = 0x0020 |
| (Boom Generalized) Causes 5% damage per second. | |
| static const uint16 | FRICTION = 0x0100 |
| (Boom Generalized) Enable friction. | |
| static const uint16 | GENERALIZED_MASK = 0x01FF |
| Masks the Generalized bits of a type, exposing the standard Doom type bits. | |
| static const uint16 | INVALID = 0xFFFF |
| Invalid Generalized type. | |
| static const size_t | LENGTH = 0x0000001A |
| Length of a single record. | |
| static const uint16 | LIGHT_BLINK_DAMAGE = 0x0004 |
| Blinks and causes damage. | |
| static const uint16 | LIGHT_BLINK_HALF = 0x0002 |
| Blinks on every half second. | |
| static const uint16 | LIGHT_BLINK_HALF_SYNC = 0x000C |
| Blinks on every half second, synchronized with other sectors. | |
| static const uint16 | LIGHT_BLINK_SEC = 0x0003 |
| Blinks on every second. | |
| static const uint16 | LIGHT_BLINK_SEC_SYNC = 0x000D |
| Blinks on every second, synchronized with other sectors. | |
| static const uint16 | LIGHT_FLICKER = 0x0011 |
| Flickers on and off, including intermediate light values. | |
| static const uint16 | LIGHT_OSCILLATE = 0x0008 |
| Oscillates between on and off. | |
| static const uint16 | LIGHT_RANDOM = 0x0001 |
| Sector blinks randomly. | |
| static const uint16 | NO_MOTION_SOUND = 0x0800 |
| (Boom Generalized) Moving floors and ceiling in this sector do not emit sound. | |
| static const uint16 | NO_SOUND = 0x0400 |
| (Boom Generalized) Nothing in this sector emits sound. | |
| static const std::string | NOFLAT = "-" |
| static const uint16 | NORMAL = 0x0000 |
| No sector special effects. | |
| static const uint16 | SECRET = 0x0080 |
| (Boom Generalized) Counts toward the level's secret total. | |
| static const uint16 | WIND = 0x0200 |
| (Boom Generalized) Enable wind. | |
|
||||||||||||||||||||||||||||||||
|
Sector constructor. Constructs a Sector object.
Definition at line 92 of file sectors.cpp. |
|
|
Sector destructor. Destroys a Sector object. Definition at line 101 of file sectors.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 116 of file sectors.cpp. References LENGTH. |
|
|
Make a generalized sector type. This function is not strictly necessary, but does provide error correction for generalized types. Definition at line 165 of file sectors.cpp. |
|
||||||||||||
|
Read this element from a Lump. Read one element from a Lump at the specified index.
Implements Doomwad::WadEntryElement. Definition at line 140 of file sectors.cpp. Referenced by Doomwad::Sectors::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 105 of file sectors.cpp. References flat_ceil, flat_floor, light, tag, type, z_ceil, and z_floor. |
|
||||||||||||
|
Write this element into a Lump. Write one element into a Lump at the specified index.
Implements Doomwad::WadEntryElement. Definition at line 121 of file sectors.cpp. |
|
|
Value of a Sector's flat when there is none. This should never happen, but it needs to be set to something before the user can select one. Definition at line 51 of file sectors.cpp. |
1.4.0