summaryrefslogtreecommitdiff
path: root/Unit.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 /Unit.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 'Unit.h')
-rw-r--r--Unit.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Unit.h b/Unit.h
index 0f554c7..dd9936f 100644
--- a/Unit.h
+++ b/Unit.h
@@ -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);