summaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-16 20:42:33 +0000
committerPaweł Redman <pawel.redman@gmail.com>2017-12-16 20:42:33 +0000
commit5c7d962e605e123e1ce4e0610e8f330b1f4f5e82 (patch)
treef670145b02dd884ebc7db01b47f079cc259e5d8d /src/game/game.hpp
parent1b1704512b4c83dfa7e17c30f0facc5a7645181a (diff)
Move text.cpp into game.
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index 3fed3ec..b2bf0dd 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -55,6 +55,32 @@ namespace game {
void load(void);
}
+ namespace text {
+ typedef enum {
+ LANG_ENGLISH,
+ LANG_POLISH
+ } language_t;
+
+ extern language_t language;
+
+ typedef enum {
+ SAY_NO_PATH,
+ SAY_BLOCKED,
+ SAY_READY,
+ SAY_MOVING,
+ UNIT_NAME_SPIDER,
+ UNIT_NAME_SOLDIER,
+ UNIT_DEATH,
+ UNIT_ATTACK,
+ UNIT_MISS,
+ UNIT_CRITICAL_MISS,
+ UNIT_CRITICAL_HIT,
+ UNIT_DAMAGE
+ } index_t;
+
+ std::string get(index_t index);
+ }
+
class entity_t : public world::entity_t {
public:
game::state_t *game = 0;