Calling a member function of another Object?

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
Musi
Posts: 106
Joined: November 25th, 2012, 1:06 am

Calling a member function of another Object?

Post by Musi » December 17th, 2012, 6:04 pm

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.
Musi

There are 10 types of people that understand binary.
Those that do, and those that don't.

Post Reply