]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/PartyMenu.cpp
added party menu state stub
[l2e.git] / src / menu / PartyMenu.cpp
diff --git a/src/menu/PartyMenu.cpp b/src/menu/PartyMenu.cpp
new file mode 100644 (file)
index 0000000..1243df9
--- /dev/null
@@ -0,0 +1,79 @@
+/*
+ * PartyMenu.cpp
+ *
+ *  Created on: Oct 21, 2012
+ *      Author: holy
+ */
+
+#include "PartyMenu.h"
+
+#include "Resources.h"
+#include "../app/Application.h"
+#include "../app/Input.h"
+#include "../common/GameConfig.h"
+#include "../geometry/Vector.h"
+#include "../graphics/Texture.h"
+
+using app::Input;
+using common::GameConfig;
+using geometry::Vector;
+
+namespace menu {
+
+PartyMenu::PartyMenu(GameConfig *game)
+: game(game) {
+
+}
+
+PartyMenu::~PartyMenu() {
+
+}
+
+
+void PartyMenu::OnEnterState(SDL_Surface *) {
+
+}
+
+void PartyMenu::OnExitState(SDL_Surface *) {
+
+}
+
+void PartyMenu::OnResumeState(SDL_Surface *) {
+
+}
+
+void PartyMenu::OnPauseState(SDL_Surface *) {
+
+}
+
+
+void PartyMenu::OnResize(int width, int height) {
+
+}
+
+
+void PartyMenu::HandleEvents(const Input &input) {
+       if (input.JustPressed(Input::ACTION_B)) {
+               Ctrl().PopState();
+               return;
+       }
+}
+
+void PartyMenu::UpdateWorld(float deltaT) {
+
+}
+
+void PartyMenu::Render(SDL_Surface *screen) {
+       Res().menubg->Render(screen, Vector<int>(), Vector<int>(screen->w, screen->h));
+}
+
+
+Resources &PartyMenu::Res() {
+       return *game->menuResources;
+}
+
+const Resources &PartyMenu::Res() const {
+       return *game->menuResources;
+}
+
+}