YAPOG  0.0.1
Yet Another Pokemon Online Game
IMapEventAction.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_IMAPEVENTACTION_HPP
2 # define YAPOG_IMAPEVENTACTION_HPP
3 
4 # include "YAPOG/Macros.hpp"
8 
9 namespace yap
10 {
11  class DynamicWorldObject;
12  class MapEventArgs;
13 
14  struct IMapEventAction : public ICloneable
16  {
17  virtual ~IMapEventAction () { }
18 
26  virtual bool Execute (
27  MapEventActionType contextType,
28  DynamicWorldObject& trigger,
29  MapEventArgs& args) = 0;
30 
31  virtual IMapEventAction* Clone () const { return nullptr; }
32  };
33 } // namespace yap
34 
35 #endif // YAPOG_IMAPEVENTACTION_HPP