19 #ifndef OPENXCOM_SOLDIERINFOSTATE_H
20 #define OPENXCOM_SOLDIERINFOSTATE_H
22 #include "../Engine/State.h"
46 std::vector<Soldier*> *_list;
49 TextButton *_btnOk, *_btnPrev, *_btnNext, *_btnArmor, *_btnSack;
50 Text *_txtRank, *_txtMissions, *_txtKills, *_txtCraft, *_txtRecovery, *_txtPsionic;
53 Text *_txtTimeUnits, *_txtStamina, *_txtHealth, *_txtBravery, *_txtReactions, *_txtFiring, *_txtThrowing, *_txtMelee, *_txtStrength, *_txtPsiStrength, *_txtPsiSkill;
54 Text *_numTimeUnits, *_numStamina, *_numHealth, *_numBravery, *_numReactions, *_numFiring, *_numThrowing, *_numMelee, *_numStrength, *_numPsiStrength, *_numPsiSkill;
55 Bar *_barTimeUnits, *_barStamina, *_barHealth, *_barBravery, *_barReactions, *_barFiring, *_barThrowing, *_barMelee, *_barStrength, *_barPsiStrength, *_barPsiSkill;
SoldierInfoState(Game *game, Base *base, size_t soldierId)
Creates the Soldier Info state.
Definition: SoldierInfoState.cpp:55
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: SoldierInfoState.cpp:607
A game state that receives user input and reacts accordingly.
Definition: State.h:44
void btnArmorClick(Action *action)
Handler for clicking the Armor button.
Definition: SoldierInfoState.cpp:646
void btnNextClick(Action *action)
Handler for clicking the Next button.
Definition: SoldierInfoState.cpp:634
Text string displayed on screen.
Definition: Text.h:41
Bar graphic that represents a certain value.
Definition: Bar.h:33
void btnPrevClick(Action *action)
Handler for clicking the Previous button.
Definition: SoldierInfoState.cpp:621
void edtSoldierChange(Action *action)
Handler for changing text on the Name edit.
Definition: SoldierInfoState.cpp:598
void init()
Updates the soldier info.
Definition: SoldierInfoState.cpp:400
Represents a soldier hired by the player.
Definition: Soldier.h:49
Represents a player base on the globe.
Definition: Base.h:47
~SoldierInfoState()
Cleans up the Soldier Info state.
Definition: SoldierInfoState.cpp:391
Coloured button with a text label.
Definition: TextButton.h:40
Element that is blit (rendered) onto the screen.
Definition: Surface.h:39
Soldier Info screen that shows all the info of a specific soldier.
Definition: SoldierInfoState.h:40
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
void btnSackClick(Action *action)
Handler for clicking the Sack button.
Definition: SoldierInfoState.cpp:658
void edtSoldierPress(Action *action)
Handler for pressing on the Name edit.
Definition: SoldierInfoState.cpp:586