My Project
 
Loading...
Searching...
No Matches
wndstory.h
Go to the documentation of this file.
1#pragma once
2
3#include "window.h"
4
5#include "bitmaptextmultiline.h"
6
7class WndStory :public Window{
8private:
9 static const int WIDTH = 120;
10 static const int MARGIN = 6;
11
12 static const float bgR;
13 static const float bgG;
14 static const float bgB;
15
16public:
17 static const int ID_SEWERS = 0;
18 static const int ID_PRISON = 1;
19 static const int ID_CAVES = 2;
20 static const int ID_METROPOLIS = 3;
21 static const int ID_HALLS = 4;
22
23 WndStory(const std::string& text);
24
25 virtual void update();
26 static void showChapter(int id);
27private:
28 static std::map<int, std::string> CHAPTERS;
29 static void initChapters();
30
31 BitmapTextMultiline* tf;
32 float delay;
33};
Window()
Definition window.cpp:47
virtual void update()
Definition wndstory.cpp:64
WndStory(const std::string &text)
Definition wndstory.cpp:42
static const int ID_CAVES
Definition wndstory.h:19
static const int ID_SEWERS
Definition wndstory.h:17
static const int ID_HALLS
Definition wndstory.h:21
static const int ID_PRISON
Definition wndstory.h:18
static const int ID_METROPOLIS
Definition wndstory.h:20
static void showChapter(int id)
Definition wndstory.cpp:74