19 #ifndef OPENXCOM_CRAFTINFOSTATE_H
20 #define OPENXCOM_CRAFTINFOSTATE_H
22 #include "../Engine/State.h"
45 std::wstring _defaultName;
47 TextButton *_btnOk, *_btnW1, *_btnW2, *_btnCrew, *_btnEquip, *_btnArmor;
50 Text *_txtDamage, *_txtFuel;
51 Text *_txtW1Name, *_txtW1Ammo, *_txtW2Name, *_txtW2Ammo;
52 Surface *_sprite, *_weapon1, *_weapon2, *_crew, *_equip;
54 std::wstring formatTime(
int time);
void btnEquipClick(Action *action)
Handler for clicking the Equipment button.
Definition: CraftInfoState.cpp:381
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 btnOkClick(Action *action)
Handler for clicking the OK button.
Definition: CraftInfoState.cpp:343
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 btnCrewClick(Action *action)
Handler for clicking the Crew button.
Definition: CraftInfoState.cpp:372
void edtCraftChange(Action *action)
Handler for changing the text on the Name edit.
Definition: CraftInfoState.cpp:399
CraftInfoState(Game *game, Base *base, size_t craftId)
Creates the Craft Info state.
Definition: CraftInfoState.cpp:52
Text string displayed on screen.
Definition: Text.h:41
void btnW1Click(Action *action)
Handler for clicking the 1 button.
Definition: CraftInfoState.cpp:353
void btnArmorClick(Action *action)
Handler for clicking the Armor button.
Definition: CraftInfoState.cpp:390
void btnW2Click(Action *action)
Handler for clicking the 2 button.
Definition: CraftInfoState.cpp:363
Represents a player base on the globe.
Definition: Base.h:47
Coloured button with a text label.
Definition: TextButton.h:40
Element that is blit (rendered) onto the screen.
Definition: Surface.h:39
~CraftInfoState()
Cleans up the Craft Info state.
Definition: CraftInfoState.cpp:163
void init()
Updates the craft info.
Definition: CraftInfoState.cpp:172
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
Editable version of Text.
Definition: TextEdit.h:35
Craft Info screen that shows all the info of a specific craft.
Definition: CraftInfoState.h:39