OpenXcom
1.0
Open-source clone of the original X-Com
src
Menu
OptionsAdvancedState.h
1
/*
2
* Copyright 2010-2014 OpenXcom Developers.
3
*
4
* This file is part of OpenXcom.
5
*
6
* OpenXcom is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* OpenXcom is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with OpenXcom. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef OPENXCOM_OPTIONSADVANCEDSTATE_H
20
#define OPENXCOM_OPTIONSADVANCEDSTATE_H
21
22
#include "OptionsBaseState.h"
23
#include "../Engine/OptionInfo.h"
24
#include <vector>
25
#include <string>
26
27
namespace
OpenXcom
28
{
29
30
class
TextList;
31
36
class
OptionsAdvancedState
:
public
OptionsBaseState
37
{
38
private
:
39
TextList
*_lstOptions;
40
size_t
_boolQuantity;
41
Uint8 _colorGroup;
42
std::vector<OptionInfo> _settingsGeneral, _settingsGeo, _settingsBattle;
43
44
void
addSettings(
const
std::vector<OptionInfo> &settings);
45
OptionInfo
*getSetting(
size_t
sel);
46
public
:
48
OptionsAdvancedState
(
Game
*game, OptionsOrigin origin);
50
~OptionsAdvancedState
();
52
void
init
();
54
void
lstOptionsClick
(
Action
*action);
56
void
lstOptionsMouseOver
(
Action
*action);
58
void
lstOptionsMouseOut
(
Action
*action);
59
60
};
61
62
}
63
64
#endif
OpenXcom
COPYING:
Definition:
BaseInfoState.cpp:41
OpenXcom::OptionsAdvancedState::lstOptionsMouseOver
void lstOptionsMouseOver(Action *action)
Handler for moving the mouse over a setting.
Definition:
OptionsAdvancedState.cpp:255
OpenXcom::TextList
List of Text's split into columns.
Definition:
TextList.h:43
OpenXcom::OptionsAdvancedState::lstOptionsMouseOut
void lstOptionsMouseOut(Action *action)
Handler for moving the mouse outside the settings.
Definition:
OptionsAdvancedState.cpp:267
OpenXcom::Action
Container for all the information associated with a given user action, like mouse clicks,...
Definition:
Action.h:35
OpenXcom::OptionsAdvancedState::OptionsAdvancedState
OptionsAdvancedState(Game *game, OptionsOrigin origin)
Creates the Advanced state.
Definition:
OptionsAdvancedState.cpp:41
OpenXcom::OptionsBaseState
Options base state for common stuff across Options windows.
Definition:
OptionsBaseState.h:44
OpenXcom::OptionsAdvancedState::lstOptionsClick
void lstOptionsClick(Action *action)
Handler for clicking a setting on the list.
Definition:
OptionsAdvancedState.cpp:189
OpenXcom::Game
The core of the game engine, manages the game's entire contents and structure.
Definition:
Game.h:45
OpenXcom::OptionsAdvancedState::init
void init()
Fills settings list.
Definition:
OptionsAdvancedState.cpp:116
OpenXcom::OptionsAdvancedState::~OptionsAdvancedState
~OptionsAdvancedState()
Cleans up the Advanced state.
Definition:
OptionsAdvancedState.cpp:108
OpenXcom::OptionInfo
Helper class that ties metadata to particular options to help in serializing and stuff.
Definition:
OptionInfo.h:39
OpenXcom::OptionsAdvancedState
Options window that displays the advanced game settings.
Definition:
OptionsAdvancedState.h:37
Generated by
1.8.18