 |
OpenXcom
1.0
Open-source clone of the original X-Com
|
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;
void saveEquipmentLayout()
Saves the soldiers' equipment-layout.
Definition: InventoryState.cpp:344
COPYING:
Definition: BaseInfoState.cpp:41
Battlescape screen which shows the tactical battle.
Definition: BattlescapeState.h:49
Screen which displays soldier's inventory.
Definition: InventoryState.h:39
Container for all the information associated with a given user action, like mouse clicks,...
Definition: Action.h:35
~InventoryState()
Cleans up the Inventory state.
Definition: InventoryState.cpp:189
void btnRankClick(Action *action)
Handler for clicking on the inventory.
Definition: InventoryState.cpp:477
void handle(Action *action)
Handles keypresses.
Definition: InventoryState.cpp:543
The battlescape data that gets written to disk when the game is saved.
Definition: SavedBattleGame.h:51
void btnOkClick(Action *action)
Handler for clicking the OK button.
Definition: InventoryState.cpp:385
void btnGroundClick(Action *action)
Handler for clicking on the Ground -> button.
Definition: InventoryState.cpp:468
void btnPrevClick(Action *action)
Handler for clicking the Previous button.
Definition: InventoryState.cpp:411
Element that is blit (rendered) onto the screen.
Definition: Surface.h:40
void init()
Updates all soldier info.
Definition: InventoryState.cpp:213
Surface that the user can interact with.
Definition: InteractiveSurface.h:40
Text string displayed on screen.
Definition: Text.h:42
void invClick(Action *action)
Handler for clicking the Unload button.
Definition: InventoryState.cpp:486
Interactive view of an inventory.
Definition: Inventory.h:41
InventoryState(Game *game, bool tu, BattlescapeState *parent)
Creates the Inventory state.
Definition: InventoryState.cpp:61
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:45
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:45
void updateStats()
Updates the soldier info (Weight, TU).
Definition: InventoryState.cpp:301
void btnUnloadClick(Action *action)
Handler for clicking the Rank button.
Definition: InventoryState.cpp:453