Can anyone tell me how to access the MyGame class variables etc from a separate .cpp file.
I can declare a prototype for a function within the MyGame class and so long as the function is placed in the same .cpp file outwith the class everything builds fine but when I move the function body into a separate .cpp which includes
using namespace Frog; and
#include <PocketFrog.h>
I get undeclared identifiers etc etc
None of my C++ books nor 2 hours searching web C++ resources tells me how to do this but it's obviously required to write a big program as I can't have everything on one source nor do I want to have to pass values as function parameters all the time.
In C you just have function prototypes and includes & everything works but there's something I'm missing with C++.