Hello.
I've made a class called CWorld. It has members like 'hge' and 'loadedMap'.
The class looks like this:
Now, why doesn't it work to doCode: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); } };
Code:if(CWorld::hge->System_Initiate())And so on?Code:CWorld::hge->System_Start();
Also, is it possible to do
I get some errors for that...Code:typedef CWorld::hge hge;
Thanks in advance!



LinkBack URL
About LinkBacks


