UNIT Class v1
Posted: 13 Feb 2006, 19:26
This is mostly intended for the beginning AI makers, but hey it provides a decent structure. It is also pretty incomplete and untested (only tried a couple commands, but they should work okay).
What does it do?
It provides most of the commands a unit can perform, and simplifies people's lifes by having one object that does most functions a unit will need. I reccomend you simply make an array/vector of 5000 of them at startup and then assign them IDs and Update() them.
http://www.fileuniverse.com/?p=showitem&ID=2409
I gotta add a couple more commandsand test it some more when i have the time, but should work no probs :)
Please comment/critique, so i can sort it for the next version.
This isnt like the mex class, a fire and forget thing. I want comments on this so if anyones gonna start going off-topic or flaming, please would you kindly go fuck a goat instead.
What does it do?
It provides most of the commands a unit can perform, and simplifies people's lifes by having one object that does most functions a unit will need. I reccomend you simply make an array/vector of 5000 of them at startup and then assign them IDs and Update() them.
http://www.fileuniverse.com/?p=showitem&ID=2409
I gotta add a couple more commandsand test it some more when i have the time, but should work no probs :)
Please comment/critique, so i can sort it for the next version.
This isnt like the mex class, a fire and forget thing. I want comments on this so if anyones gonna start going off-topic or flaming, please would you kindly go fuck a goat instead.