YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Spatial3Info.cpp
Go to the documentation of this file.
1
#include "
YAPOG/Game/World/Spatial3Info.hpp
"
2
3
namespace
yap
4
{
5
const
int
Spatial3Info::DEFAULT_Z
= 0;
6
const
int
Spatial3Info::DEFAULT_H
= 1;
7
8
Spatial3Info::Spatial3Info
()
9
:
SpatialInfo
()
10
, z_ (DEFAULT_Z)
11
, h_ (DEFAULT_H)
12
{
13
}
14
15
Spatial3Info::Spatial3Info
(
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
26
Spatial3Info::Spatial3Info
(
const
Spatial3Info
& copy)
27
:
SpatialInfo
(copy)
28
, z_ (copy.z_)
29
, h_ (copy.h_)
30
{
31
}
32
33
Spatial3Info
&
Spatial3Info::operator=
(
const
Spatial3Info
& copy)
34
{
35
if
(
this
== ©)
36
return
*
this
;
37
38
SpatialInfo::operator=
(copy);
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
YAPOG
src
YAPOG
Game
World
Spatial3Info.cpp
Generated on Mon Sep 17 2012 22:24:25 for YAPOG by
1.8.1.1