YAPOG  0.0.1
Yet Another Pokemon Online Game
Spatial3Info.cpp
Go to the documentation of this file.
2 
3 namespace yap
4 {
5  const int Spatial3Info::DEFAULT_Z = 0;
6  const int Spatial3Info::DEFAULT_H = 1;
7 
9  : SpatialInfo ()
10  , z_ (DEFAULT_Z)
11  , h_ (DEFAULT_H)
12  {
13  }
14 
16  const Vector2& position,
17  const Vector2& size,
18  int z,
19  int h)
20  : SpatialInfo (position, size)
21  , z_ (z)
22  , h_ (h)
23  {
24  }
25 
27  : SpatialInfo (copy)
28  , z_ (copy.z_)
29  , h_ (copy.h_)
30  {
31  }
32 
34  {
35  if (this == &copy)
36  return *this;
37 
39 
40  z_ = copy.z_;
41  h_ = copy.h_;
42 
43  return *this;
44  }
45 
46  const int& Spatial3Info::GetZ () const
47  {
48  return z_;
49  }
50 
51  const int& Spatial3Info::GetH () const
52  {
53  return h_;
54  }
55 
56  void Spatial3Info::SetZ (int z)
57  {
58  z_ = z;
59  }
60 
61  void Spatial3Info::SetH (int h)
62  {
63  h_ = h;
64  }
65 } // namespace yap