Angel 3.2
A 2D Game Prototyping Engine
Public Member Functions | List of all members
MessageListener Class Referenceabstract

An interface for sending and receiving Messages via the Switchboard. More...

#include <Message.h>

+ Inheritance diagram for MessageListener:

Public Member Functions

virtual void ReceiveMessage (Message *m)=0

Detailed Description

Any class that wants to participate in messaging must implement this interface. It simply defines a function for the Switchboard to call when delivering Messages.

Definition at line 148 of file Message.h.

Member Function Documentation

virtual void MessageListener::ReceiveMessage ( Message m)
pure virtual

The Switchboard class will call this function for every Message to be deliverd to a designated listener. Implementations of this function should filter on Message::GetMessageName to make sure they're responding to the appropriate signals.

mThe message to be delivered.

Implemented in Actor, World, TextActor, GameManager, FullScreenActor, and ConfigUpdater.

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