]> git.localhorst.tv Git - l2e.git/blobdiff - src/main.cpp
added spell selection battle state
[l2e.git] / src / main.cpp
index c8668dca1145f8c3da24bca4d50691be768b9c02..97a93994a634c8bcd018fb75803fcbc656d175a4 100644 (file)
@@ -138,7 +138,11 @@ int main(int argc, char **argv) {
                Gauge manaGauge(gauges, 0, 32, 0, 0, 16, 6, 1, 6);
                Gauge ikariGauge(gauges, 0, 48, 0, 0, 16, 6, 1, 6);
 
-               BattleState *battleState(new BattleState(bg, monstersLayout, heroesLayout, &attackIconsSprite, &moveIconsSprite, &heroTagFrame, &activeHeroTagFrame, &healthGauge, &manaGauge, &ikariGauge, &heroTagSprite, &heroTagFont));
+               SDL_Surface *selectFrameImg(IMG_Load("test-data/select-frame.png"));
+               Frame selectFrame(selectFrameImg, 16, 16);
+
+               // TODO: create a container for all the battle resources
+               BattleState *battleState(new BattleState(bg, monstersLayout, heroesLayout, &attackIconsSprite, &moveIconsSprite, &heroTagFrame, &activeHeroTagFrame, &healthGauge, &manaGauge, &ikariGauge, &heroTagSprite, &heroTagFont, &selectFrame));
                battleState->AddMonster(monster);
                battleState->AddMonster(monster);
                battleState->AddMonster(monster);