19 #ifndef OPENXCOM_SELLSTATE_H
20 #define OPENXCOM_SELLSTATE_H
22 #include "../Engine/State.h"
42 class SellState :
public State
46 TextButton *_btnOk, *_btnCancel;
47 TextButton *_btnSellTab;
48 TextButton *_btnPersonnel, *_btnCraft, *_btnItems;
50 Text *_txtTitle, *_txtSales, *_txtFunds, *_txtItem, *_txtQuantity, *_txtSell, *_txtValue, *_txtSpace;
51 Text *_txtSpaceUsed, *_txtSpaceUsedValue;
52 TextList *_lstPersonnel, *_lstCraft;
54 std::vector<int> _qtys, _qtysPersonnel, _qtysCraft, _qtysItems;
55 std::vector<Soldier*> _soldiers;
56 std::vector<Craft*> _crafts;
57 std::vector<std::string> _items, _itemsCraft;
60 int _total, _sOffset, _eOffset;
62 Timer *_timerInc, *_timerDec;
SellState(Game *game, Base *base, OptionsOrigin origin=OPT_GEOSCAPE)
Creates the Sell state.
Definition: SellState.cpp:58
void lstItemsRightArrowPress(Action *action)
Handler for pressing a Decrease arrow in the list.
Definition: SellState.cpp:487
void btnOkClick(Action *action)
Handler for clicking the OK button.
Definition: SellState.cpp:294
void think()
Runs the timers.
Definition: SellState.cpp:272
void decrease()
Decreases the quantity of an item by one.
Definition: SellState.cpp:684
void btnCancelClick(Action *action)
Handler for clicking the Cancel button.
Definition: SellState.cpp:440
void lstItemsRightArrowRelease(Action *action)
Handler for releasing a Decrease arrow in the list.
Definition: SellState.cpp:497
void btnCraftClick(Action *action)
Handler for clicking the Craft tab.
Definition: SellTabbedState.cpp:424
void increase()
Increases the quantity of an item by one.
Definition: SellState.cpp:615
void btnItemsClick(Action *action)
Handler for clicking the Items tab.
Definition: SellTabbedState.cpp:438
~SellState()
Cleans up the Sell state.
Definition: SellState.cpp:263
void lstItemsLeftArrowRelease(Action *action)
Handler for releasing an Increase arrow in the list.
Definition: SellState.cpp:459
void btnPersonnelClick(Action *action)
Handler for clicking the Personnel tab.
Definition: SellTabbedState.cpp:410
void lstItemsLeftArrowPress(Action *action)
Handler for pressing an Increase arrow in the list.
Definition: SellState.cpp:449