Hello everyone,
I'm somewhat new to C++. I hope you can help me with the following.
I have a base class called CItem. I also have a global scope enum...
CItem will have a data member of Body_Part type that will describe where the item can be worn. It is defined globally because the CPlayer class will also use it.PHP Code:
enum Body_Part { NA, Head, Neck, Body, Left_Arm, Right_Arm, Waist, Legs, Feet };
The problem I'm having is twofold:
How can I describe an item that can be used in more than one body part?
I thought of a vector of Body_Part elements. But isn't this overwhelming?
And,
A Right_Arm body item can also be used on the Left_Arm. How can I make this happen? I guess perhaps the first question will also answer this one.
Thank you