ok im writing an RPG and just roughing in all the classes
I want the main class to be character class
I think!!
im not putting this in code tags because like i said its just rough
class character{
//this will be the functions
public:
int getLife();
void setLife();
int getMana(); //leaving out all definitions for now
void setMana();
int getWepDam();
int getMoney();
void setMoney();
int getArmorFactor();
private:
int life;
int mana;
weapon currentWeapon; // trouble here!!
armor currentArmor;
int money;
}
here is where im having trouble
I have a weapon class as well as an
armor class but obviously they will
change as the game goes on so do
I set aside the memory for say the
weapon object and then have
these point to the slot to obtain the
current weapon values
I know its all rough but any help would be appreciated
thanks