]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/Resources.h
removed lazy fwd headers
[l2e.git] / src / battle / Resources.h
index 5e68281548b4e1bc8cef7b9de7d01bb22a7cc62b..99ad9fc13ee5e9ab2ac7f5e131c6b43ad50bbcf7 100644 (file)
@@ -1,34 +1,26 @@
-/*
- * Resources.h
- *
- *  Created on: Aug 8, 2012
- *      Author: holy
- */
-
 #ifndef BATTLE_RESOURCES_H_
 #define BATTLE_RESOURCES_H_
 
-#include "../graphics/ComplexAnimation.h"
-#include "../graphics/Menu.h"
-
-#include <SDL.h>
-
-namespace common {
-       class Inventory;
-       class Item;
-       class Spell;
-}
 namespace graphics {
+       class Animation;
        class Font;
        class Frame;
        class Gauge;
+       struct MenuProperties;
        class Sprite;
 }
 
+#include "../graphics/Color.h"
+#include "../graphics/Menu.h"
+
+#include <SDL.h>
+
 namespace battle {
 
 struct Resources {
 
+       static const int TYPE_ID = 201;
+
        graphics::Sprite *swapCursor;
        graphics::Sprite *moveIcons;
        graphics::Sprite *attackIcons;
@@ -60,19 +52,18 @@ struct Resources {
        graphics::Sprite *itemTargetCursor;
 
        const char *spellMenuHeadline;
-       graphics::Menu<const common::Spell *> spellMenuPrototype;
+       graphics::MenuProperties *spellMenuProperties;
 
-       common::Inventory *inventory;
        const char *itemMenuHeadline;
-       graphics::Menu<const common::Item *> itemMenuPrototype;
+       graphics::MenuProperties *itemMenuProperties;
 
        const char *ikariMenuHeadline;
-       graphics::Menu<const common::Item *> ikariMenuPrototype;
+       graphics::MenuProperties *ikariMenuProperties;
        const char *noEquipmentText;
 
        const char *escapeText;
 
-       graphics::ComplexAnimation numberAnimationPrototype;
+       const graphics::Animation *numberAnimationPrototype;
 
        const graphics::Sprite *bigNumberSprite;
        const graphics::Sprite *greenNumberSprite;
@@ -95,71 +86,13 @@ struct Resources {
        int ikariLabelCol;
        int ikariLabelRow;
 
-       Uint32 heroesBgColor;
-
-
-       Resources()
-       : swapCursor(0)
-       , moveIcons(0)
-       , attackIcons(0)
-       , attackChoiceIcons(0)
-
-       , titleFrame(0)
-       , titleFont(0)
-
-       , heroTagFrame(0)
-       , activeHeroTagFrame(0)
-       , smallHeroTagFrame(0)
-       , lastSmallHeroTagFrame(0)
-
-       , heroTagFont(0)
-       , heroTagLabels(0)
-
-       , healthGauge(0)
-       , manaGauge(0)
-       , ikariGauge(0)
-
-       , selectFrame(0)
-
-       , normalFont(0)
-       , disabledFont(0)
-
-       , menuCursor(0)
-       , weaponTargetCursor(0)
-       , magicTargetCursor(0)
-       , itemTargetCursor(0)
-
-       , spellMenuHeadline("")
-       , inventory(0)
-       , itemMenuHeadline("")
-       , ikariMenuHeadline("")
-       , noEquipmentText("")
-
-       , escapeText("")
-
-       , bigNumberSprite(0)
-       , greenNumberSprite(0)
+       graphics::Color heroesBgColor;
 
-       , weaponMenuIcon(0)
-       , armorMenuIcon(0)
-       , shieldMenuIcon(0)
-       , helmetMenuIcon(0)
-       , ringMenuIcon(0)
-       , jewelMenuIcon(0)
 
-       , levelLabelCol(0)
-       , levelLabelRow(0)
-       , healthLabelCol(0)
-       , healthLabelRow(0)
-       , manaLabelCol(0)
-       , manaLabelRow(0)
-       , moveLabelCol(0)
-       , moveLabelRow(0)
-       , ikariLabelCol(0)
-       , ikariLabelRow(0)
+       Resources();
 
-       , heroesBgColor(0)
-       { }
+       static void CreateTypeDescription();
+       static void Construct(void *);
 
 };