mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-04-22 17:00:53 +00:00
Added include guards to all game and ui headers.
This commit is contained in:
parent
ea956a8d21
commit
1494913f18
25 changed files with 130 additions and 2 deletions
|
@ -14,6 +14,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef AI_CHAT_H_
|
||||
#define AI_CHAT_H_
|
||||
|
||||
//
|
||||
int BotChat_EnterGame(bot_state_t *bs);
|
||||
//
|
||||
|
@ -43,3 +46,6 @@ int BotValidChatPosition(bot_state_t *bs);
|
|||
//! test the initial bot chats
|
||||
void BotChatTest(bot_state_t *bs);
|
||||
|
||||
#endif /* AI_CHAT_H_ */
|
||||
|
||||
|
||||
|
|
|
@ -14,8 +14,14 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef AI_CMD_H_
|
||||
#define AI_CMD_H_
|
||||
|
||||
#include "g_local.h"
|
||||
|
||||
int32_t BotMatchMessage(bot_state_t *bs, char *message);
|
||||
void BotPrintTeamGoal(bot_state_t *bs);
|
||||
|
||||
#endif /* AI_CMD_H_ */
|
||||
|
||||
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef AI_DMNET_H_
|
||||
#define AI_DMNET_H_
|
||||
|
||||
#define MAX_NODESWITCHES 50
|
||||
|
||||
void AIEnter_Intermission(bot_state_t *bs);
|
||||
|
@ -43,3 +46,6 @@ int AINode_Battle_NBG(bot_state_t *bs);
|
|||
void BotResetNodeSwitches(void);
|
||||
void BotDumpNodeSwitches(bot_state_t *bs);
|
||||
|
||||
#endif /* AI_DMNET_H_ */
|
||||
|
||||
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef AI_DMQ3_H_
|
||||
#define AI_DMQ3_H_
|
||||
|
||||
//!setup the deathmatch AI
|
||||
void BotSetupDeathmatchAI(void);
|
||||
//!shutdown the deathmatch AI
|
||||
|
@ -132,3 +135,5 @@ extern vmCvar_t bot_challenge;
|
|||
extern bot_goal_t ctf_redflag;
|
||||
extern bot_goal_t ctf_blueflag;
|
||||
|
||||
#endif /* AI_DMQ3_H_ */
|
||||
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef AI_MAIN_H_
|
||||
#define AI_AMIN_H_
|
||||
|
||||
//#define DEBUG
|
||||
#define CTF
|
||||
|
||||
|
@ -224,3 +227,7 @@ int BotAI_GetClientState( int clientNum, playerState_t *state );
|
|||
int BotAI_GetEntityState( int entityNum, entityState_t *state );
|
||||
int BotAI_GetSnapshotEntity( int clientNum, int sequence, entityState_t *state );
|
||||
int BotTeamLeader(bot_state_t *bs);
|
||||
|
||||
#endif /* AI_AMIN_H_ */
|
||||
|
||||
|
||||
|
|
|
@ -14,6 +14,12 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef AI_TEAM_H_
|
||||
#define AI_TEAM_H_
|
||||
|
||||
void BotTeamAI(bot_state_t *bs);
|
||||
int BotGetTeamMateCTFPreference(bot_state_t *bs, int teammate);
|
||||
void BotSetTeamMateCTFPreference(bot_state_t *bs, int teammate, int preference);
|
||||
|
||||
#endif AI_TEAM_H_
|
||||
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef BE_AAS_H_
|
||||
#define BE_AAS_H_
|
||||
|
||||
#ifndef MAX_STRINGFIELD
|
||||
#define MAX_STRINGFIELD 80
|
||||
#endif
|
||||
|
@ -163,3 +166,6 @@ typedef struct aas_altroutegoal_s
|
|||
unsigned short goaltraveltime;
|
||||
unsigned short extratraveltime;
|
||||
} aas_altroutegoal_t;
|
||||
|
||||
#endif /* BE_AAS_H_ */
|
||||
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef BE_AI_CHAR_H_
|
||||
#define BE_AI_CHAR_H_
|
||||
|
||||
//!loads a bot character from a file
|
||||
int BotLoadCharacter(char *charfile, int skill);
|
||||
//!frees a bot character
|
||||
|
@ -30,3 +33,6 @@ int Characteristic_BInteger(int character, int index, int min, int max);
|
|||
void Characteristic_String(int character, int index, char *buf, int size);
|
||||
//!free cached bot characters
|
||||
void BotShutdownCharacters(void);
|
||||
|
||||
#endif /* BE_AI_CHAR_H_ */
|
||||
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef BE_AI_CHAT_H_
|
||||
#define BE_AI_CHAT_H_
|
||||
|
||||
#define MAX_MESSAGE_SIZE 256
|
||||
#define MAX_CHATTYPE_NAME 32
|
||||
#define MAX_MATCHVARIABLES 8
|
||||
|
@ -95,3 +98,6 @@ void BotSetChatGender(int chatstate, int gender);
|
|||
//!store the bot name in the chat state
|
||||
void BotSetChatName(int chatstate, char *name);
|
||||
|
||||
#endif /* BE_AI_CHAT_H_ */
|
||||
|
||||
|
||||
|
|
|
@ -14,4 +14,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef BE_AI_GEN_H_
|
||||
#define BE_AU_GEN_H_
|
||||
|
||||
int GeneticParentsAndChildSelection(int numranks, float *ranks, int *parent1, int *parent2, int *child);
|
||||
|
||||
#endif /* BE_AU_GEN_H_ */
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef BE_AI_GOAL_H_
|
||||
#define BE_AI_GOAL_H_
|
||||
|
||||
#define MAX_AVOIDGOALS 64
|
||||
#define MAX_GOALSTACK 8
|
||||
|
||||
|
@ -93,3 +96,6 @@ void BotFreeGoalState(int handle);
|
|||
int BotSetupGoalAI(void);
|
||||
//!shut down the goal AI
|
||||
void BotShutdownGoalAI(void);
|
||||
|
||||
#endif /* BE_AI_GOAL_H_ */
|
||||
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef BE_AI_MOVE_H
|
||||
#define BE_AI_MOVE_H
|
||||
|
||||
//movement types
|
||||
#define MOVE_WALK 1
|
||||
#define MOVE_CROUCH 2
|
||||
|
@ -106,3 +109,4 @@ int BotSetupMoveAI(void);
|
|||
//!shutdown movement AI
|
||||
void BotShutdownMoveAI(void);
|
||||
|
||||
#endif /* BE_AI_MOVE_H */
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef BE_AI_WEAP_H_
|
||||
#define BE_AI_WEAP_H_
|
||||
|
||||
//projectile flags
|
||||
#define PFL_WINDOWDAMAGE 1 //!<projectile damages through window
|
||||
#define PFL_RETURN 2 //!<set when projectile returns to owner
|
||||
|
@ -86,3 +89,5 @@ int BotAllocWeaponState(void);
|
|||
void BotFreeWeaponState(int weaponstate);
|
||||
//!resets the whole weapon state
|
||||
void BotResetWeaponState(int weaponstate);
|
||||
|
||||
#endif /* BE_AI_WEAP_H_ */
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef BE_EA_H_
|
||||
#define BE_EA_H_
|
||||
|
||||
//ClientCommand elementary actions
|
||||
void EA_Say(int client, char *str);
|
||||
void EA_SayTeam(int client, char *str);
|
||||
|
@ -50,3 +53,5 @@ void EA_ResetInput(int client);
|
|||
//setup and shutdown routines
|
||||
int EA_Setup(void);
|
||||
void EA_Shutdown(void);
|
||||
|
||||
#endif /* BE_EA_H_ */
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
// This file is NOT included on native builds
|
||||
|
||||
#ifndef BG_LIB_H_
|
||||
#define BG_LIB_H_
|
||||
|
||||
#ifdef Q3_VM
|
||||
#error "Q3_VM is defined - QVMs are no longer supported by RPG-X2"
|
||||
|
||||
|
@ -71,3 +74,5 @@ int abs( int n );
|
|||
double fabs( double x );
|
||||
|
||||
#endif // Q3_VM
|
||||
|
||||
#endif /* BG_LIB_H_ */
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef BOTLIB_H_
|
||||
#define BOTLIB_H_
|
||||
|
||||
#define BOTLIB_API_VERSION 2
|
||||
|
||||
struct aas_clientmove_s;
|
||||
|
@ -473,3 +476,4 @@ name: default: module(s): description:
|
|||
|
||||
*/
|
||||
|
||||
#endif /* BOTLIB_H_ */
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
// Tab Size: 4 (real tabs)
|
||||
//===========================================================================
|
||||
|
||||
#ifndef CHARS_H_
|
||||
#define CHARS_H_
|
||||
|
||||
//========================================================
|
||||
//========================================================
|
||||
|
@ -123,3 +125,4 @@
|
|||
//how much the bot fires it's weapon
|
||||
#define CHARACTERISTIC_FIRETHROTTLE 47 //float [0, 1]
|
||||
|
||||
#endif /* CHARS_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef G_BREAKABLE_H_
|
||||
#define G_BREAKABLE_H_
|
||||
|
||||
void breakable_use(gentity_t *self, gentity_t *other, gentity_t *activator);
|
||||
void breakable_pain( gentity_t *self, gentity_t *attacker, int32_t damage );
|
||||
//static void InitBBrush ( gentity_t *ent );
|
||||
|
||||
#endif /* G_BREAKABLE_H_ */
|
||||
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
//
|
||||
// g_groups.h -- local definitions for game module group collections
|
||||
|
||||
#ifndef G_GROUPS_H_
|
||||
#define G_GROUPS_H_
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char name[128];
|
||||
|
@ -15,3 +18,6 @@ extern int group_count;
|
|||
/*@shared@*/ /*@null@*/ extern char *G_searchGroupList(const char *name);
|
||||
|
||||
#define MAX_SKINS_FOR_RACE 128
|
||||
|
||||
#endif /* G_GROUPS_H_ */
|
||||
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
// g_public.h -- game module information visible to server
|
||||
|
||||
#ifndef G_PUBLIC_H_
|
||||
#define G_PUBLIC_H_
|
||||
|
||||
#define GAME_API_VERSION 7
|
||||
|
||||
// entity->svFlags
|
||||
|
@ -418,3 +421,4 @@ typedef enum {
|
|||
BOTAI_START_FRAME // ( int time );
|
||||
} gameExport_t;
|
||||
|
||||
#endif /* G_PUBLIC_H_ */
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
// Copyright (C) 1999-2000 Id Software, Inc.
|
||||
//
|
||||
|
||||
#ifndef G_TEAM_H_
|
||||
#define G_TEAM_H_
|
||||
|
||||
// Prototypes
|
||||
const char *TeamName(int team);
|
||||
const char *OtherTeamName(int team);
|
||||
const char *TeamColorString(int team);
|
||||
|
||||
#endif /* G_TEAM_H_ */
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
// Copyright (C) 1999-2000 Id Software, Inc.
|
||||
//
|
||||
|
||||
#ifndef INV_H_
|
||||
#define INV_H_
|
||||
|
||||
#define INVENTORY_NONE 0
|
||||
|
||||
|
@ -107,3 +109,5 @@
|
|||
#define MODELINDEX_HYPO 37
|
||||
#define MODELINDEX_ASSIMILATOR 38
|
||||
#define MODELINDEX_BORG_WEAPON 39
|
||||
|
||||
#endif /* INV_H_ */
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
// Tab Size: 4 (real tabs)
|
||||
//===========================================================================
|
||||
|
||||
#ifndef MATCH_H_
|
||||
#define MATCH_H_
|
||||
|
||||
//match template contexts
|
||||
#define MTCONTEXT_ENTERGAME 2
|
||||
#define MTCONTEXT_INITIALTEAMCHAT 4
|
||||
|
@ -109,4 +112,4 @@
|
|||
#define NAME 6
|
||||
#define MORE 6
|
||||
|
||||
|
||||
#endif /* MATCH_H_ */
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
// Notes: -
|
||||
//===========================================================================
|
||||
|
||||
#ifndef SYN_H_
|
||||
#define SYN_H_
|
||||
|
||||
#define CONTEXT_ALL 0xFFFFFFFF
|
||||
#define CONTEXT_NORMAL 1
|
||||
#define CONTEXT_NEARBYITEM 2
|
||||
|
@ -18,3 +21,5 @@
|
|||
#define CONTEXT_REPLY 16
|
||||
|
||||
#define CONTEXT_NAMES 1024
|
||||
|
||||
#endif /* SYN_H_ */
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
// Current version of holomatch game
|
||||
|
||||
#ifndef STV_VERSION_H_
|
||||
#define STV_VERSION_H_
|
||||
|
||||
#define Q3_VERSION "RPG-X V 2.3 CB 4"
|
||||
|
||||
#endif /* STV_VERSION_H_ */
|
||||
|
||||
// end
|
||||
|
|
Loading…
Reference in a new issue