Please enable JavaScript.
Coggle requires JavaScript to display documents.
AI Think tree (Update (Arrived(Set By callback) (No task(may be caused by…
AI Think tree
Update
Arrived(Set By callback)
No task(may be caused by no path)?/ time for rethink
Determine Task
AI State != AtTask?:red_cross:
Find Minumum Distance
Get Available tasks
Find Task(s) with highest Extra priority
Remove Forbidden Tasks/unavailable
Find Task(s) With Best Task Type
Get Workspace Best Task
null?
mark unavalable
Find Path to Workspace
:red_cross: Workspace unreachable
Set CurrentTask = null
Arrived? set bool
Task execute -> returns bool finish
:check: Arrived = false &task = null
Task
OnDestination Reached
aiunit -> AISTATE = atTask
MyWorker = aiunit
Determine Task
On Task Complete
MyWorker AIState = idle
Update -> if(MyWorkerUnits!=null) -> execute