-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.h
70 lines (60 loc) · 1.28 KB
/
user.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
#ifndef USER_H
#define USER_H
#include "constants.h"
#include "rabbit.h"
#ifndef SSBTSOUND_H
#include "ssbtsound.h"
#endif
class Wedge {
public:
Wedge();
~Wedge();
/* MODIFICATION MEMBER FUNCTIONS */
void setAngles(int, int); // set both angles at same time so the small one goes in angle1
void activate(bool);
/* CONSTANT MEMBER FUNCTIONS */
int getAngle1();
int getAngle2();
bool isActivated();
private:
int angle1; // the small one 0-359
int angle2; // the big one 0-359
bool activated;
};
class Disc {
public:
Disc();
~Disc();
/* MODIFICATION MEMBER FUNCTIONS */
void setRadii(int, int);
void activate(bool);
/* CONSTANT MEMBER FUNCTIONS */
int getRadius1();
int getRadius2();
bool isActivated();
private:
int radius1;
int radius2;
bool activated;
};
class User {
public:
User();
~User();
/* MODIFICATION MEMBER FUNCTIONS */
void setTrueX(int);
void setTrueY(int);
void teleport(int, int);
/* CONSTANT MEMBER FUNCTIONS */
int getTrueX();
int getTrueY();
Disc& getDisc1();
Wedge& getWedge1();
void activateInsideRabbits(Rabbit[]);
private:
int truex;
int truey;
Disc Disc1;
Wedge Wedge1;
};
#endif