Monster monster;
monster.SetSprite(&dummySprite);
- SDL_Surface *heroImg(IMG_Load("test-data/hero.png"));
- Sprite heroSprite(heroImg, 64, 64);
- Hero hero;
- hero.SetName("Name");
- hero.SetLevel(34);
- hero.SetSprite(&heroSprite);
- hero.SetMaxHealth(100);
- hero.SetHealth(50);
- hero.SetMaxMana(100);
- hero.SetMana(100);
- hero.SetIP(255);
+ SDL_Surface *maximImg(IMG_Load("test-data/maxim.png"));
+ Sprite maximSprite(maximImg, 64, 64);
+ Hero maxim;
+ maxim.SetName("Maxim");
+ maxim.SetLevel(1);
+ maxim.SetSprite(&maximSprite);
+ maxim.SetMaxHealth(33);
+ maxim.SetHealth(33);
+ maxim.SetMaxMana(20);
+ maxim.SetMana(20);
+ maxim.SetIP(0);
+
+ SDL_Surface *selanImg(IMG_Load("test-data/selan.png"));
+ Sprite selanSprite(selanImg, 64, 64);
+ Hero selan;
+ selan.SetName("Selan");
+ selan.SetLevel(1);
+ selan.SetSprite(&selanSprite);
+ selan.SetMaxHealth(28);
+ selan.SetHealth(28);
+ selan.SetMaxMana(23);
+ selan.SetMana(23);
+ selan.SetIP(0);
+
+ SDL_Surface *guyImg(IMG_Load("test-data/guy.png"));
+ Sprite guySprite(guyImg, 64, 64);
+ Hero guy;
+ guy.SetName("Guy");
+ guy.SetLevel(1);
+ guy.SetSprite(&guySprite);
+ guy.SetMaxHealth(38);
+ guy.SetHealth(38);
+ guy.SetMaxMana(0);
+ guy.SetMana(0);
+ guy.SetIP(0);
+
+ SDL_Surface *dekarImg(IMG_Load("test-data/dekar.png"));
+ Sprite dekarSprite(dekarImg, 64, 64);
+ Hero dekar;
+ dekar.SetName("Dekar");
+ dekar.SetLevel(1);
+ dekar.SetSprite(&dekarSprite);
+ dekar.SetMaxHealth(38);
+ dekar.SetHealth(38);
+ dekar.SetMaxMana(0);
+ dekar.SetMana(0);
+ dekar.SetIP(0);
SDL_Surface *attackIcons(IMG_Load("test-data/attack-type-icons.png"));
Sprite attackIconsSprite(attackIcons, 32, 32);
battleState->AddMonster(monster);
battleState->AddMonster(monster);
battleState->AddMonster(monster);
- battleState->AddHero(hero);
- battleState->AddHero(hero);
- battleState->AddHero(hero);
- battleState->AddHero(hero);
+ battleState->AddHero(maxim);
+ battleState->AddHero(selan);
+ battleState->AddHero(guy);
+ battleState->AddHero(dekar);
Application app(&screen, battleState);
app.Buttons().MapKey(SDLK_w, Input::PAD_UP);
app.Buttons().MapKey(SDLK_d, Input::PAD_RIGHT);