-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreatureCard.hpp
90 lines (67 loc) · 2.31 KB
/
CreatureCard.hpp
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
//------------------------------------------------------------------------------
// CreatureCard.hpp
//
// Group: Group 9, study assistant David Kerschbaumer
//
// Authors: Michael Zweimüller 11916150
// Martin Schachl 11907003
// Johannes Aigner 11907005
//------------------------------------------------------------------------------
//
#ifndef CREATURECARD_HPP
#define CREATURECARD_HPP
#include <string>
#include "Card.hpp"
//------------------------------------------------------------------------------
namespace Oop
{
class Card;
//----------------------------------------------------------------------------
// CreatureCard Class
// This class defines a creature card and provides setter and getter methodes
//
class CreatureCard : public Card
{
private:
const int damage_points_; // range 0-9
const int life_points_; // range 1-9
int current_life_points_; // range 0-9
const bool shield_;
bool mana_drain_;
bool ready_to_fight_;
bool already_attacked_;
bool speedy_;
public:
//------------------------------------------------------------------------
// Constructor
//
CreatureCard(std::string name, int mana_cost, int damage_points,
int life_points, bool shield, bool mana_drain, bool speedy);
//------------------------------------------------------------------------
// Destructor
//
~CreatureCard();
//------------------------------------------------------------------------
// Copy constructor
//
CreatureCard(const CreatureCard &temp);
//------------------------------------------------------------------------
// Deleted assignment operator
//
CreatureCard& operator=(const CreatureCard& original) = delete;
//------------------------------------------------------------------------
// Getter Methods
//
int getLifePoints() const;
int getDamagePoints() const;
bool getManaDrain() const;
bool getShield() const;
int getCurrentLifePoints() const;
bool getReadyToFight() const;
bool getAlreadyAttacked() const;
bool getSpeedy() const;
void setAlreadyAttacked(bool rdy);
void setReadyToFight(bool rdy);
};
}
#endif