Controller::CreateMessage
Defined in:
Called to create a cotroller-defined message.
C4Controller.hPrototype
virtual ControllerMessage *CreateMessage(ControllerMessageType type) const;
Parameters
type |
The controller-specific type of the message to construct. |
Description
The CreateMessage function is called when the Message Manager needs to construct a network message for a particular controller. The overriding implementation should examine the type parameter and return a newly constructed instance of the appropriate message class. If the type is not recognized, then the base class counterpart should be called to construct the message.
See Also
