-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameObject.cpp
More file actions
54 lines (44 loc) · 921 Bytes
/
Copy pathGameObject.cpp
File metadata and controls
54 lines (44 loc) · 921 Bytes
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
/*
* GameObject.cpp
*
* Created on: May 3, 2019
* Author: abdullah
*/
#include "GameObject.h"
Position GameObject::getPos() const {
return pos;
}
void GameObject::setPos(int X,int Y) {
pos.setX(X);
pos.setY(Y);
}
ScoreBoard GameObject::getScoreB() const {
return scoreB;
}
void GameObject::setScoreB(ScoreBoard scoreB) {
this->scoreB = scoreB;
}
bool GameObject::isStart() const {
return start;
}
void GameObject::setStart(bool start) {
this->start = start;
}
void GameObject::setPos(Position pos) {
this->pos = pos;
}
void GameObject::setScoreBscore(int scr) {
scoreB.setScore(scr);
}
int GameObject::getScoreBscore() const {
return scoreB.getScore();
}
void GameObject::setScoreBnoOfLives(int scr) {
scoreB.setNumberOfLives(scr);
}
int GameObject::getScoreBnoOfLives() const {
return scoreB.getNumberOfLives();
}
GameObject::~GameObject() {
// TODO Auto-generated destructor stub
}