mElite
1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
mElite
GameObject.cpp
Go to the documentation of this file.
1
6
#include "
GameObject.h
"
7
11
GameObject::GameObject
(
void
) {
12
setPos
( 0, 0, 0 );
13
}
14
19
GameObject::GameObject
(
Vector3
position ) {
20
setPos
( position );
21
}
22
29
GameObject::GameObject
(
float
x
,
float
y
,
float
z
) {
30
setPos
( x, y, z );
31
}
32
36
GameObject::~GameObject
(
void
) {
37
}
38
42
Vector3
GameObject::getPos
(
void
) {
43
return
m_position;
44
}
45
50
void
GameObject::setPos
(
Vector3
position ) {
51
m_position = position;
52
}
53
60
void
GameObject::setPos
(
float
x
,
float
y
,
float
z
) {
61
m_position.
x
=
x
;
62
m_position.
y
=
y
;
63
m_position.
z
=
z
;
64
}
Generated on Tue Oct 2 2012 14:38:37 for mElite by
1.8.2