OpenXcom  1.0
Open-source clone of the original X-Com
OptionsAdvancedState.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 "OptionsBaseState.h"
21 #include "../Engine/OptionInfo.h"
22 #include <vector>
23 
24 namespace OpenXcom
25 {
26 
27 class TextList;
28 
34 {
35 private:
36  TextList *_lstOptions;
37  Uint8 _colorGroup;
38  std::vector<OptionInfo> _settingsGeneral, _settingsGeo, _settingsBattle;
39 
40  void addSettings(const std::vector<OptionInfo> &settings);
41  OptionInfo *getSetting(size_t sel);
42 public:
44  OptionsAdvancedState(OptionsOrigin origin);
48  void init();
50  void lstOptionsClick(Action *action);
52  void lstOptionsMouseOver(Action *action);
54  void lstOptionsMouseOut(Action *action);
55 
56 };
57 
58 }
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
OptionsAdvancedState(OptionsOrigin origin)
Creates the Advanced state.
Definition: OptionsAdvancedState.cpp:39
void lstOptionsMouseOut(Action *action)
Handler for moving the mouse outside the settings.
Definition: OptionsAdvancedState.cpp:272
Helper class that ties metadata to particular options to help in serializing and stuff.
Definition: OptionInfo.h:35
void lstOptionsMouseOver(Action *action)
Handler for moving the mouse over a setting.
Definition: OptionsAdvancedState.cpp:260
List of Text&#39;s split into columns.
Definition: TextList.h:40
~OptionsAdvancedState()
Cleans up the Advanced state.
Definition: OptionsAdvancedState.cpp:103
Options window that displays the advanced game settings.
Definition: OptionsAdvancedState.h:33
void init()
Fills settings list.
Definition: OptionsAdvancedState.cpp:111
void lstOptionsClick(Action *action)
Handler for clicking a setting on the list.
Definition: OptionsAdvancedState.cpp:184
Definition: BaseInfoState.cpp:40
Options base state for common stuff across Options windows.
Definition: OptionsBaseState.h:41