#include <Windows.h>#include "Genesis.h"Go to the source code of this file.
|
||||||||||||
|
Definition at line 132 of file BUFFER.C. References Buffer_Data::Data, GE_FALSE, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, and Buffer_Data::Size. Referenced by Client_SendMove(), and FillBufferWithPlayerData().
00133 {
00134 geVec3d *Data;
00135
00136 assert(Buffer->Pos + (int32)sizeof(geVec3d) < Buffer->Size);
00137
00138 if (Buffer->Pos + (int32)sizeof(geVec3d) >= Buffer->Size)
00139 return GE_FALSE;
00140
00141 Data = (geVec3d*)&Buffer->Data[Buffer->Pos];
00142
00143 *Data = Angle;
00144
00145 Buffer->Pos += sizeof(geVec3d);
00146
00147 return GE_TRUE;
00148 }
|
|
||||||||||||
|
Definition at line 183 of file BUFFER.C. References Buffer_Data::Data, GE_FALSE, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, and Buffer_Data::Size. Referenced by Client_SendMove(), NetMgr_SendClientMessage(), and NetMgr_SendServerMessage().
00184 {
00185 int32 i;
00186
00187 assert(Buffer2->Pos + Buffer1->Pos < Buffer1->Size);
00188
00189 if (Buffer2->Pos + Buffer1->Pos >= Buffer1->Size)
00190 return GE_FALSE;
00191
00192 for (i=0; i< Buffer2->Pos; i++)
00193 Buffer1->Data[Buffer1->Pos++] = Buffer2->Data[i];
00194
00195 return GE_TRUE;
00196 }
|
|
||||||||||||
|
||||||||||||||||
|
Definition at line 198 of file BUFFER.C. References Buffer_Data::Data, GE_FALSE, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, and Buffer_Data::Size.
|
|
||||||||||||
|
Definition at line 95 of file BUFFER.C. References Buffer_Data::Data, GE_FALSE, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, and Buffer_Data::Size. Referenced by Client_SendMove(), FillBufferWithPlayerData(), SendClientPlayerData(), and SendPlayersToClients().
00096 {
00097 float *Data;
00098
00099 assert(Buffer->Pos + (int32)sizeof(float) < Buffer->Size);
00100
00101 if (Buffer->Pos + (int32)sizeof(float) >= Buffer->Size)
00102 return GE_FALSE;
00103
00104 Data = (float*)&Buffer->Data[Buffer->Pos];
00105
00106 *Data = Float;
00107
00108 Buffer->Pos += sizeof(float);
00109
00110 return GE_TRUE;
00111 }
|
|
||||||||||||||||
|
Definition at line 113 of file BUFFER.C. References Buffer_Data::Data, GE_FALSE, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, Buffer_Data::Size, and uint16. Referenced by FillBufferWithPlayerData().
00114 {
00115 uint16 *Data;
00116
00117 assert(Float <= Max);
00118 assert(Buffer->Pos + (int32)sizeof(uint16) < Buffer->Size);
00119
00120 if (Buffer->Pos + (int32)sizeof(uint16) >= Buffer->Size)
00121 return GE_FALSE;
00122
00123 Data = (uint16*)&Buffer->Data[Buffer->Pos];
00124
00125 *Data = (uint16)((Float/Max)*65535);
00126
00127 Buffer->Pos += sizeof(uint16);
00128
00129 return GE_TRUE;
00130 }
|
|
||||||||||||
|
Definition at line 59 of file BUFFER.C. References Buffer_Data::Data, GE_FALSE, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, Buffer_Data::Size, and uint32. Referenced by Server_ClientConnect().
00060 {
00061 uint32 *Data;
00062
00063 assert(Buffer->Pos + (int32)sizeof(uint32) < Buffer->Size);
00064
00065 if (Buffer->Pos + (int32)sizeof(uint32) >= Buffer->Size)
00066 return GE_FALSE;
00067
00068 Data = (uint32*)&Buffer->Data[Buffer->Pos];
00069
00070 *Data = Long;
00071
00072 Buffer->Pos += sizeof(uint32);
00073
00074 return GE_TRUE;
00075 }
|
|
||||||||||||
|
Definition at line 150 of file BUFFER.C. References Buffer_Data::Data, GE_FALSE, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, and Buffer_Data::Size. Referenced by FillBufferWithPlayerData(), Server_PlaySound(), and Server_SpawnFx().
00151 {
00152 geVec3d *Data;
00153
00154 assert(Buffer->Pos + (int32)sizeof(geVec3d) < Buffer->Size);
00155
00156 if (Buffer->Pos + (int32)sizeof(geVec3d) >= Buffer->Size)
00157 return GE_FALSE;
00158
00159 Data = (geVec3d*)&Buffer->Data[Buffer->Pos];
00160
00161 *Data = Pos;
00162
00163 Buffer->Pos += sizeof(geVec3d);
00164
00165 return GE_TRUE;
00166 }
|
|
||||||||||||
|
Definition at line 41 of file BUFFER.C. References Buffer_Data::Data, GE_FALSE, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, Buffer_Data::Size, and uint16. Referenced by Client_SendMove(), FillBufferWithPlayerData(), Server_PlaySound(), Server_SetClientInventory(), Server_SetClientWeapon(), and Server_SetViewPlayer().
00042 {
00043 uint16 *Data;
00044
00045 assert(Buffer->Pos + (int32)sizeof(uint16) < Buffer->Size);
00046
00047 if (Buffer->Pos + (int32)sizeof(uint16) >= Buffer->Size)
00048 return GE_FALSE;
00049
00050 Data = (uint16*)&Buffer->Data[Buffer->Pos];
00051
00052 *Data = Short;
00053
00054 Buffer->Pos += sizeof(uint16);
00055
00056 return GE_TRUE;
00057 }
|
|
||||||||||||
|
Definition at line 77 of file BUFFER.C. References Buffer_Data::Data, GE_FALSE, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, and Buffer_Data::Size. Referenced by Client_ChangeNetState(), FillBufferWithClientInfo(), Server_ChangeClientState(), Server_SendClientCurrentWorldData(), Server_SetClientHealth(), Server_SetClientScore(), and Server_ValidateClient().
00078 {
00079 int32 *Data;
00080
00081 assert(Buffer->Pos + (int32)sizeof(int32) < Buffer->Size);
00082
00083 if (Buffer->Pos + (int32)sizeof(int32) >= Buffer->Size)
00084 return GE_FALSE;
00085
00086 Data = (int32*)&Buffer->Data[Buffer->Pos];
00087
00088 *Data = Long;
00089
00090 Buffer->Pos += sizeof(int32);
00091
00092 return GE_TRUE;
00093 }
|
|
||||||||||||
|
Definition at line 168 of file BUFFER.C. References Buffer_Data::Data, GE_FALSE, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, and Buffer_Data::Size. Referenced by FillBufferWithClientInfo(), Server_ConsoleHeaderPrintf(), and Server_SendClientCurrentWorldData().
00169 {
00170 int32 i;
00171
00172 assert(Buffer->Pos + (int32)strlen((char*)Str)+1 < Buffer->Size);
00173
00174 if (Buffer->Pos + (int32)strlen((char*)Str)+1 >= Buffer->Size)
00175 return GE_FALSE;
00176
00177 for (i=0; i< (int32)strlen((char*)Str)+1; i++)
00178 Buffer->Data[Buffer->Pos++] = Str[i];
00179
00180 return GE_TRUE;
00181 }
|
|
||||||||||||
|
Definition at line 283 of file BUFFER.C. References Buffer_Data::Data, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, and Buffer_Data::Size. Referenced by Client_ParsePlayerData(), and ParseClientMove().
|
|
||||||||||||
|
Definition at line 213 of file BUFFER.C. References Buffer_Data::Data, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, Buffer_Data::Size, and uint8. Referenced by Client_ParsePlayerData(), ParseClientMessage(), and ReadServerMessages().
|
|
||||||||||||||||
|
Definition at line 321 of file BUFFER.C. References Buffer_Data::Data, GE_TRUE, geBoolean, int32, and Buffer_Data::Pos.
|
|
||||||||||||
|
Definition at line 257 of file BUFFER.C. References Buffer_Data::Data, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, and Buffer_Data::Size. Referenced by Client_ParsePlayerData(), ParseClientMove(), and ReadServerMessages().
|
|
||||||||||||||||
|
Definition at line 268 of file BUFFER.C. References Buffer_Data::Data, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, Buffer_Data::Size, and uint16. Referenced by Client_ParsePlayerData().
|
|
||||||||||||
|
Definition at line 235 of file BUFFER.C. References Buffer_Data::Data, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, Buffer_Data::Size, and uint32. Referenced by ReadServerMessages().
|
|
||||||||||||
|
Definition at line 294 of file BUFFER.C. References Buffer_Data::Data, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, and Buffer_Data::Size. Referenced by Client_ParsePlayerData(), and ReadServerMessages().
|
|
||||||||||||
|
Definition at line 224 of file BUFFER.C. References Buffer_Data::Data, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, Buffer_Data::Size, and uint16. Referenced by Client_ParsePlayerData(), ParseClientMove(), and ReadServerMessages().
|
|
||||||||||||
|
Definition at line 246 of file BUFFER.C. References Buffer_Data::Data, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, and Buffer_Data::Size. Referenced by ParseClientMessage(), and ReadServerMessages().
|
|
||||||||||||
|
Definition at line 305 of file BUFFER.C. References Buffer_Data::Data, GE_TRUE, geBoolean, int32, Buffer_Data::Pos, Buffer_Data::Size, and uint8. Referenced by ReadServerMessages().
|
|
||||||||||||||||
1.3.2