summaryrefslogtreecommitdiff
path: root/src/doom/doomdef.h
diff options
context:
space:
mode:
authorSimon Howard2008-09-10 18:45:53 +0000
committerSimon Howard2008-09-10 18:45:53 +0000
commit154d9d8024ffad9027981eb586913d14c6c50d60 (patch)
treeb01a4e3f4d46b2fe8ae3a209aad5b7c0f151e87c /src/doom/doomdef.h
parent580372cddbb04538da69a3936f670f7128765c4b (diff)
downloadchocolate-doom-154d9d8024ffad9027981eb586913d14c6c50d60.tar.gz
chocolate-doom-154d9d8024ffad9027981eb586913d14c6c50d60.tar.bz2
chocolate-doom-154d9d8024ffad9027981eb586913d14c6c50d60.zip
Split off game mode/mission/version definitions into common code, along
with various netgame constants. Subversion-branch: /branches/raven-branch Subversion-revision: 1218
Diffstat (limited to 'src/doom/doomdef.h')
-rw-r--r--src/doom/doomdef.h50
1 files changed, 2 insertions, 48 deletions
diff --git a/src/doom/doomdef.h b/src/doom/doomdef.h
index 6db199d4..7df8acd5 100644
--- a/src/doom/doomdef.h
+++ b/src/doom/doomdef.h
@@ -31,7 +31,9 @@
#include <stdio.h>
#include <string.h>
+#include "doomtype.h"
#include "i_timer.h"
+#include "d_mode.h"
//
// Global parameters/defines.
@@ -43,42 +45,6 @@
#define DOOM_191_VERSION 111
-// Game mode handling - identify IWAD version
-// to handle IWAD dependend animations etc.
-typedef enum
-{
- shareware, // DOOM 1 shareware, E1, M9
- registered, // DOOM 1 registered, E3, M27
- commercial, // DOOM 2 retail, E1 M34
- // DOOM 2 german edition not handled
- retail, // DOOM 1 retail, E4, M36
- indetermined // Well, no IWAD found.
-
-} GameMode_t;
-
-
-// Mission packs - might be useful for TC stuff?
-typedef enum
-{
- doom, // DOOM 1
- doom2, // DOOM 2
- pack_tnt, // TNT mission pack
- pack_plut, // Plutonia pack
- none
-
-} GameMission_t;
-
-// What version are we emulating?
-
-typedef enum
-{
- exe_doom_1_9, // Doom 1.9: used for shareware, registered and commercial
- exe_ultimate, // Ultimate Doom (retail)
- exe_final, // Final Doom
- exe_chex, // Chex Quest executable (based on Final Doom)
-} GameVersion_t;
-
-
// If rangecheck is undefined,
// most parameter validation debugging code will not be compiled
#define RANGECHECK
@@ -106,18 +72,6 @@ typedef enum
// Deaf monsters/do not react to sound.
#define MTF_AMBUSH 8
-typedef enum
-{
- sk_noitems = -1, // the "-skill 0" hack
- sk_baby = 0,
- sk_easy,
- sk_medium,
- sk_hard,
- sk_nightmare
-} skill_t;
-
-
-
//
// Key cards.