]> git.localhorst.tv Git - l2e.git/commitdiff
tagged some TODOs
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 8 Aug 2012 15:07:45 +0000 (17:07 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 8 Aug 2012 15:07:45 +0000 (17:07 +0200)
src/battle/BattleState.cpp
src/battle/states/SelectAttackType.cpp

index a4efc8453ffa9bd6fedbf44f709f37501617b0bf..f1e3d07caffc17676d1d5bcd85bc8b5f19a75c1b 100644 (file)
@@ -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();
index 2664295929ca873055902587c0764a1f93b310a0..b3b3e0b0a6290195e56f63a2b47f543fee7f4619 100644 (file)
@@ -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");