Hey everyone I'm trying to do my own changed version of the ant-scenario.
It contains multiple ant-types which are responsible for different tasks and such as an over and underground.
What causes me trouble is the task part.
First of all I want to store the informations of the task when it is assigned to an ant to the ant object (Dont think it is a real problem) but afterwards i want to assign a que of tasks to the ant once it has a task such as walk to foodstorage,pick-up food,go to the queen, feed her and then make the task solved. I couldnt come up with a real effective idea of how to solve it so ideas and suggestions are very welcome.
Also one problem (which i will leave for later) is the intelligent pathfinding. I looked it up and found the A* - algorithm. I did understand the concept of it however i couldnt make it work for myself by any means. As for now i am fine with that the ants walk through certain blocks.
TL;DR
Need help in storing information from one object to another and then this other should fall into an efficient que of tasks
Thanks a lot in advance