Original Post
Hey all,
I''ve been sitting up at my ''puter all night, and have been thinking... which is better for holding rpg stats? Structs, or classes? I have Visual C++, so here''s what I came up with:
First, the struct:
struct rpgCreature
{
char Name;
char Class;
int stregnth;
int dexterity;
int health;
int magic; // or whatever ability name you like
}
And, the Class:
class rpgCreature {
public:
char Name;
char Class;
private:
int stregnth;
int dexterity;
int health;
int magic;
}
I could actually specify exactly how the class looks, but my fingers are beginning to revolt...
What do you think?
DarkEcclipse...