-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfield.h
57 lines (36 loc) · 1.16 KB
/
field.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef _FIELD_H
#define _FIELD_H
#include <iostream>
#include <string>
#include <vector>
#include "card.h"
#include "monster.h"
#include "ritual.h"
#include "enchantments.h"
class Owner;
class Field {
std::vector<Monster*> field;
Ritual* ritual;
int numOfCards;
public:
Field();
~Field();
int getAttack(int fieldIndex) const;
int getDefense(int fieldIndex) const;
std::string getName(int fieldIndex) const;
void changeStats(int fieldIndex, int attChange, int defChange);
void activate(int fieldIndex, Owner* target, int targFieldIndex);
void activate(int fieldIndex, Owner* owner, Owner* opponent);
Ritual* getRitual() const;
void summon(Monster* monster);
void playRitual(Ritual *r);
void increaseCharge(int chargeChange);
void playEnchantment(int fieldIndex, Enchantments* enchantment);
void disenchant(int fieldIndex);
std::string destroy(int fieldIndex);
int size() const;
Monster* getMonster(int fieldIndex) const;
card_template_t getMonsterTemplate(int fieldIndex) const;
std::vector<std::vector<card_template_t>> makeCompleteTemplate(int fieldIndex) const;
};
#endif