#include "InventoryMenu.h"
#include "Resources.h"
#include "SelectHero.h"
+#include "SpellMenu.h"
#include "StatusMenu.h"
#include "../app/Application.h"
#include "../app/Input.h"
Ctrl().PushState(new InventoryMenu(this));
break;
case MENU_ITEM_SPELL:
+ Ctrl().PushState(new SelectHero(this, this, this, OnSpellSelect));
break;
case MENU_ITEM_CAPSULE:
break;
new StatusMenu(self, index));
}
+void PartyMenu::OnSpellSelect(void *ref, int index) {
+ PartyMenu *self(reinterpret_cast<PartyMenu *>(ref));
+ self->Ctrl().ChangeState(
+ new SpellMenu(self, index));
+}
+
}