aboutsummaryrefslogtreecommitdiff
path: root/backend/Enemy.h
blob: 23d988d72a2e916f3e04a411333b9aa25e8ef47d (plain)
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
#pragma once

#include "backend/String.h"

class Enemy {
public:
	void set_name(const String & name);
	const String & get_name() const;
	void set_description(const String & description);
	const String & get_description() const;
	unsigned get_health() const;
	void take_damage(unsigned int dmg);
	virtual const String & get_displayname() const;

private:
	friend class EnemyFactory;
	Enemy(const String & name, const String & description);
public:
	virtual ~Enemy() = default;

private:
	String name;
	String description;
	unsigned int health_points = 0;
};