YAPOG  0.0.1
Yet Another Pokemon Online Game
WarpMapEventAction.cpp
Go to the documentation of this file.
4 
6 namespace yap
7 {
9  const ID& mapWorldID,
10  const Vector2& mapPoint)
12  , mapWorldID_ (mapWorldID)
13  , mapPoint_ (mapPoint)
14  {
15  }
16 
18  {
19  }
20 
22  : BaseMapEventAction (copy)
23  , mapWorldID_ (copy.mapWorldID_)
24  , mapPoint_ (copy.mapPoint_)
25  {
26  }
27 
29  {
30  return new WarpMapEventAction (*this);
31  }
32 
34  {
35  switch (GetContextType ())
36  {
38 
39  GetArgs ().AbortEvents (true);
40  visitable.Warp (mapWorldID_, mapPoint_);
41 
42  break;
43 
44  default: break;
45  }
46  }
47 } // namespace yap