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 /Unit.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 'Unit.h')
| -rw-r--r-- | Unit.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -79,7 +79,6 @@ typedef struct typedef enum t_availableactions { ACTION_BUILD_BARRACKS, - ACTION_ATTACK, ACTION_CREATE_PEASANT, ACTION_CREATE_SOLDIER, ACTION_BUILD_TOWER_CENTER, @@ -107,8 +106,12 @@ TYPE_RESOURCES UnitNeededResourcesFromID(TYPE_UNIT_ID id); // Rendering void UnitDraw(TYPE_UNIT* ptrUnit, TYPE_CAMERA* ptrCamera, bool bHighlighted); +// Movement void UnitMoveTo(TYPE_UNIT* ptrUnit, uint16_t x, uint16_t y); +// Collision cheking +bool UnitCheckCollisionAgainstOtherUnits(TYPE_COLLISION_BLOCK* cb, TYPE_UNIT* ptrUnitArray, TYPE_UNIT* ptrCurrentUnit); + // Selection index const char* UnitGetActionString(UNIT_ACTION action); |
