X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain.cpp;h=5e14001b8454e922348c7260ffd7bbdec9b1e95b;hb=26ea92a0e275e32f1fc166cde407a02c3e7e476b;hp=cd76905d55b1371a02152d8248454c7996514cb0;hpb=57a9949304b1d938bdb795213a8f46a7e28fcf7c;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index cd76905..5e14001 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -78,6 +78,8 @@ int main(int argc, char **argv) { Sprite dummySprite(monsterImg, 64, 64); Monster monster; monster.SetSprite(&dummySprite); + monster.SetMaxHealth(10); + monster.SetHealth(10); SDL_Surface *maximImg(IMG_Load("test-data/maxim.png")); Sprite maximSprite(maximImg, 64, 64); @@ -193,6 +195,14 @@ int main(int argc, char **argv) { Sprite handCursorSprite(handCursorImg, 32, 32); battleRes.menuCursor = &handCursorSprite; + SDL_Surface *targetingIconsImg(IMG_Load("test-data/targeting-icons.png")); + Sprite weaponTargetCursor(targetingIconsImg, 32, 32); + battleRes.weaponTargetCursor = &weaponTargetCursor; + // TODO: add image for magic targeting cursor + battleRes.magicTargetCursor = &weaponTargetCursor; + // TODO: add image for item targeting cursor + battleRes.itemTargetCursor = &weaponTargetCursor; + battleRes.spellMenuHeadline = "Please choose a spell."; battleRes.spellMenuPrototype = Menu(&normalFont, &disabledFont, &handCursorSprite, 12, 6, 8, 0, 2, 32); battleRes.spellMenuPrototype.Add("Reset : 0", 0, false); @@ -264,7 +274,7 @@ int main(int argc, char **argv) { battleRes.inventory = &inventory; battleRes.itemMenuHeadline = "Please choose an item."; - battleRes.itemMenuPrototype = Menu(&normalFont, &disabledFont, &handCursorSprite, 15, 6, 8, 16, 1, 32); + battleRes.itemMenuPrototype = Menu(&normalFont, &disabledFont, &handCursorSprite, 15, 6, 8, 16, 1, 32, 2, ':'); battleRes.ikariMenuHeadline = "Please choose equipment."; battleRes.ikariMenuPrototype = Menu(&normalFont, &disabledFont, &handCursorSprite, 26, 6, 8, 16, 1, 32);