I am writing a game engine in C++ with SDL, and am faced with a problem. I need to store the sprite animation coordinates for every different animation in a different array. The problem I am facing is, since I am putting the arrays in one single Player class, and there will be different players with different animations and amount of animations, how would I implement this?
Is it possible to add class members dynamically? Could I load the member variables from a text file? I've been sitting at my computer for a good hour/ hour and a half trying to figure this out.
Thanks, and all help is appreciated,