40 #ifndef _eventsubscriberslot_h
41 #define _eventsubscriberslot_h
43 #include "eventarguments.h"
48 class EventSubscriber;
85 Event* GetEvent()
const;
88 virtual SlotType GetType()
const = 0;
188 #ifndef SWIG // This is non-sensical in a scripting language
215 SubscriberFunction* GetFunction()
const;
Basic class definition for functors used by a FunctorSubscriberSlot.
FunctorEventSubscriber * Functor
A pointer to the functor to be called when the event is fired.
FunctorEventSubscriber()
Clsas constructor.
bool Boole
Generally acts a single bit, true or false.
SubscriberFunction * Function
A pointer to the c-style function to be called when the event is fired.
This class represents a given event that can be subscribed to and/or fired.
This is a subscriber slot class that triggers a Free/C-style function.
Boole CleanUp
Stores whether or not the functor is to be deleted when this subscriber is destructed.
This is a base class for all classes that subscribe to events.
A simple reference counting pointer.
This is a subscriber slot class that passes on the event firing to a custom subscriber class...
Event * SubbedEvent
A pointer to the connected event.
The interface for a script.
This is a subscriber slot class that triggers a provided script.
EventSubscriber * Subscriber
A pointer to the custom subscriber that the event will be passed on to.
This class represents a slot in an event that can be subscribed to via subscribers, functors, or methods.
This is a subscriber slot class that makes the appropriate call on a functor.
Scripting::iScript * SubscriberScript
A pointer to the script to be executed when the event is fired.
The bulk of the engine components go in this namspace.
SlotType
This enum is used to describe the type of SubscriberSlot an instance is, to be used for casting...
virtual ~FunctorEventSubscriber()
Class destructor.
virtual void operator()(EventArgumentsPtr Args)=0
Executes subscriber specific functionality when the event is fired.