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

#include <BaseMapEventAction.hpp>

Inheritance diagram for yap::BaseMapEventAction:
Collaboration diagram for yap::BaseMapEventAction:

List of all members.

Public Member Functions

virtual ~BaseMapEventAction ()
IMapEventAction members.
virtual bool Execute (MapEventActionType contextType, DynamicWorldObject &trigger, MapEventArgs &args)
 Sets up the MapEventArgs args for the next execution.
IDynamicWorldObjectVisitor
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 ()
virtual IMapEventActionClone () const
- Public Member Functions inherited from yap::ICloneable
virtual ~ICloneable ()
- Public Member Functions inherited from yap::IDynamicWorldObjectVisitor
virtual ~IDynamicWorldObjectVisitor ()

Protected Member Functions

 BaseMapEventAction ()
 BaseMapEventAction (const BaseMapEventAction &copy)
MapEventActionType GetContextType () const
MapEventArgsGetArgs ()

Private Member Functions

 DISALLOW_ASSIGN (BaseMapEventAction)
virtual bool HandleExecute (MapEventArgs &args)

Private Attributes

MapEventActionType contextType_
MapEventArgsargs_

Static Private Attributes

static const MapEventActionType DEFAULT_CONTEXT_TYPE

Detailed Description

Definition at line 10 of file BaseMapEventAction.hpp.


Constructor & Destructor Documentation

yap::BaseMapEventAction::~BaseMapEventAction ( )
virtual

Definition at line 15 of file BaseMapEventAction.cpp.

yap::BaseMapEventAction::BaseMapEventAction ( )
protected

Definition at line 9 of file BaseMapEventAction.cpp.

yap::BaseMapEventAction::BaseMapEventAction ( const BaseMapEventAction copy)
protected

Definition at line 19 of file BaseMapEventAction.cpp.


Member Function Documentation

yap::BaseMapEventAction::DISALLOW_ASSIGN ( BaseMapEventAction  )
private
bool yap::BaseMapEventAction::Execute ( MapEventActionType  contextType,
DynamicWorldObject trigger,
MapEventArgs args 
)
virtual

Sets up the MapEventArgs args for the next execution.

Parameters:
triggerDynamicWorldObject trigger that triggered this IMapEventAction.
argsArguments that hold the context of the triggering of this IMapEventAction.
Returns:
False if conditions are not fulfilled or if the execution fails.

Implements yap::IMapEventAction.

Definition at line 25 of file BaseMapEventAction.cpp.

Here is the call graph for this function:

MapEventArgs & yap::BaseMapEventAction::GetArgs ( )
protected

Definition at line 71 of file BaseMapEventAction.cpp.

Here is the caller graph for this function:

MapEventActionType yap::BaseMapEventAction::GetContextType ( ) const
protected

Definition at line 66 of file BaseMapEventAction.cpp.

Here is the caller graph for this function:

bool yap::BaseMapEventAction::HandleExecute ( MapEventArgs args)
privatevirtual

Reimplemented in yap::AnyMapEventAction.

Definition at line 76 of file BaseMapEventAction.cpp.

Here is the caller graph for this function:

void yap::BaseMapEventAction::VisitBattleSpawnerArea ( BattleSpawnerArea visitable)
virtual

Implements yap::IDynamicWorldObjectVisitor.

Definition at line 61 of file BaseMapEventAction.cpp.

void yap::BaseMapEventAction::VisitCharacter ( Character visitable)
virtual

Implements yap::IDynamicWorldObjectVisitor.

Definition at line 44 of file BaseMapEventAction.cpp.

void yap::BaseMapEventAction::VisitDestructibleObject ( DestructibleObject visitable)
virtual

Implements yap::IDynamicWorldObjectVisitor.

Definition at line 56 of file BaseMapEventAction.cpp.

void yap::BaseMapEventAction::VisitDynamicWorldObject ( DynamicWorldObject visitable)
virtual

Implements yap::IDynamicWorldObjectVisitor.

Definition at line 39 of file BaseMapEventAction.cpp.

void yap::BaseMapEventAction::VisitPlayer ( IPlayer visitable)
virtual
void yap::BaseMapEventAction::VisitTeleporter ( Teleporter visitable)
virtual

Implements yap::IDynamicWorldObjectVisitor.

Definition at line 52 of file BaseMapEventAction.cpp.


Member Data Documentation

MapEventArgs* yap::BaseMapEventAction::args_
private

Definition at line 54 of file BaseMapEventAction.hpp.

MapEventActionType yap::BaseMapEventAction::contextType_
private

Definition at line 52 of file BaseMapEventAction.hpp.

const MapEventActionType yap::BaseMapEventAction::DEFAULT_CONTEXT_TYPE
staticprivate
Initial value:

Definition at line 50 of file BaseMapEventAction.hpp.


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