well I have this class which I call Critter and I use it to load a critter with with
Critter* Mobs;
Mobs=new Critter;
I want to try make another class (ex rat, goblin, skeleton) that uses ll the critter variables and functions so that I can still use my existing code when search through my critters which is
for (int I = 0; I < 10; ++I)
{Mobs[I].attack();
I am thinking that I could maybe create another class but I am not sure how I load up the new information into critters class
some help would be appreciated
1 2 3 4 5 6 7
Critter* Mobs;
Mobs=new Critter[10];
// buncha code
for (int I = 0; I < 10; ++I)
{Mobs[I].attack();
}