diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-03-12 21:09:29 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-03-12 21:09:29 +0100 |
| commit | 6628e7de58425b3e93da9ae6fcb7347137d96096 (patch) | |
| tree | 336d1f74961187aad7c85ba06dcdd0684c003282 /GameStructures.h | |
| parent | f416816883545433ea33ca410983371e657dba18 (diff) | |
| download | pocketempires-6628e7de58425b3e93da9ae6fcb7347137d96096.tar.gz | |
* Player can now select nearest unit or building. Multiple buildings and units can be selected at the same time.
* Unit module moved from C++ to C (only extension change - and compiler - was needed).
* GfxGetHeightFromSpriteData and GfxGetWidthFromSpriteData were getting incorrect data! Incorrect memory address was being read when calling pgm_read_byte, and caused unexpected behaviour under real hw.
Diffstat (limited to 'GameStructures.h')
| -rw-r--r-- | GameStructures.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/GameStructures.h b/GameStructures.h index 758affb..058d1d6 100644 --- a/GameStructures.h +++ b/GameStructures.h @@ -36,10 +36,12 @@ typedef struct t_Unit { uint16_t x; uint16_t y; + uint16_t target_x; + uint16_t target_y; uint8_t hp; uint8_t id; bool dir; // False = up-down; true = left-right - bool walk; + bool walking; bool alive; bool selected; }TYPE_UNIT; |
