Hi.
I dunno if this is the correct place for that question, but as here are a lot of competent coders I just try.![]()
Well, I am not completly sure how to structure my bot (it is not a WoW one).
I got a huge, huge class built above the heart piece, a hook on EndScene.
That class is more a container for other things like object handler, communication, AI ... everything that my bot does.
Basically, I inject my DLL, create an instance of my bot on the heap, that godclass' constructor does all the initialization for the whole bot and the remote thread leaves after the bot got "allocated". If the bot gets the command to quit, the object deletes itself and the destructor does the clean up.
I often hear that using "godclasses" like this is bad style.
What do you think about it and just in case someone would like to share his knowledge, how do you handle it? Thanks.
Greetings,
Flo