19 #ifndef OPENXCOM_RESEARCHINFOSTATE
20 #define OPENXCOM_RESEARCHINFOSTATE
22 #include "../Engine/State.h"
32 class ResearchProject;
35 class InteractiveSurface;
48 Text *_txtTitle, *_txtAvailableScientist, *_txtAvailableSpace, *_txtAllocatedScientist, *_txtMore, *_txtLess;
49 void setAssignedScientist();
53 Timer *_timerMore, *_timerLess;
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
void moreRelease(Action *action)
Handler for releasing the More button.
Definition: ResearchInfoState.cpp:238
A game state that receives user input and reacts accordingly.
Definition: State.h:44
Box with a coloured border and custom background.
Definition: Window.h:42
Timer used to run code in fixed intervals.
Definition: Timer.h:37
Surface that the user can interact with.
Definition: InteractiveSurface.h:39
void lessClick(Action *action)
Handler for clicking the Less button.
Definition: ResearchInfoState.cpp:287
void morePress(Action *action)
Handler for pressing the More button.
Definition: ResearchInfoState.cpp:229
Text string displayed on screen.
Definition: Text.h:41
Window which allows changing of the number of assigned scientist to a project.
Definition: ResearchInfoState.h:40
Represent a ResearchProject Contain information about assigned scientist, time already spent and cost...
Definition: ResearchProject.h:33
void btnCancelClick(Action *action)
Handler for clicking the Cancel button.
Definition: ResearchInfoState.cpp:192
void lessByValue(int change)
Remove the given number of scientists from the project if possible.
Definition: ResearchInfoState.cpp:335
void handleWheel(Action *action)
Handler for using the mouse wheel.
Definition: ResearchInfoState.cpp:219
void more()
Function called every time the _timerMore timer is triggered.
Definition: ResearchInfoState.cpp:298
void lessRelease(Action *action)
Handler for releasing the Less button.
Definition: ResearchInfoState.cpp:273
void moreByValue(int change)
Add given number of scientists to the project if possible.
Definition: ResearchInfoState.cpp:308
ResearchInfoState(Game *game, Base *base, RuleResearch *rule)
Creates the ResearchProject state.
Definition: ResearchInfoState.cpp:49
void moreClick(Action *action)
Handler for clicking the More button.
Definition: ResearchInfoState.cpp:252
void lessPress(Action *action)
Handler for pressing the Less button.
Definition: ResearchInfoState.cpp:264
Represents a player base on the globe.
Definition: Base.h:47
Coloured button with a text label.
Definition: TextButton.h:40
Represents one research project.
Definition: RuleResearch.h:40
void less()
Function called every time the _timerLess timer is triggered.
Definition: ResearchInfoState.cpp:325
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
void think()
Runs state functionality every cycle(used to update the timer).
Definition: ResearchInfoState.cpp:351
void btnOkClick(Action *action)
Handler for clicking the OK button.
Definition: ResearchInfoState.cpp:182