-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMagicCard.hpp
38 lines (27 loc) · 842 Bytes
/
MagicCard.hpp
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
/**
* Solution to homework assignment 3
* Object Oriented Programming Course
* Faculty of Mathematics and Informatics of Sofia University
* Summer semester 2020/2021 *
* @author <Kaloyan Vachkov>
* @idnumber <62645>
* @task <4>
* @compiler <GCC> */
#ifndef MagicCard_hpp
#define MagicCard_hpp
#include "Card.hpp"
#include <string>
enum MagicType {
trap = 0, buff = 1 , spell = 2
};
class MagicCard : virtual public Card {
MagicType card_type;
public:
MagicCard(const std::string& magic_card_name = "",
const std::string& effect_name = "", const unsigned int& rarity = 0,
const MagicType& card_type = trap);
MagicType& get_magic_cardtype();
void set_rarity_score(const unsigned int& points) override;
void set_type(const MagicType& type);
};
#endif /* MagicCard_hpp */