DrEvil
FCRI Associate!
- Reaction score
- 111
So I have a base class:
class Enemy{
int minDmg,maxDmg;
// other stuff....
}
say I want special enemies with certain different attacks or behaviours, what would be the best approach, which could let me still group the extended classes together as an 'enemy list' if possible?
class Bunny:Enemy{
void specialAttack();
}
like this is the first time I've really created a functional game... and I'm just trying to find out how I would go about in making these.
Thanks... Any help is welcome because well, I'm stumped!
class Enemy{
int minDmg,maxDmg;
// other stuff....
}
say I want special enemies with certain different attacks or behaviours, what would be the best approach, which could let me still group the extended classes together as an 'enemy list' if possible?
class Bunny:Enemy{
void specialAttack();
}
like this is the first time I've really created a functional game... and I'm just trying to find out how I would go about in making these.
Thanks... Any help is welcome because well, I'm stumped!