DDraceNetwork Documentation
Loading...
Searching...
No Matches
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
32
46
47// Defined by the network protocol, unlikely to change.
48//enum
49//{
50// TEAM_SPECTATORS=-1,
51// TEAM_RED=0,
52// TEAM_BLUE=1,
53//};
54
71
84
85#define ANTIBOT_VERSION \
86 { \
87 ANTIBOT_ABI_VERSION, \
88 sizeof(CAntibotVersion), \
89 sizeof(CAntibotData), \
90 sizeof(CAntibotPlayerData), \
91 sizeof(CAntibotCharacterData), \
92 sizeof(CAntibotInputData), \
93 sizeof(CAntibotMapData), \
94 sizeof(CAntibotRoundData), \
95 }
96
98{
100
101 int64_t m_Now;
102 int64_t m_Freq;
103 void (*m_pfnKick)(int ClientId, const char *pMessage, void *pUser);
104 void (*m_pfnLog)(const char *pMessage, void *pUser);
105 void (*m_pfnReport)(int ClientId, const char *pMessage, void *pUser);
106 void (*m_pfnSend)(int ClientId, const void *pData, int DataSize, int Flags, void *pUser);
107 void (*m_pfnTeehistorian)(const void *pData, int DataSize, void *pUser);
108 void *m_pUser;
109};
117
118#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:56
int m_WeaponChangeTick
Definition antibot_data.h:69
int m_HookedPlayer
Definition antibot_data.h:67
int m_Angle
Definition antibot_data.h:66
int m_SpawnTick
Definition antibot_data.h:68
int m_Team
Definition antibot_data.h:62
bool m_Alive
Definition antibot_data.h:60
char m_aName[16]
Definition antibot_data.h:57
vec2 m_Pos
Definition antibot_data.h:64
CAntibotInputData m_aLatestInputs[3]
Definition antibot_data.h:58
bool m_Pause
Definition antibot_data.h:61
vec2 m_Vel
Definition antibot_data.h:65
Definition antibot_data.h:98
int64_t m_Freq
Definition antibot_data.h:102
void(* m_pfnReport)(int ClientId, const char *pMessage, void *pUser)
Definition antibot_data.h:105
CAntibotVersion m_Version
Definition antibot_data.h:99
void(* m_pfnKick)(int ClientId, const char *pMessage, void *pUser)
Definition antibot_data.h:103
void(* m_pfnTeehistorian)(const void *pData, int DataSize, void *pUser)
Definition antibot_data.h:107
void(* m_pfnSend)(int ClientId, const void *pData, int DataSize, int Flags, void *pUser)
Definition antibot_data.h:106
int64_t m_Now
Definition antibot_data.h:101
void(* m_pfnLog)(const char *pMessage, void *pUser)
Definition antibot_data.h:104
void * m_pUser
Definition antibot_data.h:108
Definition antibot_data.h:34
int m_Jump
Definition antibot_data.h:38
int m_Fire
Definition antibot_data.h:39
int m_TargetY
Definition antibot_data.h:37
int m_PrevWeapon
Definition antibot_data.h:44
int m_WantedWeapon
Definition antibot_data.h:42
int m_PlayerFlags
Definition antibot_data.h:41
int m_TargetX
Definition antibot_data.h:36
int m_Direction
Definition antibot_data.h:35
int m_Hook
Definition antibot_data.h:40
int m_NextWeapon
Definition antibot_data.h:43
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
bool m_Sixup
Definition antibot_data.h:26
bool m_Authed
Definition antibot_data.h:30
bool m_DnsblBlacklisted
Definition antibot_data.h:29
bool m_DnsblNone
Definition antibot_data.h:27
bool m_DnsblPending
Definition antibot_data.h:28
Definition antibot_data.h:111
CAntibotPlayerData m_aPlayers[ANTIBOT_MAX_CLIENTS]
Definition antibot_data.h:113
CAntibotMapData m_Map
Definition antibot_data.h:115
CAntibotCharacterData m_aCharacters[ANTIBOT_MAX_CLIENTS]
Definition antibot_data.h:114
int m_Tick
Definition antibot_data.h:112
Definition antibot_data.h:73
int m_SizeInputData
Definition antibot_data.h:80
int m_SizeRoundData
Definition antibot_data.h:82
int m_AbiVersion
Definition antibot_data.h:74
int m_SizeData
Definition antibot_data.h:77
int m_SizeCharacterData
Definition antibot_data.h:79
int m_SizePlayerData
Definition antibot_data.h:78
int m_SizeMapData
Definition antibot_data.h:81
int m_Size
Definition antibot_data.h:75