aboutsummaryrefslogtreecommitdiff
path: root/backend/Enemy.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/Enemy.h')
-rw-r--r--backend/Enemy.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/backend/Enemy.h b/backend/Enemy.h
index fdc095e..3c58c82 100644
--- a/backend/Enemy.h
+++ b/backend/Enemy.h
@@ -1,20 +1,22 @@
#pragma once
+#include "backend/String.h"
+
class Enemy {
public:
- void set_name(const char * name);
- const char * get_name();
- void set_description(const char * description);
- const char * get_description();
+ void set_name(const String & name);
+ const String & get_name() const;
+ void set_description(const String & description);
+ const String & get_description() const;
private:
friend class EnemyFactory;
- Enemy(const char * name = "", const char * description = "");
+ Enemy(const String & name, const String & description);
public:
- virtual ~Enemy();
+ virtual ~Enemy() = default;
private:
- const char * name = nullptr;
- const char * description = nullptr;
+ String name;
+ String description;
};