-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTechnique.h
50 lines (39 loc) · 980 Bytes
/
Technique.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
#pragma once
#define BEGINNER 1
#define INTERMEDIATE 2
#define ADVANCED 3
class Technique {
/*
* Fields related to the basic properties a technique will have
* name - the name of the technique
* cost - how much the technique costs in the shop
* level - beginner = 1, intermediate = 2, advanced = 3 (beginner by default)
* unlocked - boolean about whether or not technique is unlocked
*/
private:
char* name;
int id;
int cost;
int level;
bool unlocked;
public:
// default constructor
Technique(int id);
// constructor
Technique(char* nam, int cos, int lev, bool unl, int id);
// destructor
~Technique();
/* Methods */
// get the id
int getId();
// get the level
int getLevel();
// unlock the technique, returns the cost of the technique
int unlock();
// is it unlocked?
bool isUnlocked();
// how much does it cost?
int getCost();
// what is the name of the technique?
char * getName();
};