#include "../common/GameConfig.h"
#include "../common/GameState.h"
#include "../common/Hero.h"
-#include "../geometry/Vector.h"
+#include "../math/Vector.h"
#include "../graphics/Sprite.h"
using app::Input;
-using geometry::Vector;
+using math::Vector;
namespace menu {
}
-void SelectHero::UpdateWorld(float deltaT) {
+void SelectHero::UpdateWorld(Uint32 deltaT) {
}
}
void SelectHero::RenderCursor(SDL_Surface *screen) const {
+ const Vector<int> offset((screen->w - partyMenu->Width()) / 2, (screen->h - partyMenu->Height()) / 2);
Vector<int> position(
0, Game().state->party[cursor]->BattleSprite()->Height());
position += partyMenu->StatusOffset(cursor);
- Res().heroCursor->Draw(screen, position);
+ Res().heroCursor->Draw(screen, position + offset);
}
}