X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmain.cpp;h=bd8ff4a48c0850c58232857a6b439d23bdff3853;hb=628b3a7276d0b330719e05504b23bafcf88f8fca;hp=4ea0e0e3f067c530f33a4ffa17721ddb6d84d980;hpb=c0860451b5fd681c3b3b8d985e8831276bbd917f;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index 4ea0e0e..bd8ff4a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -73,12 +73,21 @@ int main(int argc, char **argv) { Monster monster; monster.SetSprite(&dummySprite); Hero hero; + hero.SetName("Name"); + hero.SetLevel(34); hero.SetSprite(&dummySprite); + hero.SetMaxHealth(100); + hero.SetHealth(50); + hero.SetMaxMana(100); + hero.SetMana(66); + hero.SetIP(160); SDL_Surface *attackIcons(IMG_Load("test-data/attack-type-icons.png")); Sprite attackIconsSprite(attackIcons, 32, 32); + SDL_Surface *moveIcons(IMG_Load("test-data/move-icons.png")); + Sprite moveIconsSprite(moveIcons, 32, 32); - BattleState *battleState(new BattleState(bg, monstersLayout, heroesLayout, &attackIconsSprite)); + BattleState *battleState(new BattleState(bg, monstersLayout, heroesLayout, &attackIconsSprite, &moveIconsSprite)); battleState->AddMonster(monster); battleState->AddMonster(monster); battleState->AddMonster(monster);