#include "../graphics/Font.h"
#include "../graphics/Frame.h"
#include "../graphics/Texture.h"
+#include "../math/Vector.h"
using app::Input;
using common::Capsule;
using common::Stats;
-using geometry::Vector;
+using math::Vector;
using graphics::Font;
using graphics::Frame;
void CapsuleMenu::OnEnterState(SDL_Surface *) {
-
+ menu.StartAnimation(Ctrl());
}
void CapsuleMenu::OnExitState(SDL_Surface *) {
}
}
-void CapsuleMenu::UpdateWorld(float deltaT) {
+void CapsuleMenu::UpdateWorld(Uint32 deltaT) {
}
}
void CapsuleMenu::RenderBackground(SDL_Surface *screen) const {
- Res().capsulebg->Render(screen, Vector<int>(), Vector<int>(screen->w, screen->h));
+ Res().capsulebg->Draw(screen, Vector<int>(), Vector<int>(screen->w, screen->h));
}
void CapsuleMenu::RenderCapsule(SDL_Surface *screen, const Vector<int> &offset) const {
font.DrawNumberRight(capsule.NextLevel(), screen, lineHead);
}
-void CapsuleMenu::RenderStatsLine(SDL_Surface *screen, const geometry::Vector<int> &offset, const char *name, int value) const {
+void CapsuleMenu::RenderStatsLine(SDL_Surface *screen, const math::Vector<int> &offset, const char *name, int value) const {
const Font &font(*Res().statusFont);
const Vector<int> numberOffset(4 * font.CharWidth(), 0);