-
Notifications
You must be signed in to change notification settings - Fork 1
/
OnScreenObject.cpp
76 lines (57 loc) · 1.91 KB
/
OnScreenObject.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// OnScreenObject.cpp: implementation of the COnScreenObject class.
//
//////////////////////////////////////////////////////////////////////
#include "OnScreenObject.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
COnScreenObject::COnScreenObject()
{
}
COnScreenObject::~COnScreenObject()
{
}
/*********************************************************************
NAME : COnScreenObject
DESCRIPTION: parameterized constructor
PARAMETER : pos : The position in space of the object
RETURN : NONE
EXCEPTION : NONE.
*********************************************************************/
COnScreenObject::COnScreenObject (CPoint3D pos)
{
this->m_ptPosition = pos;
}
/*********************************************************************
NAME : COnScreenObject
DESCRIPTION: parameterized constructor
PARAMETER : pos : The position in space of the object
RETURN : NONE
EXCEPTION : NONE.
*********************************************************************/
COnScreenObject::COnScreenObject (const COnScreenObject & obj1)
{
this->m_ptPosition = obj1.m_ptPosition;
}
/*********************************************************************
NAME : SetPosition
DESCRIPTION: Set the position of the object
PARAMETER : pos : The position in space of the object
RETURN : void
EXCEPTION : NONE.
*********************************************************************/
void COnScreenObject::SetPosition (CPoint3D pos)
{
this->m_ptPosition = pos;
}
/*********************************************************************
NAME : GetPosition
DESCRIPTION: Retrieve the position of the object
PARAMETER : NONE
RETURN : CPoint3D
EXCEPTION : NONE.
*********************************************************************/
CPoint3D COnScreenObject::GetPosition ()
{
return m_ptPosition;
}