-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.h
More file actions
executable file
·66 lines (60 loc) · 1.66 KB
/
Player.h
File metadata and controls
executable file
·66 lines (60 loc) · 1.66 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef PLAYER_H_
#define PLAYER_H_
#include <string>
#include <iostream>
#include <sstream>
#include "Deck.h"
#include "Card.h"
#include "Ritual.h"
class Minion;
class Player {
std::string name;
int magic;
//int life;
Hand *hand;
Slot *slot;
Deck *deck;
Graveyard *graveyard;
Card *ritual;
public:
int life; // TODO: make private
Player(std::string myName, std::istream *in);
~Player();
int getMagic();
void changeMagic(int change);
void changeLife(int change);
void draw();
void performStartTrigger(Player *activePlayer, Player *opponent);
void performEndTrigger(Player *activePlayer, Player *opponent);
void performMinionEnter(Minion *minion, Player *activePlayer, Player *opponent);
void performMinionLeave(Minion *minion, Player *activePlayer, Player *opponent);
void discard(int i);
void attack(int i, Player* opponent);
void attack(int i, Player* opponent, int j, Player *activePlayer);
void play(int i, Player *, Player*);
void play(int i, Player *p, int j, Player*, Player *);
void use(int, Player *, Player*);
void use(int, Player *, int, Player*, Player*);
std::string getName();
bool isAlive();
void updateSlot(int attack, int defence);
// Not needed anymore @Karan
void addCard(std::string place, Card *card);
void removeCard(int minionNum);
void showHand();
void showDeck();
void returnMinionToHand(int minionNum, Minion *minion);
void destroyTopEnchantment(int minionNum);
void raiseTheDead();
void updateRitual(int charge);
int powerOfRitual();
void removeRitual();
void moveToGraveyard();
void deleteRitual();
Hand* getHand();
Slot * getSlot();
Deck * getDeck();
Graveyard *getGraveyard();
Ritual* getRitual();
};
#endif