Skip to content

Commit

Permalink
WadMapConverter: Removed the now unused maplumpinfo.h
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Dec 20, 2013
1 parent 18c1459 commit 6aff847
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 69 deletions.
4 changes: 3 additions & 1 deletion doomsday/plugins/wadmapconverter/include/id1map.h
Expand Up @@ -20,7 +20,7 @@
#ifndef WADMAPCONVERTER_ID1MAP_H
#define WADMAPCONVERTER_ID1MAP_H

#include "maplumpinfo.h"
#include "id1map_util.h"
#include <de/Error>
#include <de/String>
#include <de/StringPool>
Expand All @@ -47,9 +47,11 @@ class Id1Map
/// Logical map format identifiers.
enum Format {
UnknownFormat = -1,

DoomFormat,
HexenFormat,
Doom64Format,

MapFormatCount
};

Expand Down
36 changes: 35 additions & 1 deletion doomsday/plugins/wadmapconverter/include/id1map_util.h
Expand Up @@ -22,9 +22,43 @@
#ifndef WADMAPCONVERTER_ID1MAP_UTIL
#define WADMAPCONVERTER_ID1MAP_UTIL

#include "id1map.h"
#include <de/String>

/**
* Logical map data lump identifier (unique).
*/
enum MapLumpType {
ML_INVALID = -1,
FIRST_MAPLUMP_TYPE = 0,
ML_THINGS = FIRST_MAPLUMP_TYPE, ///< Monsters, items..
ML_LINEDEFS, ///< Line definitions.
ML_SIDEDEFS, ///< Side definitions.
ML_VERTEXES, ///< Vertices.
ML_SEGS, ///< BSP subsector segments.
ML_SSECTORS, ///< BSP subsectors (open).
ML_NODES, ///< BSP nodes.
ML_SECTORS, ///< Sectors.
ML_REJECT, ///< LUT, sector-sector visibility
ML_BLOCKMAP, ///< LUT, motion clipping, walls/grid element.
ML_BEHAVIOR, ///< ACS Scripts (compiled).
ML_SCRIPTS, ///< ACS Scripts (source).
ML_LIGHTS, ///< Surface color tints.
ML_MACROS, ///< DOOM64 format, macro scripts.
ML_LEAFS, ///< DOOM64 format, segs (closed subsectors).
ML_GLVERT, ///< GL vertexes.
ML_GLSEGS, ///< GL segs.
ML_GLSSECT, ///< GL subsectors.
ML_GLNODES, ///< GL nodes.
ML_GLPVS, ///< GL PVS dataset.
NUM_MAPLUMP_TYPES
};

/**
* Helper macro for determining whether a value can be interpreted as a logical
* map lump type identifier (see MapLumpType).
*/
#define VALID_MAPLUMPTYPE(v) ((v) >= FIRST_MAPLUMP_TYPE && (v) < NUM_MAPLUMP_TYPES)

/**
* Determine type of a named map data lump.
* @param name Name of the data lump.
Expand Down
63 changes: 0 additions & 63 deletions doomsday/plugins/wadmapconverter/include/maplumpinfo.h

This file was deleted.

Expand Up @@ -21,7 +21,6 @@
*/

#include "wadmapconverter.h"
#include "maplumpinfo.h"
#include <de/Log>

using namespace de;
Expand Down
3 changes: 1 addition & 2 deletions doomsday/plugins/wadmapconverter/src/id1map_util.cpp
Expand Up @@ -20,8 +20,7 @@
* 02110-1301 USA</small>
*/

#include "wadmapconverter.h"
#include "maplumpinfo.h"
#include "id1map_util.h"
#include <de/libdeng2.h>

using namespace de;
Expand Down
1 change: 0 additions & 1 deletion doomsday/plugins/wadmapconverter/wadmapconverter.pro
Expand Up @@ -20,7 +20,6 @@ HEADERS += \
include/id1map_datatypes.h \
include/id1map_load.h \
include/id1map_util.h \
include/maplumpinfo.h \
include/version.h \
include/wadmapconverter.h

Expand Down

0 comments on commit 6aff847

Please sign in to comment.