OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 
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);
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
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
void lstOptionsMouseOut(Action *action)
Handler for moving the mouse outside the settings.
Definition: OptionsAdvancedState.cpp:267
Helper class that ties metadata to particular options to help in serializing and stuff.
Definition: OptionInfo.h:37
void lstOptionsMouseOver(Action *action)
Handler for moving the mouse over a setting.
Definition: OptionsAdvancedState.cpp:255
List of Text's split into columns.
Definition: TextList.h:42
~OptionsAdvancedState()
Cleans up the Advanced state.
Definition: OptionsAdvancedState.cpp:108
Options window that displays the advanced game settings.
Definition: OptionsAdvancedState.h:36
void init()
Fills settings list.
Definition: OptionsAdvancedState.cpp:116
void lstOptionsClick(Action *action)
Handler for clicking a setting on the list.
Definition: OptionsAdvancedState.cpp:189
OptionsAdvancedState(Game *game, OptionsOrigin origin)
Creates the Advanced state.
Definition: OptionsAdvancedState.cpp:41
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
Options base state for common stuff across Options windows.
Definition: OptionsBaseState.h:43