#include "geometry/Vector.h"
#include "graphics/ComplexAnimation.h"
#include "graphics/Font.h"
#include "geometry/Vector.h"
#include "graphics/ComplexAnimation.h"
#include "graphics/Font.h"
- monstersLayout.AddPosition(Point<Uint8>(88, 88));
- monstersLayout.AddPosition(Point<Uint8>(128, 88));
- monstersLayout.AddPosition(Point<Uint8>(168, 88));
- monstersLayout.AddPosition(Point<Uint8>(208, 88));
+ monstersLayout.AddPosition(Vector<Uint8>(88, 88));
+ monstersLayout.AddPosition(Vector<Uint8>(128, 88));
+ monstersLayout.AddPosition(Vector<Uint8>(168, 88));
+ monstersLayout.AddPosition(Vector<Uint8>(208, 88));
- heroesLayout.AddPosition(Point<Uint8>(48, 136));
- heroesLayout.AddPosition(Point<Uint8>(128, 136));
- heroesLayout.AddPosition(Point<Uint8>(80, 152));
- heroesLayout.AddPosition(Point<Uint8>(160, 152));
+ heroesLayout.AddPosition(Vector<Uint8>(48, 136));
+ heroesLayout.AddPosition(Vector<Uint8>(128, 136));
+ heroesLayout.AddPosition(Vector<Uint8>(80, 152));
+ heroesLayout.AddPosition(Vector<Uint8>(160, 152));
SDL_Surface *monsterImg(IMG_Load("test-data/monster.png"));
Sprite monsterSprite(monsterImg, 64, 64);
SDL_Surface *monsterImg(IMG_Load("test-data/monster.png"));
Sprite monsterSprite(monsterImg, 64, 64);
monster.SetStats(Stats(14, 6, 6, 6, 6, 6, 6));
monster.SetReward(3, 5);
ComplexAnimation monsterAttackAnimation(&monsterSprite, 4 * framerate);
monster.SetStats(Stats(14, 6, 6, 6, 6, 6, 6));
monster.SetReward(3, 5);
ComplexAnimation monsterAttackAnimation(&monsterSprite, 4 * framerate);
- monsterAttackAnimation.AddFrame(0, 1, Vector<int>(16, 0));
- monsterAttackAnimation.AddFrame(0, 0, Vector<int>(16, 0));
- monsterAttackAnimation.AddFrame(0, 1, Vector<int>(16, 0));
+ monsterAttackAnimation.AddFrame(0, 1, Vector<int>(0, 16));
+ monsterAttackAnimation.AddFrame(0, 0, Vector<int>(0, 16));
+ monsterAttackAnimation.AddFrame(0, 1, Vector<int>(0, 16));
monster.SetAttackAnimation(&monsterAttackAnimation);
SDL_Surface *monsterMeleeImg(IMG_Load("test-data/attack-monster.png"));
Sprite monsterMeleeSprite(monsterMeleeImg, 96, 64);
monster.SetAttackAnimation(&monsterAttackAnimation);
SDL_Surface *monsterMeleeImg(IMG_Load("test-data/attack-monster.png"));
Sprite monsterMeleeSprite(monsterMeleeImg, 96, 64);