-
Notifications
You must be signed in to change notification settings - Fork 0
/
PendulumCard.cpp
35 lines (29 loc) · 1020 Bytes
/
PendulumCard.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
/**
* 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> */
#include "PendulumCard.hpp"
PendulumCard::PendulumCard(const std::string& name,const std::string& effect ,const unsigned int& rarity, const unsigned int& att_poi, const unsigned int& def_poi ,const unsigned int& scale, const MagicType a) : Card(name, effect)
{
MonsterCard::set_attack_points(att_poi);
MonsterCard::set_defense_points(def_poi);
MagicCard::set_type(a);
this->set_scale_points(scale);
this->rarity_score = rarity;
}
void PendulumCard::set_scale_points(const unsigned int& pt){
if(pt > 0 && pt < 14){
this->pendulum_scale = pt;
}
}
unsigned int PendulumCard::get_scale_points() const{
return pendulum_scale;
}
void PendulumCard::set_rarity_score(const unsigned int& points){
this->rarity_score = points;
}