summaryrefslogtreecommitdiff
path: root/Player.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-09-09 12:47:17 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-09-09 12:47:17 +0200
commita7dd9781961b5f26d5dca6829e1933dff6209d23 (patch)
tree6e3f1c469e6997fedbaa096f377d67f99a65ae47 /Player.h
parent786dccd2bc0946d48b8a2758ef2c607678bc8dd9 (diff)
downloadpocketempires-a7dd9781961b5f26d5dca6829e1933dff6209d23.tar.gz
Simple collision detection between units added. libgamebuino was always updating header files, so targets were always being rebuilt.
Diffstat (limited to 'Player.h')
-rw-r--r--Player.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Player.h b/Player.h
index 858f0b7..36b5e94 100644
--- a/Player.h
+++ b/Player.h
@@ -46,6 +46,7 @@ class Player
bool isHuman(void) {return human;}
bool createUnit(TYPE_UNIT_ID id, TYPE_COLLISION_BLOCK cb);
uint8_t getPopulation(void) {return (unit_i + 1);}
+ void ShowResources(void);
private:
// Player definition
@@ -85,6 +86,9 @@ class Player
uint8_t showActionsMenu_counter;
uint8_t showActionsMenu_index;
void IncreaseShowActionsMenuIndex();
+
+ // Action callbacks
+ void ActionCreateUnit (TYPE_UNIT* ptrUnit);
};
#endif // __cplusplus