OpenXcom
1.0
Open-source clone of the original X-Com
src
Menu
TestState.h
1
#pragma once
2
/*
3
* Copyright 2010-2016 OpenXcom Developers.
4
*
5
* This file is part of OpenXcom.
6
*
7
* OpenXcom is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* OpenXcom is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with OpenXcom. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
#include "../Engine/State.h"
21
22
namespace
OpenXcom
23
{
24
25
class
SurfaceSet;
26
class
Surface;
27
class
TextButton;
28
class
Window;
29
class
Text;
30
class
TextList;
31
class
NumberText;
32
class
Slider;
33
class
ComboBox;
34
43
class
TestState
:
public
State
44
{
45
private
:
46
SurfaceSet
*_set;
47
TextButton
*_button;
48
Window
*_window;
49
Text
*_text;
50
NumberText
*_number;
51
TextList
*_list;
52
Slider
*_slider;
53
ComboBox
*_comboBox;
54
int
_i;
55
57
SDL_Surface *testSurface();
58
public
:
60
TestState
();
62
~TestState
();
63
void
think
();
64
void
blit
();
65
};
66
67
}
OpenXcom::State
A game state that receives user input and reacts accordingly.
Definition:
State.h:44
OpenXcom::Window
Box with a coloured border and custom background.
Definition:
Window.h:40
OpenXcom::TestState::think
void think()
Runs state functionality every cycle.
Definition:
TestState.cpp:125
OpenXcom::TextList
List of Text's split into columns.
Definition:
TextList.h:40
OpenXcom::TestState::~TestState
~TestState()
Cleans up the Test state.
Definition:
TestState.cpp:120
OpenXcom::Slider
Horizontal slider control to select from a range of values.
Definition:
Slider.h:34
OpenXcom::Text
Text string displayed on screen.
Definition:
Text.h:40
OpenXcom::TestState
A state purely for testing game functionality.
Definition:
TestState.h:43
OpenXcom::SurfaceSet
Container of a set of surfaces.
Definition:
SurfaceSet.h:35
OpenXcom::ComboBox
Text button with a list dropdown when pressed.
Definition:
ComboBox.h:36
OpenXcom::TestState::TestState
TestState()
Creates the Test state.
Definition:
TestState.cpp:46
OpenXcom::TestState::blit
void blit()
Blits the state to the screen.
Definition:
TestState.cpp:135
OpenXcom::TextButton
Coloured button with a text label.
Definition:
TextButton.h:38
OpenXcom::NumberText
Number digits displayed on the screen.
Definition:
NumberText.h:29
Generated by
1.8.15