YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
RegularWorldDrawingPolicy.cpp
Go to the documentation of this file.
1
#include "
YAPOG/Graphics/Game/World/RegularWorldDrawingPolicy.hpp
"
2
#include "
YAPOG/Game/World/ISpatial3.hpp
"
3
4
namespace
yap
5
{
6
RegularWorldDrawingPolicy::RegularWorldDrawingPolicy
()
7
:
WorldDrawingPolicy
()
8
{
9
}
10
11
RegularWorldDrawingPolicy::~RegularWorldDrawingPolicy
()
12
{
13
}
14
15
Vector2
RegularWorldDrawingPolicy::HandleToScreenPosition
(
16
const
Vector3
& worldPosition)
const
17
{
18
return
Vector2
(
19
worldPosition.x,
20
worldPosition.y - worldPosition.z * 32.0f);
21
}
22
23
float
RegularWorldDrawingPolicy::HandleGetComparisonPoint
(
24
const
ISpatial3
& spatial)
const
25
{
26
return
spatial.
GetBottomRight
().y;
27
}
28
}
// namespace yap
YAPOG
src
YAPOG
Graphics
Game
World
RegularWorldDrawingPolicy.cpp
Generated on Mon Sep 17 2012 22:24:25 for YAPOG by
1.8.1.1