Reorder game files

This commit is contained in:
Yamagi Burmeister 2011-10-06 07:54:45 +00:00
parent 4063056f75
commit 91ffbf0ba5
73 changed files with 106 additions and 108 deletions

View file

@ -11,7 +11,6 @@
# # # #
# Dependencies: # # Dependencies: #
# - SDL 1.2 # # - SDL 1.2 #
# - libX11 #
# - libGL # # - libGL #
# - libvorbis # # - libvorbis #
# - libogg # # - libogg #
@ -69,11 +68,6 @@ else ifeq ($(OSTYPE),FreeBSD)
LDFLAGS := -L/usr/local/lib -lm LDFLAGS := -L/usr/local/lib -lm
endif endif
# ----------
# Converter rule
# ---------- # ----------
# Builds everything # Builds everything
@ -188,36 +182,36 @@ BASEQ2_OBJS_ = \
src/game/baseq2/g_turret.o \ src/game/baseq2/g_turret.o \
src/game/baseq2/g_utils.o \ src/game/baseq2/g_utils.o \
src/game/baseq2/g_weapon.o \ src/game/baseq2/g_weapon.o \
src/game/baseq2/m_actor.o \
src/game/baseq2/m_berserk.o \
src/game/baseq2/m_boss2.o \
src/game/baseq2/m_boss3.o \
src/game/baseq2/m_boss31.o \
src/game/baseq2/m_boss32.o \
src/game/baseq2/m_brain.o \
src/game/baseq2/m_chick.o \
src/game/baseq2/m_flash.o \ src/game/baseq2/m_flash.o \
src/game/baseq2/m_flipper.o \
src/game/baseq2/m_float.o \
src/game/baseq2/m_flyer.o \
src/game/baseq2/m_gladiator.o \
src/game/baseq2/m_gunner.o \
src/game/baseq2/m_hover.o \
src/game/baseq2/m_infantry.o \
src/game/baseq2/m_insane.o \
src/game/baseq2/m_medic.o \
src/game/baseq2/m_move.o \
src/game/baseq2/m_mutant.o \
src/game/baseq2/m_parasite.o \
src/game/baseq2/m_soldier.o \
src/game/baseq2/m_supertank.o \
src/game/baseq2/m_tank.o \
src/game/baseq2/p_client.o \
src/game/baseq2/p_hud.o \
src/game/baseq2/p_trail.o \
src/game/baseq2/p_view.o \
src/game/baseq2/p_weapon.o \
src/game/baseq2/q_shared.o \ src/game/baseq2/q_shared.o \
src/game/baseq2/monster/actor/actor.o \
src/game/baseq2/monster/berserker/berserker.o \
src/game/baseq2/monster/boss2/boss2.o \
src/game/baseq2/monster/boss3/boss3.o \
src/game/baseq2/monster/boss3/boss31.o \
src/game/baseq2/monster/boss3/boss32.o \
src/game/baseq2/monster/brain/brain.o \
src/game/baseq2/monster/chick/chick.o \
src/game/baseq2/monster/flipper/flipper.o \
src/game/baseq2/monster/float/float.o \
src/game/baseq2/monster/flyer/flyer.o \
src/game/baseq2/monster/gladiator/gladiator.o \
src/game/baseq2/monster/gunner/gunner.o \
src/game/baseq2/monster/hover/hover.o \
src/game/baseq2/monster/infantry/infantry.o \
src/game/baseq2/monster/insane/insane.o \
src/game/baseq2/monster/medic/medic.o \
src/game/baseq2/monster/misc/move.o \
src/game/baseq2/monster/mutant/mutant.o \
src/game/baseq2/monster/parasite/parasite.o \
src/game/baseq2/monster/soldier/soldier.o \
src/game/baseq2/monster/supertank/supertank.o \
src/game/baseq2/monster/tank/tank.o \
src/game/baseq2/player/client.o \
src/game/baseq2/player/hud.o \
src/game/baseq2/player/trail.o \
src/game/baseq2/player/view.o \
src/game/baseq2/player/weapon.o \
src/game/baseq2/savegame/savegame.o src/game/baseq2/savegame/savegame.o
# Used by the client # Used by the client

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
extern cvar_t *maxclients; extern cvar_t *maxclients;

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
void void
UpdateChaseCam(edict_t *ent) UpdateChaseCam(edict_t *ent)

View file

@ -24,8 +24,8 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
#include "m_player.h" #include "monster/header/player.h"
char * char *
ClientTeam(edict_t *ent) ClientTeam(edict_t *ent)

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
/* /*
* Returns true if the inflictor can * Returns true if the inflictor can

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
/* /*
* ========================================================= * =========================================================

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
#define HEALTH_IGNORE_MAX 1 #define HEALTH_IGNORE_MAX 1
#define HEALTH_TIMED 2 #define HEALTH_TIMED 2

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
game_locals_t game; game_locals_t game;
level_locals_t level; level_locals_t level;

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
int gibsthisframe = 0; int gibsthisframe = 0;
int lastgibframe = 0; int lastgibframe = 0;

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
void monster_start_go(edict_t *self); void monster_start_go(edict_t *self);

View file

@ -25,7 +25,7 @@
*/ */
#include "g_local.h" #include "header/local.h"
#define STOP_EPSILON 0.1 #define STOP_EPSILON 0.1
#define MAX_CLIP_PLANES 5 #define MAX_CLIP_PLANES 5

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
typedef struct typedef struct
{ {

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
#define MAX_IPFILTERS 1024 #define MAX_IPFILTERS 1024

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
/* /*
* QUAKED target_temp_entity (1 0 0) (-8 -8 -8) (8 8 8) * QUAKED target_temp_entity (1 0 0) (-8 -8 -8) (8 8 8)

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
#define PUSH_ONCE 1 #define PUSH_ONCE 1

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
void infantry_die(edict_t *self, edict_t *inflictor, edict_t *attacker, void infantry_die(edict_t *self, edict_t *inflictor, edict_t *attacker,
int damage); int damage);

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
#define MAXCHOICES 8 #define MAXCHOICES 8

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "header/local.h"
/* /*
* This is a support routine used when a client is firing * This is a support routine used when a client is firing

View file

@ -24,7 +24,10 @@
* ======================================================================= * =======================================================================
*/ */
#include "q_shared.h" #ifndef GAME_LOCAL_H
#define GAME_LOCAL_H
#include "../q_shared.h"
/* define GAME_INCLUDE so that game.h does not define the /* define GAME_INCLUDE so that game.h does not define the
short, server-visible gclient_t and edict_t structures, short, server-visible gclient_t and edict_t structures,
@ -1124,3 +1127,4 @@ struct edict_s
#include "g_ctf.h" #include "g_ctf.h"
#endif #endif
#endif /* GAME_LOCAL_H */

View file

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
// g_actor.c // g_actor.c
#include "g_local.h" #include "../../header/local.h"
#include "m_actor.h" #include "actor.h"
#define MAX_ACTOR_NAMES 8 #define MAX_ACTOR_NAMES 8
char *actor_names[MAX_ACTOR_NAMES] = char *actor_names[MAX_ACTOR_NAMES] =

View file

@ -25,8 +25,8 @@ BERSERK
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_berserk.h" #include "berserker.h"
static int sound_pain; static int sound_pain;

View file

@ -25,8 +25,8 @@ boss2
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_boss2.h" #include "boss2.h"
void BossExplode (edict_t *self); void BossExplode (edict_t *self);

View file

@ -25,8 +25,8 @@ boss3
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_boss32.h" #include "boss32.h"
void Use_Boss3 (edict_t *ent, edict_t *other, edict_t *activator) void Use_Boss3 (edict_t *ent, edict_t *other, edict_t *activator)
{ {

View file

@ -25,8 +25,8 @@ jorg
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_boss31.h" #include "boss31.h"
extern void SP_monster_makron (edict_t *self); extern void SP_monster_makron (edict_t *self);
qboolean visible (edict_t *self, edict_t *other); qboolean visible (edict_t *self, edict_t *other);

View file

@ -25,8 +25,8 @@ Makron -- Final Boss
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_boss32.h" #include "boss32.h"
qboolean visible (edict_t *self, edict_t *other); qboolean visible (edict_t *self, edict_t *other);

View file

@ -25,8 +25,8 @@ brain
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_brain.h" #include "brain.h"
static int sound_chest_open; static int sound_chest_open;

View file

@ -25,8 +25,8 @@ chick
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_chick.h" #include "chick.h"
qboolean visible (edict_t *self, edict_t *other); qboolean visible (edict_t *self, edict_t *other);

View file

@ -25,8 +25,8 @@ FLIPPER
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_flipper.h" #include "flipper.h"
static int sound_chomp; static int sound_chomp;

View file

@ -25,8 +25,8 @@ floater
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_float.h" #include "float.h"
static int sound_attack2; static int sound_attack2;

View file

@ -25,8 +25,8 @@ flyer
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_flyer.h" #include "flyer.h"
qboolean visible (edict_t *self, edict_t *other); qboolean visible (edict_t *self, edict_t *other);

View file

@ -25,8 +25,8 @@ GLADIATOR
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_gladiator.h" #include "gladiator.h"
static int sound_pain1; static int sound_pain1;

View file

@ -25,8 +25,8 @@ GUNNER
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_gunner.h" #include "gunner.h"
static int sound_pain; static int sound_pain;

View file

@ -25,8 +25,8 @@ hover
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_hover.h" #include "hover.h"
qboolean visible (edict_t *self, edict_t *other); qboolean visible (edict_t *self, edict_t *other);

View file

@ -25,8 +25,8 @@ INFANTRY
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_infantry.h" #include "infantry.h"
void InfantryMachineGun (edict_t *self); void InfantryMachineGun (edict_t *self);

View file

@ -25,8 +25,8 @@ insane
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_insane.h" #include "insane.h"
static int sound_fist; static int sound_fist;

View file

@ -25,8 +25,8 @@ MEDIC
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_medic.h" #include "medic.h"
qboolean visible (edict_t *self, edict_t *other); qboolean visible (edict_t *self, edict_t *other);

View file

@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
// m_move.c -- monster movement // m_move.c -- monster movement
#include "g_local.h" #include "../../header/local.h"
#define STEPSIZE 18 #define STEPSIZE 18

View file

@ -25,8 +25,8 @@ mutant
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_mutant.h" #include "mutant.h"
static int sound_swing; static int sound_swing;

View file

@ -25,8 +25,8 @@ parasite
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_parasite.h" #include "parasite.h"
static int sound_pain1; static int sound_pain1;

View file

@ -25,8 +25,8 @@ SOLDIER
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_soldier.h" #include "soldier.h"
static int sound_idle; static int sound_idle;

View file

@ -25,8 +25,8 @@ SUPERTANK
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_supertank.h" #include "supertank.h"
qboolean visible (edict_t *self, edict_t *other); qboolean visible (edict_t *self, edict_t *other);

View file

@ -25,8 +25,8 @@ TANK
============================================================================== ==============================================================================
*/ */
#include "g_local.h" #include "../../header/local.h"
#include "m_tank.h" #include "tank.h"
void tank_refire_rocket (edict_t *self); void tank_refire_rocket (edict_t *self);

View file

@ -24,8 +24,8 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "../header/local.h"
#include "m_player.h" #include "../monster/header/player.h"
void ClientUserinfoChanged(edict_t *ent, char *userinfo); void ClientUserinfoChanged(edict_t *ent, char *userinfo);
void SP_misc_teleporter_dest(edict_t *ent); void SP_misc_teleporter_dest(edict_t *ent);

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "../header/local.h"
void void
MoveClientToIntermission(edict_t *ent) MoveClientToIntermission(edict_t *ent)

View file

@ -24,7 +24,7 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "../header/local.h"
/* /*
* This is a circular list containing the a list of points of where * This is a circular list containing the a list of points of where

View file

@ -24,8 +24,8 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "../header/local.h"
#include "m_player.h" #include "../monster/header/player.h"
static edict_t *current_player; static edict_t *current_player;
static gclient_t *current_client; static gclient_t *current_client;

View file

@ -24,8 +24,8 @@
* ======================================================================= * =======================================================================
*/ */
#include "g_local.h" #include "../header/local.h"
#include "m_player.h" #include "../monster/header/player.h"
#define FRAME_FIRE_FIRST (FRAME_ACTIVATE_LAST + 1) #define FRAME_FIRE_FIRST (FRAME_ACTIVATE_LAST + 1)
#define FRAME_IDLE_FIRST (FRAME_FIRE_LAST + 1) #define FRAME_IDLE_FIRST (FRAME_FIRE_LAST + 1)

View file

@ -64,7 +64,7 @@
* system and architecture are in the hands of the user. * system and architecture are in the hands of the user.
*/ */
#include "../g_local.h" #include "../header/local.h"
/* /*
* When ever the savegame version * When ever the savegame version

View file

@ -28,7 +28,7 @@
#define SV_SERVER_H #define SV_SERVER_H
#include "../../common/header/common.h" #include "../../common/header/common.h"
#include "../../game/baseq2/game.h" #include "../../game/baseq2/header/game.h"
#define MAX_MASTERS 8 #define MAX_MASTERS 8
#define LATENCY_COUNTS 16 #define LATENCY_COUNTS 16