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

#include <AnyMapEventAction.hpp>

Inheritance diagram for yap::AnyMapEventAction:
Collaboration diagram for yap::AnyMapEventAction:

List of all members.

Public Types

typedef std::function< bool(MapEventActionType,
MapEventArgs &)> 
CallbackType

Public Member Functions

 AnyMapEventAction (CallbackType callback)
virtual ~AnyMapEventAction ()
ICloneable members.
virtual AnyMapEventActionClone () const
- Public Member Functions inherited from yap::BaseMapEventAction
virtual ~BaseMapEventAction ()
virtual bool Execute (MapEventActionType contextType, DynamicWorldObject &trigger, MapEventArgs &args)
 Sets up the MapEventArgs args for the next execution.
virtual void VisitDynamicWorldObject (DynamicWorldObject &visitable)
virtual void VisitCharacter (Character &visitable)
virtual void VisitPlayer (IPlayer &visitable)
virtual void VisitTeleporter (Teleporter &visitable)
virtual void VisitDestructibleObject (DestructibleObject &visitable)
virtual void VisitBattleSpawnerArea (BattleSpawnerArea &visitable)
- Public Member Functions inherited from yap::IMapEventAction
virtual ~IMapEventAction ()
- Public Member Functions inherited from yap::ICloneable
virtual ~ICloneable ()
- Public Member Functions inherited from yap::IDynamicWorldObjectVisitor
virtual ~IDynamicWorldObjectVisitor ()

Protected Member Functions

 AnyMapEventAction (const AnyMapEventAction &copy)
virtual bool HandleExecute (MapEventArgs &args)
- Protected Member Functions inherited from yap::BaseMapEventAction
 BaseMapEventAction ()
 BaseMapEventAction (const BaseMapEventAction &copy)
MapEventActionType GetContextType () const
MapEventArgsGetArgs ()

Private Member Functions

 DISALLOW_ASSIGN (AnyMapEventAction)

Private Attributes

CallbackType callback_

Detailed Description

Definition at line 13 of file AnyMapEventAction.hpp.


Member Typedef Documentation

Definition at line 20 of file AnyMapEventAction.hpp.


Constructor & Destructor Documentation

yap::AnyMapEventAction::AnyMapEventAction ( CallbackType  callback)
explicit

Definition at line 5 of file AnyMapEventAction.cpp.

Here is the caller graph for this function:

yap::AnyMapEventAction::~AnyMapEventAction ( )
virtual

Definition at line 11 of file AnyMapEventAction.cpp.

yap::AnyMapEventAction::AnyMapEventAction ( const AnyMapEventAction copy)
protected

Definition at line 15 of file AnyMapEventAction.cpp.


Member Function Documentation

AnyMapEventAction * yap::AnyMapEventAction::Clone ( ) const
virtual

Reimplemented from yap::IMapEventAction.

Definition at line 21 of file AnyMapEventAction.cpp.

Here is the call graph for this function:

yap::AnyMapEventAction::DISALLOW_ASSIGN ( AnyMapEventAction  )
private
bool yap::AnyMapEventAction::HandleExecute ( MapEventArgs args)
protectedvirtual

Reimplemented from yap::BaseMapEventAction.

Definition at line 26 of file AnyMapEventAction.cpp.

Here is the call graph for this function:


Member Data Documentation

CallbackType yap::AnyMapEventAction::callback_
private

Definition at line 38 of file AnyMapEventAction.hpp.


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