aboutsummaryrefslogtreecommitdiff
path: root/game/entity.cpp
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-04 13:35:02 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-04 13:35:02 +0100
commitbb16c32bde58cba70e4877aa2d3ebd04332eb575 (patch)
treede3d82cca043c26cbaa64837a3b2c18efc6ddb64 /game/entity.cpp
parent411d2f6d6a6e5370d33f0f54b2f2de7147a9d977 (diff)
linux compile and imgs
Diffstat (limited to 'game/entity.cpp')
-rw-r--r--game/entity.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/game/entity.cpp b/game/entity.cpp
index f127150..8539045 100644
--- a/game/entity.cpp
+++ b/game/entity.cpp
@@ -1,11 +1,11 @@
-#include "entity.h"
-#include <iostream>
-
-
-int EntityClass::from_string (std::string str) {
- if (str == "inf") return EntityInfo::Class::inf;
- if (str == "cav") return EntityInfo::Class::cav;
- if (str == "ran") return EntityInfo::Class::ran;
- if (str == "sie") return EntityInfo::Class::sie;
- if (str == "bld") return EntityInfo::Class::bld;
+#include "entity.h"
+#include <iostream>
+
+
+int EntityClass::from_string (std::string str) {
+ if (str == "inf") return EntityInfo::Class::inf;
+ if (str == "cav") return EntityInfo::Class::cav;
+ if (str == "ran") return EntityInfo::Class::ran;
+ if (str == "sie") return EntityInfo::Class::sie;
+ if (str == "bld") return EntityInfo::Class::bld;
} \ No newline at end of file