summaryrefslogtreecommitdiff
path: root/Player.h
diff options
context:
space:
mode:
Diffstat (limited to 'Player.h')
-rw-r--r--Player.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Player.h b/Player.h
index e7c15fc..514386f 100644
--- a/Player.h
+++ b/Player.h
@@ -47,6 +47,7 @@ class Player
void createUnit(TYPE_UNIT_ID id, TYPE_COLLISION_BLOCK cb);
uint8_t getPopulation(void) {return (unit_i + 1);}
void ShowResources(void);
+ uint8_t getAliveUnits(void);
private:
// Player definition
@@ -93,7 +94,10 @@ class Player
// Action callbacks
void ActionCreateUnit(TYPE_UNIT* ptrUnit, TYPE_UNIT_ID unit);
- void ActionCreateBuilding(TYPE_UNIT* ptrUnit, TYPE_UNIT_ID bldg);
+ void ActionCreateBuilding(TYPE_UNIT_ID bldg);
+
+ // Collision detection
+ bool checkCollisionAgainstOtherUnits(TYPE_COLLISION_BLOCK* cb);
};
#endif // __cplusplus