Hello.
I've made a class called CWorld. It has members like 'hge' and 'loadedMap'.
The class looks like this:
Code:
class CWorld {
public:
HGE* hge; // Leaving this as a pointer as I like using '->' for hge stuff
hgePolygonMap* loadedMap; // Same as above and other reasons
CWorld() { hge = hgeCreate(HGE_VERSION); loadedMap = new hgePolygonMap(hgeVector(SCREEN_WIDTH, SCREEN_HEIGHT), true); }
};
Now, why doesn't it work to do
Code:
if(CWorld::hge->System_Initiate())
Code:
CWorld::hge->System_Start();
And so on?
Also, is it possible to do
Code:
typedef CWorld::hge hge;
I get some errors for that...
Thanks in advance!