I tried to integrate the enemyai and so on to the object class (CObject). I think it is a good idea, but as I recently have seen, some objects check collisions within the functions. I'm not sure, if it's better to that.
If I leave that way, I will have to pass a vector pointer to those functions.
Other alternative would be creating a class which manages the AI stuff. I don't like the idea, because it means two more files and moving to virtual fuctions, inherting classes will be harder.
We will have to write most the AI for better performance, but I won't do that this time. we have other things to do now.
Passing a vector pointer of the objects, might be the best idea, even if it outs the concept a bit.
damn you globals and externs!