21 #include "../Engine/State.h" 45 std::vector<Soldier*> *_list;
48 TextButton *_btnOk, *_btnPrev, *_btnNext, *_btnArmor, *_btnSack, *_btnDiary;
49 Text *_txtRank, *_txtMissions, *_txtKills, *_txtCraft, *_txtRecovery, *_txtPsionic, *_txtDead;
52 Text *_txtTimeUnits, *_txtStamina, *_txtHealth, *_txtBravery, *_txtReactions, *_txtFiring, *_txtThrowing, *_txtMelee, *_txtStrength, *_txtPsiStrength, *_txtPsiSkill;
53 Text *_numTimeUnits, *_numStamina, *_numHealth, *_numBravery, *_numReactions, *_numFiring, *_numThrowing, *_numMelee, *_numStrength, *_numPsiStrength, *_numPsiSkill;
54 Bar *_barTimeUnits, *_barStamina, *_barHealth, *_barBravery, *_barReactions, *_barFiring, *_barThrowing, *_barMelee, *_barStrength, *_barPsiStrength, *_barPsiSkill;
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
void btnOkClick(Action *action)
Handler for clicking the OK button.
Definition: SoldierInfoState.cpp:544
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:584
void btnNextClick(Action *action)
Handler for clicking the Next button.
Definition: SoldierInfoState.cpp:572
void btnDiaryClick(Action *action)
Handler for clicking the Diary button.
Definition: SoldierInfoState.cpp:605
Text string displayed on screen.
Definition: Text.h:40
Bar graphic that represents a certain value.
Definition: Bar.h:31
SoldierInfoState(Base *base, size_t soldierId)
Creates the Soldier Info state.
Definition: SoldierInfoState.cpp:56
void btnPrevClick(Action *action)
Handler for clicking the Previous button.
Definition: SoldierInfoState.cpp:559
void edtSoldierChange(Action *action)
Handler for changing text on the Name edit.
Definition: SoldierInfoState.cpp:535
void init()
Updates the soldier info.
Definition: SoldierInfoState.cpp:319
Represents a soldier hired by the player.
Definition: Soldier.h:48
Represents a player base on the globe.
Definition: Base.h:45
~SoldierInfoState()
Cleans up the Soldier Info state.
Definition: SoldierInfoState.cpp:310
Coloured button with a text label.
Definition: TextButton.h:38
Element that is blit (rendered) onto the screen.
Definition: Surface.h:38
Soldier Info screen that shows all the info of a specific soldier.
Definition: SoldierInfoState.h:39
void setSoldierId(size_t soldier)
Set the soldier Id.
Definition: SoldierInfoState.cpp:526
Editable version of Text.
Definition: TextEdit.h:35
Definition: BaseInfoState.cpp:40
void btnSackClick(Action *action)
Handler for clicking the Sack button.
Definition: SoldierInfoState.cpp:596
void edtSoldierPress(Action *action)
Handler for pressing on the Name edit.
Definition: SoldierInfoState.cpp:515