SimpleAI
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
ai::ProtocolMessageFactory Class Reference
Inheritance diagram for ai::ProtocolMessageFactory:
[legend]
Collaboration diagram for ai::ProtocolMessageFactory:
[legend]

Public Member Functions

bool isNewMessageAvailable (const streamContainer &in) const
 Checks whether a new message is available in the stream.
 
IProtocolMessagecreate (streamContainer &in)
 Call this only if isNewMessageAvailable returned true on the same streamContainer before! More...
 

Static Public Member Functions

static ProtocolMessageFactoryget ()
 

Member Function Documentation

IProtocolMessage* ai::ProtocolMessageFactory::create ( streamContainer &  in)
inline

Call this only if isNewMessageAvailable returned true on the same streamContainer before!

Note
Don't free this pointer, it reuses memory for each new protocol message

The documentation for this class was generated from the following file: