forked from BillyTziv/3DTetris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cube.cpp
71 lines (54 loc) · 927 Bytes
/
Cube.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
//
// Created by paulkokos on 8/15/17.
//
#include "Cube.h"
Cube::Cube() {
active = 0;
loaded = 0;
}
void Cube::setColour(int randNum) {
colour = randNum;
}
void Cube::setPos(int indexX, int indexY, int indexZ) {
positionX = indexX;
positionY = indexY;
positionZ = indexZ;
}
void Cube::movePos(int x, int y, int z) {
positionX = x;
positionY = y;
positionZ = z;
}
void Cube::moveColour(int c) {
colour = c;
}
int Cube::getPosX() {
return positionX;
}
int Cube::getPosY() {
return positionY;
}
int Cube::getPosZ() {
return positionZ;
}
void Cube::setActive(int a) {
active = a;
}
void Cube::setLoaded(int b) {
loaded = b;
}
int Cube::getLoaded() {
return loaded;
}
void Cube::setScored(int b) {
Scored = b;
}
int Cube::getScored() {
return Scored;
}
int Cube::getActive() {
return active;
}
int Cube::getColour() {
return colour;
}