I posted my code along with the assignment issue here: http://www.daniweb.com/forums/thread121468.html
I apologize I overlooked the Game Dev section.
In short, the assignment is:
Implement a Goal Oriented AI system. The system should include C++ objects that implement Goals, Actions and Tools. Use the programming example for Chapter 3 as a model and framework.
Implement the following scenario:
Goal 1 - Obtain food.
Goal 2 - Obtain coins.
Goal 3 – Obtain metal detector.
Goal 4 – Obtain rifle.
Action 1 – Search for coins. Requires metal detector.
Action 2 – Hunt rabbit. Requires rifle.
Action 3 – Pick up metal detector.
Action 4 – Pick up rifle.
Tool 1 – Metal detector.
Tool 2 – Rifle.
I am looking for a simpler way to approach the assignment. I figure each goal could be split into a function, then each action could go with the appropriate function, but how do I use the tools to reach each goal?
Also, some goals require you to search for the nearest item, how can I do that if I do not have a pathfinding algorithm to use to find the items?
The book I am using for the class is "Game Development Essentials: Game Artificial Intelligence" by John B ahlquist Jr. and it does not state any information about how to plot items on a map. Anyone know anything about this?
I am not looking for someone to tweak my code as I think I will just start from sratch. However, any help to the questions above is much appreciated.
Thanks,
Danny