Original Post
Say I have a character. e.g. limbs, head, body etc. Is it a good idea to store him in a class under a function called "drawCharacter"? Then create a function called "moveCharacter" which moves the player, under the public x, y, z values. i.e. OOP. e.g
class mainCharacter
{
public:
mainCharacter();
GLfloat moveX;
GLfloat moveY;
GLfloat moveZ;
//////////////////////////////////////////////////////////////////////
int drawCharacter ();
int moveCharacter();
};
Okay, there are realy a few more functions and variables than just this in my class, but this will give you an idea of what I mean. I have already created it, and it works, though is there a more efficient way? How do the more experience coders do it? Even if you think you're not experienced, I wouldn't mind knowing (for curiosity's sake)? ... I'm just wondering.