// Evaluate the spell number and call the method for the associated spell void castSpell(int spellNum) { switch (spellNum) { case 1: _cast.CastColdSnap(); break; case 2: _cast.CastGhostWalk(); break; case 3: _cast.CastTornado(); break; case 4: _cast.CastEMP(); break; case 5: _cast.CastAlacrity(); break; case 6: _cast.CastChaosMeteor(); break; case 7: print("Ulg, glib, Pblblblblb"); break; case 8: print("Cast: "); break; case 9: print("Cast: Forge Spirit"); break; case 10: print("Ulg, glib, Pblblblblb"); break; default: print("Invalid cast"); break; } }