YAPOG  0.0.1
Yet Another Pokemon Online Game
BaseMapEventAction.cpp
Go to the documentation of this file.
3 
4 namespace yap
5 {
8 
10  : contextType_ (DEFAULT_CONTEXT_TYPE)
11  , args_ (nullptr)
12  {
13  }
14 
16  {
17  }
18 
20  : contextType_ (copy.contextType_)
21  , args_ (nullptr)
22  {
23  }
24 
26  MapEventActionType contextType,
27  DynamicWorldObject& trigger,
28  MapEventArgs& args)
29  {
30  contextType_ = contextType;
31 
32  args_ = &args;
33 
34  trigger.Accept (*this);
35 
36  return HandleExecute (args);
37  }
38 
40  DynamicWorldObject& visitable)
41  {
42  }
43 
45  {
46  }
47 
49  {
50  }
51 
53  {
54  }
55 
57  DestructibleObject& visitable)
58  {
59  }
60 
62  BattleSpawnerArea& visitable)
63  {
64  }
65 
67  {
68  return contextType_;
69  }
70 
72  {
73  return *args_;
74  }
75 
77  {
78  return true;
79  }
80 } // namespace yap