I have a player class which has a function for a vector inventory. I have a seperate class for creating equipment (Sword, Shield, etc.). I'm unsure of how to "add" the equipment to the vector so that it is available on request to display that it is indeed in the players inventory. I'm not sure what I can do to accomplish this? Any help is GREATLY appreciated!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <iostream>
#ifndef EQUIPMENT_H
#define EQUIPMENT_H
class equipment
{
public:
int damage, armor;
equipment(int setdamage, int setarmor);
};
#endif