Implement harvest worker AI
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
|
||||
typedef struct Game Game;
|
||||
|
||||
/**********************************
|
||||
* Utils
|
||||
**********************************/
|
||||
|
||||
bool entitySetPath(const ecs_entity_t entity, const Vector2 target, Game *game);
|
||||
|
||||
/**********************************
|
||||
@@ -17,7 +21,20 @@ bool entitySetPath(const ecs_entity_t entity, const Vector2 target, Game *game);
|
||||
* 0: Game (singleton)
|
||||
* 1: UnitAction
|
||||
*/
|
||||
void updateUnitActions(ecs_iter_t *it);
|
||||
void handleUnitActionsSystem(ecs_iter_t *it);
|
||||
|
||||
/*
|
||||
* 0: Game (singleton)
|
||||
* 1: UnitAI
|
||||
* 2: UnitAction
|
||||
*/
|
||||
void updateUnitAISystem(ecs_iter_t *it);
|
||||
|
||||
/*
|
||||
* 0: Game (singleton)
|
||||
* 1: UnitAction
|
||||
*/
|
||||
void updateUnitActionsSystem(ecs_iter_t *it);
|
||||
|
||||
|
||||
/**********************************
|
||||
|
||||
Reference in New Issue
Block a user