-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnit.h
37 lines (28 loc) · 775 Bytes
/
Unit.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
// Created by Alex on 03.09.18.
//
#ifndef ARMY_UNIT_H
#define ARMY_UNIT_H
#include "UnitState.h"
#include "UnitAtack.h"
#include "DamageSpellBook.h"
#include "BookOfHealingSpell.h"
class Unit
{
private:
Unit(const Unit& unit);
Unit& operator=(const Unit& unit);
protected:
UnitState* state;
UnitAtack* at;
public:
Unit(const std::string &name, int hitPointsLimit, int atackPower);
virtual ~Unit() = 0;
virtual void makeDamage(Unit* unit);
virtual void makeMagicDamage(Unit* unit, DamageSpellList spell);
virtual void heal(Unit* unit, HealingSpellList spell);
virtual void bite(Unit *unit);
virtual void transformAndAtack(Unit *unit);
virtual Unit* createDeamon();
virtual void show();
};
#endif //ARMY_UNIT_H