]> git.localhorst.tv Git - l2e.git/blob - src/menu/PartyMenu.cpp
added party menu state stub
[l2e.git] / src / menu / PartyMenu.cpp
1 /*
2  * PartyMenu.cpp
3  *
4  *  Created on: Oct 21, 2012
5  *      Author: holy
6  */
7
8 #include "PartyMenu.h"
9
10 #include "Resources.h"
11 #include "../app/Application.h"
12 #include "../app/Input.h"
13 #include "../common/GameConfig.h"
14 #include "../geometry/Vector.h"
15 #include "../graphics/Texture.h"
16
17 using app::Input;
18 using common::GameConfig;
19 using geometry::Vector;
20
21 namespace menu {
22
23 PartyMenu::PartyMenu(GameConfig *game)
24 : game(game) {
25
26 }
27
28 PartyMenu::~PartyMenu() {
29
30 }
31
32
33 void PartyMenu::OnEnterState(SDL_Surface *) {
34
35 }
36
37 void PartyMenu::OnExitState(SDL_Surface *) {
38
39 }
40
41 void PartyMenu::OnResumeState(SDL_Surface *) {
42
43 }
44
45 void PartyMenu::OnPauseState(SDL_Surface *) {
46
47 }
48
49
50 void PartyMenu::OnResize(int width, int height) {
51
52 }
53
54
55 void PartyMenu::HandleEvents(const Input &input) {
56         if (input.JustPressed(Input::ACTION_B)) {
57                 Ctrl().PopState();
58                 return;
59         }
60 }
61
62 void PartyMenu::UpdateWorld(float deltaT) {
63
64 }
65
66 void PartyMenu::Render(SDL_Surface *screen) {
67         Res().menubg->Render(screen, Vector<int>(), Vector<int>(screen->w, screen->h));
68 }
69
70
71 Resources &PartyMenu::Res() {
72         return *game->menuResources;
73 }
74
75 const Resources &PartyMenu::Res() const {
76         return *game->menuResources;
77 }
78
79 }