codemp/game/botlib.h File Reference

Go to the source code of this file.

Data Structures

struct  aas_export_s
struct  ai_export_s
struct  bot_entitystate_s
struct  bot_input_s
struct  botlib_export_s
struct  botlib_import_s
struct  bsp_surface_s
struct  bsp_trace_s
struct  ea_export_s

Defines

#define BOTLIB_API_VERSION   2
#define BOTFILESBASEFOLDER   "botfiles"
#define LINECOLOR_NONE   -1
#define LINECOLOR_RED   1
#define LINECOLOR_GREEN   2
#define LINECOLOR_BLUE   3
#define LINECOLOR_YELLOW   4
#define LINECOLOR_ORANGE   5
#define PRT_MESSAGE   1
#define PRT_WARNING   2
#define PRT_ERROR   3
#define PRT_FATAL   4
#define PRT_EXIT   5
#define CMS_NORMAL   0
#define CMS_CHAT   1
#define BLERR_NOERROR   0
#define BLERR_LIBRARYNOTSETUP   1
#define BLERR_INVALIDENTITYNUMBER   2
#define BLERR_NOAASFILE   3
#define BLERR_CANNOTOPENAASFILE   4
#define BLERR_WRONGAASFILEID   5
#define BLERR_WRONGAASFILEVERSION   6
#define BLERR_CANNOTREADAASLUMP   7
#define BLERR_CANNOTLOADICHAT   8
#define BLERR_CANNOTLOADITEMWEIGHTS   9
#define BLERR_CANNOTLOADITEMCONFIG   10
#define BLERR_CANNOTLOADWEAPONWEIGHTS   11
#define BLERR_CANNOTLOADWEAPONCONFIG   12
#define ACTION_ATTACK   0x0000001
#define ACTION_USE   0x0000002
#define ACTION_RESPAWN   0x0000008
#define ACTION_JUMP   0x0000010
#define ACTION_MOVEUP   0x0000020
#define ACTION_CROUCH   0x0000080
#define ACTION_MOVEDOWN   0x0000100
#define ACTION_MOVEFORWARD   0x0000200
#define ACTION_MOVEBACK   0x0000800
#define ACTION_MOVELEFT   0x0001000
#define ACTION_MOVERIGHT   0x0002000
#define ACTION_DELAYEDJUMP   0x0008000
#define ACTION_TALK   0x0010000
#define ACTION_GESTURE   0x0020000
#define ACTION_WALK   0x0080000
#define ACTION_FORCEPOWER   0x0100000
#define ACTION_ALT_ATTACK   0x0200000

Typedefs

typedef bot_input_s bot_input_t
typedef bsp_surface_s bsp_surface_t
typedef bsp_trace_s bsp_trace_t
typedef bot_entitystate_s bot_entitystate_t
typedef botlib_import_s botlib_import_t
typedef aas_export_s aas_export_t
typedef ea_export_s ea_export_t
typedef ai_export_s ai_export_t
typedef botlib_export_s botlib_export_t

Functions

botlib_export_tGetBotLibAPI (int apiVersion, botlib_import_t *import)


Define Documentation

#define ACTION_ALT_ATTACK   0x0200000
 

Definition at line 82 of file botlib.h.

Referenced by BotInputToUserCommand().

#define ACTION_ATTACK   0x0000001
 

Definition at line 66 of file botlib.h.

Referenced by BotInputToUserCommand(), and BotUpdateInput().

#define ACTION_CROUCH   0x0000080
 

Definition at line 71 of file botlib.h.

Referenced by BotInputToUserCommand().

#define ACTION_DELAYEDJUMP   0x0008000
 

Definition at line 77 of file botlib.h.

Referenced by BotInputToUserCommand().

#define ACTION_FORCEPOWER   0x0100000
 

Definition at line 81 of file botlib.h.

Referenced by BotInputToUserCommand().

#define ACTION_GESTURE   0x0020000
 

Definition at line 79 of file botlib.h.

Referenced by BotInputToUserCommand().

#define ACTION_JUMP   0x0000010
 

Definition at line 69 of file botlib.h.

Referenced by BotInputToUserCommand().

#define ACTION_MOVEBACK   0x0000800
 

Definition at line 74 of file botlib.h.

Referenced by BotInputToUserCommand().

#define ACTION_MOVEDOWN   0x0000100
 

Definition at line 72 of file botlib.h.

#define ACTION_MOVEFORWARD   0x0000200
 

Definition at line 73 of file botlib.h.

Referenced by BotInputToUserCommand().

#define ACTION_MOVELEFT   0x0001000
 

Definition at line 75 of file botlib.h.

Referenced by BotInputToUserCommand().

#define ACTION_MOVERIGHT   0x0002000
 

Definition at line 76 of file botlib.h.

Referenced by BotInputToUserCommand().

#define ACTION_MOVEUP   0x0000020
 

Definition at line 70 of file botlib.h.

#define ACTION_RESPAWN   0x0000008
 

Definition at line 68 of file botlib.h.

Referenced by BotInputToUserCommand(), and BotUpdateInput().

#define ACTION_TALK   0x0010000
 

Definition at line 78 of file botlib.h.

#define ACTION_USE   0x0000002
 

Definition at line 67 of file botlib.h.

Referenced by BotInputToUserCommand().

#define ACTION_WALK   0x0080000
 

Definition at line 80 of file botlib.h.

Referenced by BotInputToUserCommand().

#define BLERR_CANNOTLOADICHAT   8
 

Definition at line 59 of file botlib.h.

#define BLERR_CANNOTLOADITEMCONFIG   10
 

Definition at line 61 of file botlib.h.

#define BLERR_CANNOTLOADITEMWEIGHTS   9
 

Definition at line 60 of file botlib.h.

#define BLERR_CANNOTLOADWEAPONCONFIG   12
 

Definition at line 63 of file botlib.h.

#define BLERR_CANNOTLOADWEAPONWEIGHTS   11
 

Definition at line 62 of file botlib.h.

#define BLERR_CANNOTOPENAASFILE   4
 

Definition at line 55 of file botlib.h.

#define BLERR_CANNOTREADAASLUMP   7
 

Definition at line 58 of file botlib.h.

#define BLERR_INVALIDENTITYNUMBER   2
 

Definition at line 53 of file botlib.h.

#define BLERR_LIBRARYNOTSETUP   1
 

Definition at line 52 of file botlib.h.

#define BLERR_NOAASFILE   3
 

Definition at line 54 of file botlib.h.

#define BLERR_NOERROR   0
 

Definition at line 51 of file botlib.h.

#define BLERR_WRONGAASFILEID   5
 

Definition at line 56 of file botlib.h.

#define BLERR_WRONGAASFILEVERSION   6
 

Definition at line 57 of file botlib.h.

#define BOTFILESBASEFOLDER   "botfiles"
 

Definition at line 30 of file botlib.h.

#define BOTLIB_API_VERSION   2
 

Definition at line 16 of file botlib.h.

#define CMS_CHAT   1
 

Definition at line 48 of file botlib.h.

#define CMS_NORMAL   0
 

Definition at line 47 of file botlib.h.

#define LINECOLOR_BLUE   3
 

Definition at line 35 of file botlib.h.

#define LINECOLOR_GREEN   2
 

Definition at line 34 of file botlib.h.

#define LINECOLOR_NONE   -1
 

Definition at line 32 of file botlib.h.

#define LINECOLOR_ORANGE   5
 

Definition at line 37 of file botlib.h.

#define LINECOLOR_RED   1
 

Definition at line 33 of file botlib.h.

#define LINECOLOR_YELLOW   4
 

Definition at line 36 of file botlib.h.

#define PRT_ERROR   3
 

Definition at line 42 of file botlib.h.

#define PRT_EXIT   5
 

Definition at line 44 of file botlib.h.

#define PRT_FATAL   4
 

Definition at line 43 of file botlib.h.

Referenced by BotAI(), and BotAISetupClient().

#define PRT_MESSAGE   1
 

Definition at line 40 of file botlib.h.

#define PRT_WARNING   2
 

Definition at line 41 of file botlib.h.


Typedef Documentation

typedef struct aas_export_s aas_export_t
 

typedef struct ai_export_s ai_export_t
 

typedef struct bot_entitystate_s bot_entitystate_t
 

typedef struct bot_input_s bot_input_t
 

Referenced by BotInputToUserCommand(), and BotUpdateInput().

typedef struct botlib_export_s botlib_export_t
 

typedef struct botlib_import_s botlib_import_t
 

typedef struct bsp_surface_s bsp_surface_t
 

typedef struct bsp_trace_s bsp_trace_t
 

typedef struct ea_export_s ea_export_t
 


Function Documentation

botlib_export_t* GetBotLibAPI int  apiVersion,
botlib_import_t import