So I want to make an inventory. I'm going to make a vector for that, but my objects are of different classes
1 2 3
//don't want to do
vector <Misc> bag;
vector <Equipment> bag2;
I don't want to create new vectors for each class. Any workaround?
And how to create an equipment system? An equip function that checks if the action is compatible I can do, but where to store these? In another vector?
How to choose a single item from a vector to equip?