YAPOG  0.0.1
Yet Another Pokemon Online Game
MapEventArgs.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_MAPEVENTARGS_HPP
2 # define YAPOG_MAPEVENTARGS_HPP
3 
4 # include "YAPOG/Macros.hpp"
5 
6 namespace yap
7 {
8  struct ICollidable;
9 
10  class Time;
11  class DynamicWorldObject;
12  class MapEventInfo;
13 
15  {
17 
18  public:
19 
20  MapEventArgs (
21  const Time& dt,
22  DynamicWorldObject& trigger,
23  const ICollidable& triggerCollidable,
24  MapEventInfo& mapContext);
25 
26  const Time& GetDt () const;
27 
28  DynamicWorldObject& GetTrigger ();
29  const ICollidable& GetTriggerCollidable () const;
30 
31  MapEventInfo& GetMapContext ();
32 
33  void AbortEvents (bool abortEvents);
34  bool AbortEvents () const;
35 
36  private:
37 
38  static const bool DEFAULT_ABORT_EVENTS_STATE;
39 
40  const Time& dt_;
41 
44 
46 
48  };
49 } // namespace yap
50 
51 #endif // YAPOG_MAPEVENTARGS_HPP