X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmain.cpp;h=90f08d53bed888b629406ef15b248de497511e64;hb=dbf125bd2ef4f68af92aa0872e8d8a6abaf4ee00;hp=3719a8de6e452e7850c5c8493c0aa480081a4f1e;hpb=912fc1a30dc8ec2ab782256d32e517206c87a04c;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index 3719a8d..90f08d5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -92,16 +92,8 @@ int main(int argc, char **argv) { // temporary test data SDL_Surface *bg(IMG_Load("test-data/battle-bg.png")); - PartyLayout monstersLayout; - monstersLayout.AddPosition(Vector(88, 88)); - monstersLayout.AddPosition(Vector(128, 88)); - monstersLayout.AddPosition(Vector(168, 88)); - monstersLayout.AddPosition(Vector(208, 88)); - PartyLayout heroesLayout; - heroesLayout.AddPosition(Vector(48, 136)); - heroesLayout.AddPosition(Vector(128, 136)); - heroesLayout.AddPosition(Vector(80, 152)); - heroesLayout.AddPosition(Vector(160, 152)); + PartyLayout monstersLayout(*intp.GetPartyLayout("monstersLayout")); + PartyLayout heroesLayout(*intp.GetPartyLayout("heroesLayout")); Monster monster(*intp.GetMonster("lizard")); Hero maxim(*intp.GetHero("maxim"));