class might
{
public:
void use(mastermind &game, chosenOne &hero, might *power, gameplay &play)
virtualvoid effect(mastermind &game, int level)
virtualvoid effect(chosenOne &hero, int level)
virtualvoid effect( gameplay &play)
}
class moreTrys : public might
{
public:
virtualvoid effect(mastermind &game, int level);
};
class heal : public might
{
public:
virtualvoid effect(chosenOne &hero, int level);
};
class escape : public might
{
public:
virtualvoid effect(gameplay &play);
};
and the problem is with the effect function is there a way to create it nicly so it would use the right effect function with right arguments in something like
I thought about creating: virtual void effect(gameplay &play,chosenOne &hero,int level,mastermind &game); but in classes functions don't use those all argument and it would be a really waste and bad practice, also thought about else if for classes but it dosen't seam to be good idea either.