Thanks for all the replies. To be honest I have little to no experience with vectors so I will stay away from those for now. And most of what you guys said was way over my head.
I ended up doing away getAbilities(). Instead I just declared a private string mobAbilities[x] where x is the total number of all spells I plan on using (not just the ones a monster is 'allowed' to cast). I set up CastSpell() member function to just roll a random number for only the spells they can use. It should work for now...
Code:
string Mobs::CastSpell() {
if (mobName == "Troll Mage") {
mobAbilities[x] = {"MageSpell1", "MageSpell2", "Spell3",
"WarriorSpell1","WarriorSpell2"...etc}
spellCasted = mobAbilities[rand() % 3];
I can already see a future problem, like if a monsters can cast MageSpell1, MageSpell3 and WarriorSpell2....not sure how I can randomize that.
I might have to finally start looking at vectors and take the advice about them.
Thanks again.