-/*
- * ConfigMenu.cpp
- *
- * Created on: Nov 29, 2012
- * Author: holy
- */
-
#include "ConfigMenu.h"
#include "PartyMenu.h"
#include "Resources.h"
+#include "../app/Application.h"
+#include "../app/Input.h"
#include "../common/GameConfig.h"
#include "../common/GameState.h"
#include "../graphics/Font.h"
#include "../graphics/Frame.h"
+#include "../math/Vector.h"
using app::Input;
using common::GameState;
-using geometry::Vector;
+using math::Vector;
using graphics::Font;
using graphics::Frame;
void ConfigMenu::OnEnterState(SDL_Surface *) {
-
+ configMenu.StartAnimation(Ctrl());
}
void ConfigMenu::OnExitState(SDL_Surface *) {
}
}
-void ConfigMenu::UpdateWorld(float deltaT) {
+void ConfigMenu::UpdateWorld(Uint32 deltaT) {
}
RenderMenu(screen, offset + menuOffset);
}
-void ConfigMenu::RenderHeadline(SDL_Surface *screen, const geometry::Vector<int> &offset) const {
+void ConfigMenu::RenderHeadline(SDL_Surface *screen, const math::Vector<int> &offset) const {
const Font &font(*parent->Res().normalFont);
const Frame &frame(*parent->Res().statusFrame);
const Vector<int> textOffset(
font.DrawString(parent->Res().mainMenuConfigText, screen, offset + textOffset, 6);
}
-void ConfigMenu::RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const {
+void ConfigMenu::RenderMenu(SDL_Surface *screen, const math::Vector<int> &offset) const {
const Resources &res(parent->Res());
const Font &font(*res.normalFont);
const Font &inactiveFont(*res.inactiveFont);