Page 1 of 1

Calling a member function of another Object?

Posted: December 17th, 2012, 6:04 pm
by Musi
How would you go about communicating between objects in the same scope? Say i had 3 different class objects inside the Game object, could one of these classes call a Game member function somehow?

I tried passing a function pointer to the constructor of each of these classes but the compiler wasn't having it. Maybe my syntax was wrong. Probably not the way i'm suppose to do it either.