-
Notifications
You must be signed in to change notification settings - Fork 1
/
rocks.h
78 lines (47 loc) · 841 Bytes
/
rocks.h
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
77
78
#ifndef rocks_h
#define rocks_h
#define BIG_ROCK_SIZE 16
#define MEDIUM_ROCK_SIZE 8
#define SMALL_ROCK_SIZE 4
#define BIG_ROCK_SPIN 2
#define MEDIUM_ROCK_SPIN 5
#define SMALL_ROCK_SPIN 10
#define ROCK_SPEED 1
#include "flyingObject.h"
#include "uiDraw.h"
// Define the following classes here:
// Rock
class Rock : public FlyingObject {
private:
int type;
public:
Rock();
~Rock();
int getType() const {return type;}
void setType(int t) {this->type = t;}
};
// BigRock
class BigRock : public Rock {
private:
public:
BigRock();
~BigRock();
void draw();
};
// MediumRock
class MediumRock : public Rock {
private:
public:
MediumRock();
~MediumRock();
void draw();
};
// SmallRock
class SmallRock : public Rock {
private:
public:
SmallRock();
~SmallRock();
void draw();
};
#endif /* rocks_h */