summaryrefslogtreecommitdiff
path: root/BaseUnit.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2018-07-26 21:22:28 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2018-07-26 21:22:28 +0200
commitc3a69de5c2e822d91e8284ac65eda83fed6476ba (patch)
treefce44421bdb8230cfcb2b614ea00b26439f4e67d /BaseUnit.h
parentbfdc0b9f497ef10f6687abcc55d93405c611af11 (diff)
downloadpocketempires-c3a69de5c2e822d91e8284ac65eda83fed6476ba.tar.gz
+ BaseUnit.cpp, BaseUnit.h: added simple member functions for extracting BaseUnit protected data.
+ HumanPlayer.cpp: started implementing unit selection. Still TODO.
Diffstat (limited to 'BaseUnit.h')
-rw-r--r--BaseUnit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/BaseUnit.h b/BaseUnit.h
index a5dfc35..7eafcb3 100644
--- a/BaseUnit.h
+++ b/BaseUnit.h
@@ -34,6 +34,9 @@ class BaseUnit
explicit BaseUnit(void);
void handler(void);
void create(const uint16_t x, const uint16_t y);
+ bool isAlive(void);
+ bool isSelected(void);
+ uint16_t getX(void);
protected:
uint16_t _hp; /**< Health points. */