I am making a robot AI thing...well, the AI is stored in an instruction set...I put a robot is in class Robot, now I have begun making a file for executing the instructions..(using a namespace also)...now, the instruction set has to access a robot all the time..therefor you must basically pass a this pointer, but my Robot class is already pretty big..I feel it may be kind of bloated if I were to add the entire instruction set(and parts of the decoder) into the Robot class though ...
what should I do?
My only other idea is to use friend classes(is that possible?) but even then, wouldn't you still need to pass a pointer to the current Robot class!?
Would this be better in the actual class?
- Kevin McGuire
- Member
- Posts: 843
- Joined: Tue Nov 09, 2004 12:00 am
- Location: United States
- Contact: