diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-11-05 19:08:38 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-11-05 19:08:38 +0100 |
| commit | 7b05778e3ef8ef01a4bb15a6ed6fde5b329a8c9b (patch) | |
| tree | 2629c7ad872b398dc045a863a75879533ce99aa0 /Player.h | |
| parent | 2d04eba931ac84e2f09d3c8391125f8a991ca7d3 (diff) | |
| download | pocketempires-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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |
