DDraceNetwork Docs
antibot_data.h
Go to the documentation of this file.
1#ifndef ANTIBOT_ANTIBOT_DATA_H
2#define ANTIBOT_ANTIBOT_DATA_H
3
4#include <base/vmath.h>
5
6enum
7{
9
12
14};
15
17{
20 unsigned char *m_pTiles;
21};
22
24{
25 char m_aAddress[64];
26};
27
29{
32};
33
34// Defined by the network protocol, unlikely to change.
35//enum
36//{
37// TEAM_SPECTATORS=-1,
38// TEAM_RED=0,
39// TEAM_BLUE=1,
40//};
41
43{
44 char m_aName[16];
46
47 bool m_Alive;
48 bool m_Pause;
49 int m_Team;
50
57};
58
60{
62 int m_Size;
63
70};
71
72#define ANTIBOT_VERSION \
73 { \
74 ANTIBOT_ABI_VERSION, \
75 sizeof(CAntibotVersion), \
76 sizeof(CAntibotData), \
77 sizeof(CAntibotPlayerData), \
78 sizeof(CAntibotCharacterData), \
79 sizeof(CAntibotInputData), \
80 sizeof(CAntibotMapData), \
81 sizeof(CAntibotRoundData), \
82 }
83
85{
87
88 int64_t m_Now;
89 int64_t m_Freq;
90 void (*m_pfnKick)(int ClientId, const char *pMessage, void *pUser);
91 void (*m_pfnLog)(const char *pMessage, void *pUser);
92 void (*m_pfnReport)(int ClientId, const char *pMessage, void *pUser);
93 void (*m_pfnSend)(int ClientId, const void *pData, int DataSize, int Flags, void *pUser);
94 void (*m_pfnTeehistorian)(const void *pData, int DataSize, void *pUser);
95 void *m_pUser;
96};
98{
99 int m_Tick;
103};
104
105#endif // ANTIBOT_ANTIBOT_DATA_H
@ ANTIBOT_MSGFLAG_FLUSH
Definition: antibot_data.h:11
@ ANTIBOT_ABI_VERSION
Definition: antibot_data.h:8
@ ANTIBOT_MSGFLAG_NONVITAL
Definition: antibot_data.h:10
@ ANTIBOT_MAX_CLIENTS
Definition: antibot_data.h:13
Definition: antibot_data.h:43
int m_WeaponChangeTick
Definition: antibot_data.h:56
int m_HookedPlayer
Definition: antibot_data.h:54
int m_Angle
Definition: antibot_data.h:53
int m_SpawnTick
Definition: antibot_data.h:55
int m_Team
Definition: antibot_data.h:49
bool m_Alive
Definition: antibot_data.h:47
char m_aName[16]
Definition: antibot_data.h:44
vec2 m_Pos
Definition: antibot_data.h:51
CAntibotInputData m_aLatestInputs[3]
Definition: antibot_data.h:45
bool m_Pause
Definition: antibot_data.h:48
vec2 m_Vel
Definition: antibot_data.h:52
Definition: antibot_data.h:85
int64_t m_Freq
Definition: antibot_data.h:89
void(* m_pfnReport)(int ClientId, const char *pMessage, void *pUser)
Definition: antibot_data.h:92
CAntibotVersion m_Version
Definition: antibot_data.h:86
void(* m_pfnKick)(int ClientId, const char *pMessage, void *pUser)
Definition: antibot_data.h:90
void(* m_pfnTeehistorian)(const void *pData, int DataSize, void *pUser)
Definition: antibot_data.h:94
void(* m_pfnSend)(int ClientId, const void *pData, int DataSize, int Flags, void *pUser)
Definition: antibot_data.h:93
int64_t m_Now
Definition: antibot_data.h:88
void(* m_pfnLog)(const char *pMessage, void *pUser)
Definition: antibot_data.h:91
void * m_pUser
Definition: antibot_data.h:95
Definition: antibot_data.h:29
int m_TargetY
Definition: antibot_data.h:31
int m_TargetX
Definition: antibot_data.h:30
Definition: antibot_data.h:17
int m_Width
Definition: antibot_data.h:18
unsigned char * m_pTiles
Definition: antibot_data.h:20
int m_Height
Definition: antibot_data.h:19
Definition: antibot_data.h:24
char m_aAddress[64]
Definition: antibot_data.h:25
Definition: antibot_data.h:98
CAntibotPlayerData m_aPlayers[ANTIBOT_MAX_CLIENTS]
Definition: antibot_data.h:100
CAntibotMapData m_Map
Definition: antibot_data.h:102
CAntibotCharacterData m_aCharacters[ANTIBOT_MAX_CLIENTS]
Definition: antibot_data.h:101
int m_Tick
Definition: antibot_data.h:99
Definition: antibot_data.h:60
int m_SizeInputData
Definition: antibot_data.h:67
int m_SizeRoundData
Definition: antibot_data.h:69
int m_AbiVersion
Definition: antibot_data.h:61
int m_SizeData
Definition: antibot_data.h:64
int m_SizeCharacterData
Definition: antibot_data.h:66
int m_SizePlayerData
Definition: antibot_data.h:65
int m_SizeMapData
Definition: antibot_data.h:68
int m_Size
Definition: antibot_data.h:62