diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-09-09 12:47:17 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-09-09 12:47:17 +0200 |
| commit | a7dd9781961b5f26d5dca6829e1933dff6209d23 (patch) | |
| tree | 6e3f1c469e6997fedbaa096f377d67f99a65ae47 /Unit.h | |
| parent | 786dccd2bc0946d48b8a2758ef2c607678bc8dd9 (diff) | |
| download | pocketempires-a7dd9781961b5f26d5dca6829e1933dff6209d23.tar.gz | |
Simple collision detection between units added. libgamebuino was always updating header files, so targets were always being rebuilt.
Diffstat (limited to 'Unit.h')
| -rw-r--r-- | Unit.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -77,7 +77,8 @@ typedef enum t_availableactions { ACTION_BUILD, ACTION_ATTACK, - ACTION_CREATE_UNIT + ACTION_CREATE_UNIT, + MAX_ACTIONS }UNIT_ACTION; typedef struct t_Camera TYPE_CAMERA; @@ -88,7 +89,7 @@ typedef struct t_Camera TYPE_CAMERA; // Initialization and handling void UnitInit(void); -void UnitHandler(TYPE_UNIT* ptrUnit); +void UnitHandler(TYPE_UNIT* unitArray, size_t sz); // Unit information uint8_t UnitGetHpFromID(uint8_t id); @@ -101,9 +102,6 @@ void UnitDraw(TYPE_UNIT* ptrUnit, TYPE_CAMERA* ptrCamera, bool bHighlight void UnitMoveTo(TYPE_UNIT* ptrUnit, uint16_t x, uint16_t y); -void UnitAcceptAction(TYPE_UNIT* ptrUnit); -void UnitResetMenuLevel(void); - // Selection index const char* UnitGetActionString(UNIT_ACTION action); |
