-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenchantment.h
43 lines (38 loc) · 1.34 KB
/
enchantment.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
#ifndef ENCHANTMENT_H
#define ENCHANTMENT_H
#include "decorator.h"
#include <string>
using namespace std;
class Enchantment : public Decorator {
const string CARDTYPE = "enchantment";
//int action = -1;
//int activatedCost = -1;
int newDefense = -10;
public:
Enchantment(MinionComponent *n, string cardName);
~Enchantment() override;
int getAttack() const override;
int getDefense() const override;
void setAttack(int) override;
void setDefense(int) override;
int getAction() const override;
void setAction(int) override;
string getMCardDesc() const override {
return next->getMCardDesc();
}
string getMCardName() const override {
return next->getMCardName();
}
int getMCost() const override {
return next->getMCost();
}
void apply(Player* active, Player* other) override;
string getCardType() const override;
char cardAt(int x, int y) const override;
Minion * getMinion() override;
int getActivateCost() const override;
ActivatedAbility *getActivatedAbility() const override;
void setNext(MinionComponent* next);
void apply_target (Player* active, Player* other, Card *&c)override;
};
#endif