diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-03-09 23:59:53 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-03-09 23:59:53 +0100 |
| commit | f416816883545433ea33ca410983371e657dba18 (patch) | |
| tree | 1c8682679b1c67261447570c4f66d0d8919bdc00 /GameStructures.h | |
| parent | 8ec41b4410aba535008daf991ea59a8740951d44 (diff) | |
| download | pocketempires-f416816883545433ea33ca410983371e657dba18.tar.gz | |
* Nearest unit and/or building is found (no sqrt method used).
* Preliminar unit/building selection algorithm.
* Added cursor onscreen.
- Removed old Peasant sprites. Only 2 sprites needed!
Diffstat (limited to 'GameStructures.h')
| -rw-r--r-- | GameStructures.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/GameStructures.h b/GameStructures.h index 315c22b..758affb 100644 --- a/GameStructures.h +++ b/GameStructures.h @@ -29,6 +29,7 @@ typedef struct t_Building uint8_t hp; uint8_t id; bool built; + bool selected; }TYPE_BUILDING; typedef struct t_Unit @@ -37,7 +38,10 @@ typedef struct t_Unit uint16_t y; uint8_t hp; uint8_t id; + bool dir; // False = up-down; true = left-right + bool walk; bool alive; + bool selected; }TYPE_UNIT; typedef struct t_CollisionBlock |
