2013-12-16 09:00:11 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
// Created 2013 by:
|
|
|
|
// [Dennis Andersen], [Linda Andersson]
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
2013-12-09 11:57:34 +01:00
|
|
|
#ifndef GAMEPROTOCOL_PROTOCOL_DEFINITION_ID_H
|
|
|
|
#define GAMEPROTOCOL_PROTOCOL_DEFINITION_ID_H
|
|
|
|
|
|
|
|
/* THERE CAN ABSOLUTLEY NOT BE TWO DEFINITIONS WITH THE SAME ID!! */
|
|
|
|
|
2013-12-18 12:18:01 +01:00
|
|
|
|
2013-12-19 12:32:23 +01:00
|
|
|
/***********************************/
|
2014-01-07 10:26:09 +01:00
|
|
|
/********* RESERVERD PROTOCOLS ***************************************************************************************************/
|
2014-01-21 14:32:42 +01:00
|
|
|
/********** [ 0 - 99 ] *********/
|
2014-01-07 10:26:09 +01:00
|
|
|
#define protocol_RESERVED_MIN 0
|
|
|
|
#define protocol_RESERVED_MAX 99
|
2013-12-16 09:00:11 +01:00
|
|
|
|
2013-12-19 12:32:23 +01:00
|
|
|
/***********************************/
|
2014-01-07 10:26:09 +01:00
|
|
|
/********* GENERAL PROTOCOLS ***************************************************************************************************/
|
2014-01-21 14:32:42 +01:00
|
|
|
/***********[ 100 - 199 ]***********/
|
2014-01-14 09:25:22 +01:00
|
|
|
#define protocol_GeneralMIN 100
|
2014-01-07 10:26:09 +01:00
|
|
|
#define protocol_General_Status 100
|
|
|
|
#define protocol_General_Text 101
|
2014-02-23 18:38:20 +01:00
|
|
|
#define protocol_Broadcast_Test 102
|
2013-12-20 09:42:02 +01:00
|
|
|
#define protocol_GeneralMAX 199
|
2013-12-19 12:32:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************/
|
2014-01-07 10:26:09 +01:00
|
|
|
/********* LOBBY PROTOCOLS ***************************************************************************************************/
|
2014-01-21 14:32:42 +01:00
|
|
|
/***********[ 200 - 299 ]***********/
|
2014-01-07 10:26:09 +01:00
|
|
|
#define protocol_LobbyMIN 200
|
2014-02-14 17:12:38 +01:00
|
|
|
#define protocol_Lobby_CreateGame 200
|
|
|
|
#define protocol_Lobby_StartGame 201
|
|
|
|
#define protocol_Lobby_JoinGame 202
|
2014-01-22 15:22:52 +01:00
|
|
|
#define protocol_Lobby_Login 203
|
|
|
|
#define protocol_Lobby_Refresh 204
|
2014-01-30 14:15:25 +01:00
|
|
|
#define protocol_Lobby_ClientData 205
|
2014-01-22 15:22:52 +01:00
|
|
|
#define protocol_Lobby_GameData 206
|
2014-02-14 17:12:38 +01:00
|
|
|
#define protocol_Lobby_QuerryGameType 207
|
2014-02-16 01:28:34 +01:00
|
|
|
#define protocol_Lobby_ClientReadyState 208
|
2013-12-20 09:42:02 +01:00
|
|
|
#define protocol_LobbyMAX 299
|
2013-12-19 12:32:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************/
|
2014-01-07 10:26:09 +01:00
|
|
|
/********* GAMEPLAY PROTOCOLS ***************************************************************************************************/
|
2014-01-21 14:32:42 +01:00
|
|
|
/***********[ 300 - 399 ]***********/
|
2013-12-20 09:42:02 +01:00
|
|
|
#define protocol_GameplayMIN 300
|
2014-02-11 10:21:47 +01:00
|
|
|
#define protocol_Gameplay_PlayerMovementRight 300
|
|
|
|
#define protocol_Gameplay_PlayerMovementLeft 301
|
|
|
|
#define protocol_Gameplay_PlayerMovementForward 302
|
|
|
|
#define protocol_Gameplay_PlayerMovementBackward 303
|
2014-02-19 13:42:43 +01:00
|
|
|
#define protocol_Gameplay_PlayerLeftTurn 304
|
2014-02-11 10:21:47 +01:00
|
|
|
#define protocol_Gameplay_PlayerChangeWeapon 305
|
|
|
|
#define protocol_Gameplay_PlayerShot 306
|
|
|
|
#define protocol_Gameplay_PlayerJump 307
|
|
|
|
|
|
|
|
#define protocol_Gameplay_ObjectPickup 350
|
|
|
|
#define protocol_Gameplay_ObjectDamage 351
|
|
|
|
#define protocol_Gameplay_ObjectHealthStatus 352
|
|
|
|
#define protocol_Gameplay_ObjectPosition 353
|
|
|
|
#define protocol_Gameplay_ObjectScale 354
|
|
|
|
#define protocol_Gameplay_ObjectRotation 355
|
2014-02-11 13:03:37 +01:00
|
|
|
#define protocol_Gameplay_ObjectPositionRotation 356
|
|
|
|
#define protocol_Gameplay_ObjectEnabled 357
|
|
|
|
#define protocol_Gameplay_ObjectDisabled 358
|
|
|
|
#define protocol_Gameplay_ObjectCreate 359
|
2014-02-25 16:26:37 +01:00
|
|
|
#define protocol_Gameplay_ObjectDelete 360
|
|
|
|
#define protocol_Gameplay_ObjectCreatePlayer 361
|
|
|
|
#define protocol_Gameplay_ObjectJoinTeam 362
|
|
|
|
#define protocol_Gameplay_ObjectLeaveTeam 363
|
|
|
|
#define protocol_Gameplay_ObjectWeaponCooldown 364
|
|
|
|
#define protocol_Gameplay_ObjectWeaponEnergy 365
|
|
|
|
#define protocol_Gameplay_ObjectRespawn 366
|
|
|
|
#define protocol_Gameplay_ObjectDie 367
|
|
|
|
#define protocol_Gameplay_ObjectDisconnectPlayer 368
|
|
|
|
#define protocol_Gameplay_ObjectAction 369
|
2014-02-26 10:05:07 +01:00
|
|
|
#define protocol_Gameplay_ObjectCollision 370
|
2013-12-20 09:42:02 +01:00
|
|
|
#define protocol_GameplayMAX 399
|
|
|
|
|
|
|
|
|
|
|
|
/************************************/
|
2014-01-07 10:26:09 +01:00
|
|
|
/*********** PROTOCOL MACROS ***************************************************************************************************/
|
2013-12-20 09:42:02 +01:00
|
|
|
/************************************/
|
2014-02-12 09:02:44 +01:00
|
|
|
|
2013-12-20 09:42:02 +01:00
|
|
|
inline bool ProtocolIsLobby(short ID) { return (ID >= protocol_LobbyMIN && ID <= protocol_LobbyMAX); }
|
|
|
|
inline bool ProtocolIsGeneral(short ID) { return (ID >= protocol_GeneralMIN && ID <= protocol_GeneralMAX); }
|
|
|
|
inline bool ProtocolIsGameplay(short ID) { return (ID >= protocol_GameplayMIN && ID <= protocol_GameplayMAX); }
|
|
|
|
|
2013-12-09 11:57:34 +01:00
|
|
|
#endif // !GAMEPROTOCOL_PROTOCOL_DEFINITION_ID_H
|