item &operator=(const item &right);
protected:
- string myname; // Name to use in game & sorting
+ string myname; // Name to use in game
long int myprice; // How much does this item cost to buy (half to sell)
int mymodifiers[8]; // Up to 8 different modifiers handled in the sub-classes
int myuses; // How many times this item can be used by default
int getUses() { return myuses; };
void setUses(int);
+ void use(Player *p);
private:
int myuses; // How many times this item can be used