MercuryMessageHandler Class Reference

Multipurpose message transport system. More...

#include <MercuryMessages.h>

Inheritance diagram for MercuryMessageHandler:

Inheritance graph
[legend]
Collaboration diagram for MercuryMessageHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void Message (int Message, PStack &data, const MString &name)
 Receive message (When subscribing to messages, you receive them via this command).
void RegisterMessage (int messageID, const MString &name)
 Register this object for message 'name' and return an ID messageID.
void UnregisterMessage (int messageID, const MString &name)
 CLASS_RTTI (MercuryMessageHandler, MercuryCommandHandler)

Static Public Member Functions

static void ProcessMessage (const MString &name, void *mudata, PStack &data)
 [internal] Process message internally from system. DO NOT OVERRIDE THIS.

Private Attributes

MDeque< MAutoPtr< MercuryMessageObjectSubscription > > m_lCallbacks

Detailed Description

Multipurpose message transport system.

Definition at line 121 of file MercuryMessages.h.


Member Function Documentation

virtual void MercuryMessageHandler::Message ( int  Message,
PStack data,
const MString name 
) [inline, virtual]

Receive message (When subscribing to messages, you receive them via this command).

Reimplemented in BetaBetaMari, ExplodingCokeCan, MercuryMaterial, MercuryNetClient, MercuryParticleField, MercuryScreen, MercurySprite, MercuryText, MercuryTexture, MercuryTextureManager, MercuryWindow, Projectile, RaceCar, ScreenCopper, ScreenDebugOverlay, ScreenExample2DSS, ScreenFPS, ScreenFPS2, ScreenGameForBlind, ScreenHelloWorld, ScreenJunq, MercuryTextPrompt, ScreenMapEditor, ScreenRallyRace, ScreenSound, ScreenTest, and ScreenHgTitle.

Definition at line 125 of file MercuryMessages.h.

void MercuryMessageHandler::ProcessMessage ( const MString name,
void *  mudata,
PStack data 
) [static]

[internal] Process message internally from system. DO NOT OVERRIDE THIS.

Definition at line 153 of file MercuryMessages.cpp.

void MercuryMessageHandler::RegisterMessage ( int  messageID,
const MString name 
)

Register this object for message 'name' and return an ID messageID.

Definition at line 159 of file MercuryMessages.cpp.

void MercuryMessageHandler::UnregisterMessage ( int  messageID,
const MString name 
)

Definition at line 168 of file MercuryMessages.cpp.

MercuryMessageHandler::CLASS_RTTI ( MercuryMessageHandler  ,
MercuryCommandHandler   
)


Member Data Documentation

MDeque< MAutoPtr<MercuryMessageObjectSubscription> > MercuryMessageHandler::m_lCallbacks [private]

Definition at line 137 of file MercuryMessages.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo