-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFighter.h
More file actions
37 lines (23 loc) · 818 Bytes
/
Fighter.h
File metadata and controls
37 lines (23 loc) · 818 Bytes
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
//
// Created by Nativ on 18/01/2025.
//
#ifndef FIGHTER_H
#define FIGHTER_H
#include "Player.h"
class Fighter : public Player {
public:
//constructors
Fighter(): Player() {};
Fighter(const string &name, int maxAmountOfLife, int damageValue) : Player(name, maxAmountOfLife, damageValue) {};
//destructor
virtual ~Fighter();
//copy constructor and assignment operator
Fighter(const Fighter& other) : Player(other) {};
Fighter& operator=(const Fighter& other);
virtual string getType() const;
Fighter &PlayerAttackMonster(Monster &other);
bool IsItPossibleUseTheSpecialAttack() const;
Fighter& PlayerAttackedByGoblin(const Monster &other);
Fighter& PlayerAttackedByDragon(const Monster &other);
};
#endif //FIGHTER_H