-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCard.h
More file actions
executable file
·38 lines (33 loc) · 1.03 KB
/
Card.h
File metadata and controls
executable file
·38 lines (33 loc) · 1.03 KB
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
#ifndef _CARD_H_
#define _CARD_H_
#include <string>
#include <sstream>
#include <iostream>
#include "Deck.h"
class Player;
class Minion;
// this is an abstract cards class that if a parent to Minions, spells and encahntments
class Card {
protected:
std::string name;
int cardCost;
public:
//Card();
Card(std::string name, int cost);
virtual ~Card() = 0;
virtual void attack(Card *minion);
virtual void attack(Player *player);
virtual void changeAttack(int attack);
virtual void changeDefence(int defence);
virtual void performActivatedAbility(int minionNum, Minion *minion, Player *p1, Player *p2);
virtual void performTriggeredAbility(std::string what, int minionNum, Minion *minion, Player *p1, Player *p2);
std::string getName();
virtual void addToBoard(Card *ritualSlot, Card *MinionCardForEnch, Slot *slot);
virtual void popTopEnchantment();
//virtual void reInitializeDefence(int initialisationVali) = 0;
virtual int power();
virtual void updateCharge(int val);
virtual void setActionTo1();
int getCardCost();
};
#endif