]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/ScenarioMenu.cpp
renamed namespace geometry -> math
[l2e.git] / src / menu / ScenarioMenu.cpp
index a2aca87875b899aa1333062d612c8b67026ad06d..a86f9a93412654bcba39ad8d41ed72f291bf974a 100644 (file)
@@ -1,14 +1,8 @@
-/*
- * ScenarioMenu.cpp
- *
- *  Created on: Nov 30, 2012
- *      Author: holy
- */
-
 #include "ScenarioMenu.h"
 
 #include "PartyMenu.h"
 #include "Resources.h"
+#include "../app/Application.h"
 #include "../app/Input.h"
 #include "../common/GameConfig.h"
 #include "../common/GameState.h"
@@ -20,7 +14,7 @@
 using app::Input;
 using common::Inventory;
 using common::Item;
-using geometry::Vector;
+using math::Vector;
 using graphics::Font;
 using graphics::Frame;
 
@@ -106,7 +100,7 @@ int ScenarioMenu::Height() const {
        return parent->Height();
 }
 
-void ScenarioMenu::RenderHeadline(SDL_Surface *screen, const geometry::Vector<int> &offset) const {
+void ScenarioMenu::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(2 * font.CharWidth(), font.CharHeight());
@@ -116,7 +110,7 @@ void ScenarioMenu::RenderHeadline(SDL_Surface *screen, const geometry::Vector<in
        font.DrawString(parent->Res().scenarioMenuHeadline, screen, offset + textOffset);
 }
 
-void ScenarioMenu::RenderItems(SDL_Surface *screen, const geometry::Vector<int> &offset) const {
+void ScenarioMenu::RenderItems(SDL_Surface *screen, const math::Vector<int> &offset) const {
        const Font &font(*parent->Res().normalFont);
        const Frame &frame(*parent->Res().statusFrame);
        const Vector<int> menuOffset(3 * font.CharWidth(), font.CharHeight() + font.CharHeight() / 4);