Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Doomwad::HexenMap Class Reference

List of all members.

Detailed Description

Represents a map the user plays in Hexen and ZDoom.

See also:
Blockmap GLMap HexenLinedefs Map Nodes Reject Sectors Segs Sidedefs

Ssectors HexenThings Vertexes

A Map is a collection of Wad entries that represent a single map or level that the user plays on in the game. It contains a bunch of entries in the following order:

Map Entries:
MAPxy or ExMy zero-length header
THINGS
LINEDEFS
SIDEDEFS
VERTEXES
SEGS
SSECTORS
NODES
SECTORS
REJECT
BlOCKMAP
BEHAVIOR

Note the addition of the Behavior resource for compiled scripts, and that some of these resources are not the same as the normal versions. For example, this class uses HexenLinedefs instead of Linedefs.

Additionally, there are several OpenGL node structures that may follow, if the map author built GL nodes:

OpenGL Map Entries:
GL_ExMy or GL_MAPxy marker
GL_VERT
GL_SEGS
GL_SSECT
GL_NODES

Definition at line 232 of file map.hpp.

Public Member Functions

 HexenMap (Wad::const_iterator) throw ()
 Constructor.
 HexenMap (const std::string &=DEFAULT_MAP_NAME, bool=false) throw ()
 "Default" Constructor.
virtual ~HexenMap (void) throw ()
 Destructor.

Public Attributes

byte behavior
 BEHAVIOR placeholder
Blockmap blockmap
 BLOCKMAP
GLMap gl
 OpenGL resources.
bool glEnabled
 Use OpenGL resources for I/O operations?
Linedefs linedefs
 LINEDEFS
std::string name
 Name used when reading and writing to/from disk.
Nodes nodes
 NODES
Reject reject
 REJECT
Sectors sectors
 SECTORS
Segs segs
 SEGS
Sidedefs sidedefs
 SIDEDEFS
Ssectors ssectors
 SSECTORS
Things things
 THINGS
Vertexes vertexes
 VERTEXES

Static Public Attributes

static const std::string DEFAULT_MAP_NAME = "MAP01"
 Name of the default Map as it appears in a Wad.


Constructor & Destructor Documentation

HexenMap::HexenMap const std::string &  newName = DEFAULT_MAP_NAME,
bool  useGL = false
throw ()
 

"Default" Constructor.

Has default values for its parameters.

Parameters:
newName Name of the map, e.g. "MAP01".
useGL Enable OpenGL resources?

Definition at line 94 of file map.cpp.

HexenMap::HexenMap Wad::const_iterator  source  )  throw ()
 

Constructor.

Constructs from an iterator to a Lump in a Wad. Takes that Lump's name, and reads the Lumps following it as its data. Automatically determines if it needs to enable OpenGL.

Parameters:
source Iterator to a map marker in a Wad.

Definition at line 111 of file map.cpp.

HexenMap::~HexenMap void   )  throw () [virtual]
 

Destructor.

Destroys a HexenMap object.

Definition at line 123 of file map.cpp.


Generated on Fri Jun 10 19:38:52 2005 for libdoomwad by  doxygen 1.4.0