// game data namespacenamespace Game_Data{// Basic object data struct SObject { bool alive; int x, y; int width, height; };// Base object class class CObject { public: SObject m_Sdata; virtual CObject(); virtual ~CObject(); virtual void m_Handle() = 0; virtual void m_Draw() = 0; }; // Game globals struct SGlobals { bool gamerunning; BITMAP *buffer; BITMAP *sprites; int *gamedata; }; }
Trying to finally use some of those C++ techniques I learned. Hope it won't backfire on me later...
I hope to use the sprites pointer to allocate many sprites into an array. Same with gamedata.