19 #ifndef OPENXCOM_INVENTORYSTATE_H
20 #define OPENXCOM_INVENTORYSTATE_H
22 #include "../Engine/State.h"
29 class InteractiveSurface;
31 class SavedBattleGame;
32 class BattlescapeState;
42 Text *_txtName, *_txtItem, *_txtAmmo, *_txtWeight, *_txtTus, *_txtFAcc, *_txtReact, *_txtPSkill, *_txtPStr;
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
void btnNextClick(Action *action)
Handler for clicking the Next button.
Definition: InventoryState.cpp:432
A game state that receives user input and reacts accordingly.
Definition: State.h:44
void btnGroundClick(Action *action)
Handler for clicking on the Ground -> button.
Definition: InventoryState.cpp:468
Surface that the user can interact with.
Definition: InteractiveSurface.h:39
void invClick(Action *action)
Handler for clicking the Unload button.
Definition: InventoryState.cpp:486
Text string displayed on screen.
Definition: Text.h:41
void btnOkClick(Action *action)
Handler for clicking the OK button.
Definition: InventoryState.cpp:385
void btnPrevClick(Action *action)
Handler for clicking the Previous button.
Definition: InventoryState.cpp:411
void saveEquipmentLayout()
Saves the soldiers' equipment-layout.
Definition: InventoryState.cpp:344
void btnUnloadClick(Action *action)
Handler for clicking the Rank button.
Definition: InventoryState.cpp:453
void init()
Updates all soldier info.
Definition: InventoryState.cpp:213
Interactive view of an inventory.
Definition: Inventory.h:40
Screen which displays soldier's inventory.
Definition: InventoryState.h:38
void btnRankClick(Action *action)
Handler for clicking on the inventory.
Definition: InventoryState.cpp:477
void updateStats()
Updates the soldier info (Weight, TU).
Definition: InventoryState.cpp:301
Element that is blit (rendered) onto the screen.
Definition: Surface.h:39
The battlescape data that gets written to disk when the game is saved.
Definition: SavedBattleGame.h:50
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
Battlescape screen which shows the tactical battle.
Definition: BattlescapeState.h:48
InventoryState(Game *game, bool tu, BattlescapeState *parent)
Creates the Inventory state.
Definition: InventoryState.cpp:61
~InventoryState()
Cleans up the Inventory state.
Definition: InventoryState.cpp:189
void handle(Action *action)
Handles keypresses.
Definition: InventoryState.cpp:543