YAPOG  0.0.1
Yet Another Pokemon Online Game
DrawableWorldObjectOrderComparator.cpp
Go to the documentation of this file.
3 
4 namespace yap
5 {
8  {
9  }
10 
12  {
13  }
14 
18  {
19  }
20 
24  {
25  if (this == &copy)
26  return *this;
27 
29 
30  return *this;
31  }
32 
34  IDrawableWorldObject* const& left,
35  IDrawableWorldObject* const& right) const
36  {
37  if (left->GetLayerDepth () < right->GetLayerDepth ())
38  return -1;
39 
40  if (left->GetLayerDepth () > right->GetLayerDepth ())
41  return 1;
42 
43  return left->GetComparisonPoint () - right->GetComparisonPoint ();
44  }
45 } // namespace yap