summaryrefslogtreecommitdiff
path: root/Player.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-11-05 19:08:38 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2017-11-05 19:08:38 +0100
commit7b05778e3ef8ef01a4bb15a6ed6fde5b329a8c9b (patch)
tree2629c7ad872b398dc045a863a75879533ce99aa0 /Player.h
parent2d04eba931ac84e2f09d3c8391125f8a991ca7d3 (diff)
downloadpocketempires-7b05778e3ef8ef01a4bb15a6ed6fde5b329a8c9b.tar.gz
*Removed decceleration for camera.
Improved pathfinding when a unit collides with another unit. Added generic function to find distances. Other minor changes.
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