YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::MapEventManager Class Reference

#include <MapEventManager.hpp>

Inheritance diagram for yap::MapEventManager:
Collaboration diagram for yap::MapEventManager:

List of all members.

Public Member Functions

 MapEventManager ()
 ~MapEventManager ()
void SetCollidableArea (CollidableArea *collidableArea)
void UpdateObject (DynamicWorldObject &object)
void RemoveObject (const DynamicWorldObject &object)
IUpdateable members.
virtual void Update (const Time &dt)
 Makes the object evolve for one frame of the game.
- Public Member Functions inherited from yap::IUpdateable
virtual ~IUpdateable ()

Public Attributes

yap::Event< MapEventManager & > OnEventsAborted

Private Types

typedef collection::Map
< MapEvent *, collection::Set
< MapEventContext
*, MapEventContextTriggerComparator > > 
EventTriggeringType
typedef collection::Map< const
DynamicWorldObject
*, EventTriggeringType
ObjectEventsType
 Map<Trigger Object, Map<Source Event, Set<Event context>>>

Private Member Functions

 DISALLOW_COPY (MapEventManager)
bool AddEventEntry (MapEventContext *eventContext)
bool RemoveEventEntry (MapEventContext *eventContext)
void UpdateObjectOut (const DynamicWorldObject &object)
void UpdateObjectIn (DynamicWorldObject &object)
void AddLeaveEvent (MapEventContext *event)
void AddEnterEvent (MapEventContext *event)
void CallEvents (const Time &dt)
bool CallEvent (MapEventActionType type, const Time &dt, MapEventContext &eventContext)
void AbortEvents ()

Private Attributes

ObjectEventsType events_
collection::Queue
< MapEventContext * > 
leaveEvents_
collection::Queue
< MapEventContext * > 
enterEvents_
collection::Queue< const
DynamicWorldObject * > 
objectsToRemove_
CollidableAreacollidableArea_
bool abortEvents_

Detailed Description

Definition at line 20 of file MapEventManager.hpp.


Member Typedef Documentation

Map<Trigger Object, Map<Source Event, Set<Event context>>>

Definition at line 32 of file MapEventManager.hpp.


Constructor & Destructor Documentation

yap::MapEventManager::MapEventManager ( )

Definition at line 10 of file MapEventManager.cpp.

yap::MapEventManager::~MapEventManager ( )

Definition at line 20 of file MapEventManager.cpp.


Member Function Documentation

void yap::MapEventManager::AbortEvents ( )
private

Definition at line 234 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::MapEventManager::AddEnterEvent ( MapEventContext event)
private

Definition at line 208 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool yap::MapEventManager::AddEventEntry ( MapEventContext eventContext)
private

Definition at line 145 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::MapEventManager::AddLeaveEvent ( MapEventContext event)
private

Definition at line 203 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool yap::MapEventManager::CallEvent ( MapEventActionType  type,
const Time dt,
MapEventContext eventContext 
)
private

Definition at line 213 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::MapEventManager::CallEvents ( const Time dt)
private

Definition at line 61 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yap::MapEventManager::DISALLOW_COPY ( MapEventManager  )
private
bool yap::MapEventManager::RemoveEventEntry ( MapEventContext eventContext)
private

Definition at line 176 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::MapEventManager::RemoveObject ( const DynamicWorldObject object)

Definition at line 102 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::MapEventManager::SetCollidableArea ( CollidableArea collidableArea)

Definition at line 24 of file MapEventManager.cpp.

Here is the caller graph for this function:

void yap::MapEventManager::Update ( const Time dt)
virtual

Makes the object evolve for one frame of the game.

Parameters:
dtDelta time since the last frame.

Implements yap::IUpdateable.

Definition at line 29 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::MapEventManager::UpdateObject ( DynamicWorldObject object)

Definition at line 96 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::MapEventManager::UpdateObjectIn ( DynamicWorldObject object)
private

Definition at line 128 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::MapEventManager::UpdateObjectOut ( const DynamicWorldObject object)
private

Definition at line 107 of file MapEventManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

bool yap::MapEventManager::abortEvents_
private

Definition at line 79 of file MapEventManager.hpp.

CollidableArea* yap::MapEventManager::collidableArea_
private

Definition at line 77 of file MapEventManager.hpp.

collection::Queue<MapEventContext*> yap::MapEventManager::enterEvents_
private

Definition at line 73 of file MapEventManager.hpp.

ObjectEventsType yap::MapEventManager::events_
private

Definition at line 71 of file MapEventManager.hpp.

collection::Queue<MapEventContext*> yap::MapEventManager::leaveEvents_
private

Definition at line 72 of file MapEventManager.hpp.

collection::Queue<const DynamicWorldObject*> yap::MapEventManager::objectsToRemove_
private

Definition at line 75 of file MapEventManager.hpp.

yap::Event<MapEventManager&> yap::MapEventManager::OnEventsAborted

Definition at line 49 of file MapEventManager.hpp.


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