YAPOG  0.0.1
Yet Another Pokemon Online Game
WorldDrawingPolicy.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_WORLDDRAWINGPOLICY_HPP
2 # define YAPOG_WORLDDRAWINGPOLICY_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 
7 namespace yap
8 {
10  {
12 
13  public:
14 
15  virtual ~WorldDrawingPolicy ();
16 
19  virtual Vector2 ToScreenPosition (
20  const Vector3& worldPosition) const;
21 
22  virtual Vector2 ToScreenOffset (
23  const Vector3& worldOffset) const;
24 
25  virtual float GetComparisonPoint (
26  const ISpatial3& spatial) const;
28 
29  protected:
30 
32 
33  virtual Vector2 HandleToScreenPosition (
34  const Vector3& worldPosition) const = 0;
35 
36  virtual float HandleGetComparisonPoint (
37  const ISpatial3& spatial) const = 0;
38  };
39 } // namespace yap
40 
41 #endif // YAPOG_WORLDDRAWINGPOLICY_HPP