SimpleAI
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups Pages
Classes | Macros | Typedefs | Functions | Variables
IProtocolMessage.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <limits.h>
#include <string>
#include <deque>
Include dependency graph for IProtocolMessage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ai::IProtocolMessage
 A protocol message is used for the serialization of the ai states for remote debugging. More...
 

Macros

#define AI_LIL_ENDIAN   1234
 
#define AI_BIG_ENDIAN   4321
 
#define AI_BYTEORDER   AI_LIL_ENDIAN
 
#define AI_SwapLE16(X)   (X)
 
#define AI_SwapLE32(X)   (X)
 
#define AI_SwapLE64(X)   (X)
 
#define AI_SwapBE16(X)   AI_Swap16(X)
 
#define AI_SwapBE32(X)   AI_Swap32(X)
 
#define AI_SwapBE64(X)   AI_Swap64(X)
 
#define PROTO_MSG(name, id)   class name : public IProtocolMessage { public: name() : IProtocolMessage(id) {} }
 

Typedefs

typedef uint8_t ai::ProtocolId
 
typedef std::deque< uint8_t > ai::streamContainer
 

Functions

 ai::PROTO_MSG (AIResetMessage, PROTO_RESET)
 Reset the behaviour tree states for all ai controlled entities.
 
 ai::PROTO_MSG (AIPingMessage, PROTO_PING)
 Protocol keep alive message.
 

Variables

const ProtocolId ai::PROTO_PING = 0
 
const ProtocolId ai::PROTO_STATE = 1
 
const ProtocolId ai::PROTO_CHARACTER_STATIC = 2
 
const ProtocolId ai::PROTO_CHARACTER_DETAILS = 3
 
const ProtocolId ai::PROTO_SELECT = 4
 
const ProtocolId ai::PROTO_PAUSE = 5
 
const ProtocolId ai::PROTO_CHANGE = 6
 
const ProtocolId ai::PROTO_NAMES = 7
 
const ProtocolId ai::PROTO_RESET = 8
 
const ProtocolId ai::PROTO_STEP = 9
 
const ProtocolId ai::PROTO_UPDATENODE = 10
 
const ProtocolId ai::PROTO_DELETENODE = 11
 
const ProtocolId ai::PROTO_ADDNODE = 12