heroesLayout.AddPosition(Point<Uint8>(160, 152));
SDL_Surface *monsterImg(IMG_Load("test-data/monster.png"));
- Sprite dummySprite(monsterImg, 64, 64);
+ Sprite monsterSprite(monsterImg, 64, 64);
Monster monster;
monster.SetName("Lizard");
- monster.SetSprite(&dummySprite);
+ monster.SetSprite(&monsterSprite);
monster.SetLevel(1);
monster.SetMaxHealth(8);
monster.SetHealth(8);
monster.SetStats(Stats(14, 6, 6, 6, 6, 6, 6));
monster.SetReward(3, 5);
+ ComplexAnimation monsterAttackAnimation(&monsterSprite, 120);
+ monsterAttackAnimation.AddFrame(0, 1, Vector<int>(16, 0));
+ monsterAttackAnimation.AddFrame(0, 0, Vector<int>(16, 0));
+ monsterAttackAnimation.AddFrame(0, 1, Vector<int>(16, 0));
+ monster.SetAttackAnimation(&monsterAttackAnimation);
SDL_Surface *maximImg(IMG_Load("test-data/maxim.png"));
Sprite maximSprite(maximImg, 64, 64);