14#include "ObjectList.h"
20#ifndef DF_REGISTER_INTEREST
21#define DF_REGISTER_INTEREST
36 virtual bool isValid(std::string event_type)
const;
ObjectList m_obj_list[MAX_EVENTS]
Objects interested in event.
Definition: Manager.h:30
int onEvent(const Event *p_event) const
Send event to all interested Objects.
virtual void shutDown()
Shutdown Manager.
std::string getType() const
Get type identifier of Manager.
std::string m_event_name[MAX_EVENTS]
List of events.
Definition: Manager.h:29
int unregisterInterest(Object *p_o, std::string event_type)
Indicate no more interest in event.
virtual bool isValid(std::string event_type) const
Check if event is handled by this Manager.
int m_event_count
Number of events.
Definition: Manager.h:28
int registerInterest(Object *p_o, std::string event_type)
Indicate interest in event.
bool m_is_started
True if startUp() succeeded.
Definition: Manager.h:31
virtual int startUp()
Startup Manager.
void setType(std::string new_type)
Set type identifier of Manager.
std::string m_type
Manager type identifier.
Definition: Manager.h:27
bool isStarted() const
Return status of is_started (true when startUp() was successful).
Definition: ObjectList.h:15
An animation for a sprite.
Definition: Animation.h:15
const int MAX_EVENTS
Max number of different events.
Definition: Manager.h:18