#include "graphics/Font.h"
#include "graphics/Frame.h"
#include "graphics/Gauge.h"
+#include "graphics/Menu.h"
#include "graphics/Sprite.h"
#include "sdl/InitImage.h"
#include "sdl/InitScreen.h"
using graphics::Font;
using graphics::Frame;
using graphics::Gauge;
+using graphics::Menu;
using graphics::Sprite;
using sdl::InitImage;
using sdl::InitScreen;
normalFont.MapChar(':', 10, 0);
normalFont.MapChar('!', 10, 0);
normalFont.MapChar('?', 10, 0);
+ // TODO: add '.' character
battleRes.normalFont = &normalFont;
+ SDL_Surface *disabledFontImg(IMG_Load("test-data/disabled-font.png"));
+ Sprite disabledFontSprite(disabledFontImg, 16, 16);
+ Font disabledFont(&disabledFontSprite);
+ disabledFont.MapRange('A', 'M', 0, 1);
+ disabledFont.MapRange('N', 'Z', 0, 2);
+ disabledFont.MapRange('a', 'm', 0, 3);
+ disabledFont.MapRange('n', 'z', 0, 4);
+ disabledFont.MapChar(':', 10, 0);
+ disabledFont.MapChar('!', 10, 0);
+ disabledFont.MapChar('?', 10, 0);
+ // TODO: add '.' character
+ battleRes.disabledFont = &disabledFont;
+
+ battleRes.spellMenuHeadline = "Please choose a spell.";
+ battleRes.spellMenuPrototype = Menu</* Spell */ void *>(&normalFont, &disabledFont, 12, 6, 8, 2, 32);
+
BattleState *battleState(new BattleState(bg, monstersLayout, heroesLayout, &battleRes));
battleState->AddMonster(monster);
battleState->AddMonster(monster);