Original Post
okay say I have ITEM as the base class WEAPON || SHIELD || POTION will be derived from ITEM ITEM will have actions.. multiple actions per item will be possible what would be a better solution.. a) there would be a limited number of actions perItem.. b) the derived classes would use if statements in the action to determine what action should take place (c)-or - could i just have "virtual actions()" and in the derived overload it for the number of actions i need? - is that allowed in c++ anyways... hope i make sense thanks
//(A)
class CITEM
{
..
..
virtual action1();
virtual action2();
virtual action3();
..
..
virual action9();
}
// - OR - //
//(B)
Class CITEM
{
..
..
virtual actions();
}