Cheers eXpl0it3r, i will take a look, but yea im most probably going to use my gState as the state handler, as it wont be doing much, but for more complex states like Battle and Network Battle i will make its own class file, but also I would just like to ask another question,
Now i have a image manager and I have it in my gState class, now any other class that needs to load textures and stuff, takes a reference from gState, but I have hit a problem. I have created a class called gEntity, these are used to display text, graphics, sounds bla bla bla, anything small, now I want to declare the variable
std::vector<gEntity> gEnts;
but i have a constructor for gEntity which is
gEntity::gEntity(gImageManager& imgMan)
now this vector will work, but they dont have the reference held, how can I give them the reference in the helper and initialize my vector? If the worst comes I don't mind making a vector of gEnts and just passing the reference when needed.
Canvas