From: Daniel Karbach Date: Wed, 8 Aug 2012 15:07:45 +0000 (+0200) Subject: tagged some TODOs X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=7b2600e51a05efe1c102389a25b8123f30a972b0;p=l2e.git tagged some TODOs --- diff --git a/src/battle/BattleState.cpp b/src/battle/BattleState.cpp index a4efc84..f1e3d07 100644 --- a/src/battle/BattleState.cpp +++ b/src/battle/BattleState.cpp @@ -59,6 +59,7 @@ void BattleState::ExitState(Application &ctrl, SDL_Surface *screen) { } void BattleState::ResumeState(Application &ctrl, SDL_Surface *screen) { + // TODO: check for victory, defeat or run // reset attack choices activeHero = -1; attackChoices.clear(); diff --git a/src/battle/states/SelectAttackType.cpp b/src/battle/states/SelectAttackType.cpp index 2664295..b3b3e0b 100644 --- a/src/battle/states/SelectAttackType.cpp +++ b/src/battle/states/SelectAttackType.cpp @@ -61,19 +61,23 @@ void SelectAttackType::HandleInput(const Input &input) { battle->SetAttackType(battle->GetAttackTypeMenu().Selected()); switch (battle->GetAttackTypeMenu().Selected()) { case AttackChoice::SWORD: + // TODO: switch to target select battle->NextHero(); break; case AttackChoice::MAGIC: // TODO: switch to spell select + battle->NextHero(); break; case AttackChoice::DEFEND: battle->NextHero(); break; case AttackChoice::IKARI: // TODO: switch to ikari attack select + battle->NextHero(); break; case AttackChoice::ITEM: // TODO: switch to item select + battle->NextHero(); break; default: throw std::logic_error("selected invalid attack type");