]> git.localhorst.tv Git - l2e.git/blob - src/menu/PartyMenu.h
added frames for status menu
[l2e.git] / src / menu / PartyMenu.h
1 /*
2  * PartyMenu.h
3  *
4  *  Created on: Oct 21, 2012
5  *      Author: holy
6  */
7
8 #ifndef MENU_PARTYMENU_H_
9 #define MENU_PARTYMENU_H_
10
11 #include "fwd.h"
12 #include "HeroStatus.h"
13 #include "../app/State.h"
14 #include "../common/fwd.h"
15 #include "../geometry/Vector.h"
16
17 namespace menu {
18
19 class PartyMenu
20 : public app::State {
21
22 public:
23         explicit PartyMenu(common::GameConfig *);
24         virtual ~PartyMenu();
25
26 public:
27         virtual void HandleEvents(const app::Input &);
28         virtual void UpdateWorld(float deltaT);
29         virtual void Render(SDL_Surface *);
30
31 public:
32         Resources &Res();
33         const Resources &Res() const;
34
35 private:
36         virtual void OnEnterState(SDL_Surface *screen);
37         virtual void OnExitState(SDL_Surface *screen);
38         virtual void OnResumeState(SDL_Surface *screen);
39         virtual void OnPauseState(SDL_Surface *screen);
40
41         virtual void OnResize(int width, int height);
42
43         void RenderHeros(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
44         void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
45         void RenderInfo(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
46
47 private:
48         HeroStatus status[4];
49         common::GameConfig *game;
50
51 };
52
53 }
54
55 #endif /* MENU_PARTYMENU_H_ */