#include "battle/Monster.h"
#include "battle/PartyLayout.h"
#include "battle/Resources.h"
+#include "battle/Stats.h"
#include "common/Ikari.h"
#include "common/Inventory.h"
#include "common/Item.h"
using battle::Hero;
using battle::Monster;
using battle::PartyLayout;
+using battle::Stats;
using common::Ikari;
using common::Inventory;
using common::Item;
SDL_Surface *monsterImg(IMG_Load("test-data/monster.png"));
Sprite dummySprite(monsterImg, 64, 64);
Monster monster;
- monster.SetName("Monster");
+ monster.SetName("Lizard");
monster.SetSprite(&dummySprite);
- monster.SetMaxHealth(10);
- monster.SetHealth(10);
+ monster.SetLevel(1);
+ monster.SetMaxHealth(8);
+ monster.SetHealth(8);
+ monster.SetStats(Stats(14, 6, 6, 6, 6, 6, 6));
+ monster.SetReward(3, 5);
SDL_Surface *maximImg(IMG_Load("test-data/maxim.png"));
Sprite maximSprite(maximImg, 64, 64);
maxim.SetMaxMana(20);
maxim.SetMana(20);
maxim.SetIP(0);
+ maxim.SetStats(Stats(28, 22, 28, 17, 14, 100, 10));
ComplexAnimation maximAttackAnimation(&maximSprite, framerate);
// TODO: cross check double frames; could be related to differences in framerates
maximAttackAnimation.AddFrames(1, 0, Vector<int>(0, 0), 7); // TODO: maybe this could also be a pause before the battle animation
selan.SetHealth(28);
selan.SetMaxMana(23);
selan.SetMana(23);
- selan.SetIP(1);
+ selan.SetIP(0);
+ selan.SetStats(Stats(23, 21, 23, 19, 22, 80, 13));
ComplexAnimation selanAttackAnimation(&selanSprite, framerate);
selanAttackAnimation.AddFrames(1, 0, Vector<int>(4, 0), 2);
selanAttackAnimation.AddFrame(1, 0, Vector<int>(8, 2));
guy.SetHealth(38);
guy.SetMaxMana(0);
guy.SetMana(0);
- guy.SetIP(254);
+ guy.SetIP(0);
+ guy.SetStats(Stats(38, 25, 38, 13, 8, 90, 8));
ComplexAnimation guyAttackAnimation(&guySprite, framerate);
guyAttackAnimation.AddFrames(1, 0, Vector<int>(-4, 0), 2);
guyAttackAnimation.AddFrames(1, 0, Vector<int>(-8, 0), 2);
dekar.SetHealth(38);
dekar.SetMaxMana(0);
dekar.SetMana(0);
- dekar.SetIP(255);
+ dekar.SetIP(0);
+ dekar.SetStats(Stats(46, 29, 46, 13, 7, 100, 5));
ComplexAnimation dekarAttackAnimation(&dekarSprite, framerate);
dekarAttackAnimation.AddFrame(1, 0, Vector<int>(4, 0));
dekarAttackAnimation.AddFrame(1, 0, Vector<int>(8, 2));