X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.cpp;h=ae882a614ed981f4083626ebab77ad894d813cbc;hb=b6502719f0f02bdb4fc39aa66fa4a369ea583036;hp=a4efc8453ffa9bd6fedbf44f709f37501617b0bf;hpb=ca31ddeab37eebaa2de5e5b1c94974fac06d418b;p=l2e.git diff --git a/src/battle/BattleState.cpp b/src/battle/BattleState.cpp index a4efc84..ae882a6 100644 --- a/src/battle/BattleState.cpp +++ b/src/battle/BattleState.cpp @@ -50,7 +50,7 @@ void BattleState::EnterState(Application &ctrl, SDL_Surface *screen) { heroesLayout->CalculatePositions(background->w, background->h, heroesPositions); attackChoices.resize(heroes.size()); for (vector::size_type i(0), end(heroes.size()); i < end; ++i) { - heroTags.push_back(HeroTag(&heroes[i], &attackChoices[i], heroTagFrame, activeHeroTagFrame, healthGauge, manaGauge, ikariGauge, heroTagSprites, heroTagFont, HeroTag::Alignment((i + 1) % 2))); + heroTags.push_back(HeroTag(&heroes[i], &attackChoices[i], res, HeroTag::Alignment((i + 1) % 2))); } } @@ -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();