I am making a strategy game so i need to command players units which can mine,build,construct and craft.
I have 2 classes designed yet:
Map - which keep the tasks in stack (each task type separately)
Unit - which need to do task
I need to handle not only accomplishing and assigning of tasks, but also canceling during progress (for example user decided that he dont want to build there, but the unit is on a half way to construction site already with mats, so the unit need to bring them back ). Can you guys give me any ideas or some simple class diagrams pls ?