19 #ifndef OPENXCOM_NEWBATTLESTATE_H
20 #define OPENXCOM_NEWBATTLESTATE_H
22 #include "../Engine/State.h"
46 Frame *_frameLeft, *_frameRight;
47 Text *_txtTitle, *_txtMapOptions, *_txtAlienOptions;
48 Text *_txtMission, *_txtCraft, *_txtDarkness, *_txtTerrain, *_txtDifficulty, *_txtAlienRace, *_txtAlienTech;
49 ComboBox *_cbxMission, *_cbxCraft, *_cbxTerrain, *_cbxDifficulty, *_cbxAlienRace;
50 Slider *_slrDarkness, *_slrAlienTech;
51 TextButton *_btnOk, *_btnCancel, *_btnEquip, *_btnRandom;
52 std::vector<std::string> _missionTypes, _terrainTypes, _alienRaces, _crafts;
53 std::vector<int> _textures;
63 void load(
const std::string &filename =
"battle");
65 void save(
const std::string &filename =
"battle");
Represents a craft stored in a base.
Definition: Craft.h:44
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
void btnRandomClick(Action *action)
Handler for clicking the Randomize button.
Definition: NewBattleState.cpp:558
void load(const std::string &filename="battle")
Loads New Battle settings.
Definition: NewBattleState.cpp:280
void init()
Resets state.
Definition: NewBattleState.cpp:266
A game state that receives user input and reacts accordingly.
Definition: State.h:44
Box with a coloured border and custom background.
Definition: Window.h:42
void initSave()
Initializes a blank savegame.
Definition: NewBattleState.cpp:382
void btnCancelClick(Action *action)
Handler for clicking the Cancel button.
Definition: NewBattleState.cpp:547
Horizontal slider control to select from a range of values.
Definition: Slider.h:36
Text string displayed on screen.
Definition: Text.h:41
void cbxMissionChange(Action *action)
Handler for changing the Mission combobox.
Definition: NewBattleState.cpp:587
New Battle that displays a list of options to configure a new standalone mission. ...
Definition: NewBattleState.h:42
void save(const std::string &filename="battle")
Saves New Battle settings.
Definition: NewBattleState.cpp:352
void btnOkClick(Action *action)
Handler for clicking the OK button.
Definition: NewBattleState.cpp:462
NewBattleState(Game *game)
Creates the New Battle state.
Definition: NewBattleState.cpp:64
Text button with a list dropdown when pressed.
Definition: ComboBox.h:38
void cbxCraftChange(Action *action)
Handler for changing the Craft combobox.
Definition: NewBattleState.cpp:600
Coloured button with a text label.
Definition: TextButton.h:40
~NewBattleState()
Cleans up the New Battle state.
Definition: NewBattleState.cpp:257
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
Fancy frame border thing used for windows and other elements.
Definition: Frame.h:30
void btnEquipClick(Action *action)
Handler for clicking the Equip Craft button.
Definition: NewBattleState.cpp:577