]> git.localhorst.tv Git - l2e.git/blob - src/battle/Resources.h
preliminary solution for loading inventory in item select
[l2e.git] / src / battle / Resources.h
1 /*
2  * Resources.h
3  *
4  *  Created on: Aug 8, 2012
5  *      Author: holy
6  */
7
8 #ifndef BATTLE_RESOURCES_H_
9 #define BATTLE_RESOURCES_H_
10
11 #include "../graphics/Menu.h"
12
13 namespace common {
14         class Inventory;
15         class Item;
16 }
17 namespace graphics {
18         class Font;
19         class Frame;
20         class Gauge;
21         class Sprite;
22 }
23
24 namespace battle {
25
26 struct Resources {
27
28         graphics::Sprite *moveIcons;
29         graphics::Sprite *attackIcons;
30         graphics::Sprite *attackChoiceIcons;
31
32         graphics::Frame *heroTagFrame;
33         graphics::Frame *activeHeroTagFrame;
34
35         graphics::Font *heroTagFont;
36         graphics::Sprite *heroTagLabels;
37
38         graphics::Gauge *healthGauge;
39         graphics::Gauge *manaGauge;
40         graphics::Gauge *ikariGauge;
41
42         graphics::Frame *selectFrame;
43
44         graphics::Font *normalFont;
45         graphics::Font *disabledFont;
46
47         graphics::Sprite *menuCursor;
48
49         const char *spellMenuHeadline;
50         graphics::Menu</* Spell */ void *> spellMenuPrototype;
51
52         common::Inventory *inventory;
53         const char *itemMenuHeadline;
54         graphics::Menu<const common::Item *> itemMenuPrototype;
55
56         const char *ikariMenuHeadline;
57         graphics::Menu</* Ikari or Item */ void *> ikariMenuPrototype;
58
59
60         Resources()
61         : moveIcons(0)
62         , attackIcons(0)
63         , attackChoiceIcons(0)
64
65         , heroTagFrame(0)
66         , activeHeroTagFrame(0)
67
68         , heroTagFont(0)
69         , heroTagLabels(0)
70
71         , healthGauge(0)
72         , manaGauge(0)
73         , ikariGauge(0)
74
75         , selectFrame(0)
76
77         , normalFont(0)
78         , disabledFont(0)
79
80         , menuCursor(0)
81         , spellMenuHeadline("")
82         , inventory(0)
83         , itemMenuHeadline("")
84         , ikariMenuHeadline("")
85         { }
86
87 };
88
89 }
90
91 #endif /* BATTLE_RESOURCES_H_ */