 |
OpenXcom
1.0
Open-source clone of the original X-Com
|
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;
COPYING:
Definition: BaseInfoState.cpp:41
void more()
Function called every time the _timerMore timer is triggered.
Definition: ResearchInfoState.cpp:298
void lessByValue(int change)
Remove the given number of scientists from the project if possible.
Definition: ResearchInfoState.cpp:335
void moreClick(Action *action)
Handler for clicking the More button.
Definition: ResearchInfoState.cpp:252
void moreByValue(int change)
Add given number of scientists to the project if possible.
Definition: ResearchInfoState.cpp:308
Represents one research project.
Definition: RuleResearch.h:41
Coloured button with a text label.
Definition: TextButton.h:41
void lessRelease(Action *action)
Handler for releasing the Less button.
Definition: ResearchInfoState.cpp:273
void lessPress(Action *action)
Handler for pressing the Less button.
Definition: ResearchInfoState.cpp:264
void think()
Runs state functionality every cycle(used to update the timer).
Definition: ResearchInfoState.cpp:351
Represents a player base on the globe.
Definition: Base.h:48
void btnOkClick(Action *action)
Handler for clicking the OK button.
Definition: ResearchInfoState.cpp:182
void less()
Function called every time the _timerLess timer is triggered.
Definition: ResearchInfoState.cpp:325
Container for all the information associated with a given user action, like mouse clicks,...
Definition: Action.h:35
void moreRelease(Action *action)
Handler for releasing the More button.
Definition: ResearchInfoState.cpp:238
Window which allows changing of the number of assigned scientist to a project.
Definition: ResearchInfoState.h:41
Represent a ResearchProject Contain information about assigned scientist, time already spent and cost...
Definition: ResearchProject.h:34
Surface that the user can interact with.
Definition: InteractiveSurface.h:40
Text string displayed on screen.
Definition: Text.h:42
void morePress(Action *action)
Handler for pressing the More button.
Definition: ResearchInfoState.cpp:229
void lessClick(Action *action)
Handler for clicking the Less button.
Definition: ResearchInfoState.cpp:287
void handleWheel(Action *action)
Handler for using the mouse wheel.
Definition: ResearchInfoState.cpp:219
A game state that receives user input and reacts accordingly.
Definition: State.h:45
Box with a coloured border and custom background.
Definition: Window.h:43
void btnCancelClick(Action *action)
Handler for clicking the Cancel button.
Definition: ResearchInfoState.cpp:192
Timer used to run code in fixed intervals.
Definition: Timer.h:38
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:45
ResearchInfoState(Game *game, Base *base, RuleResearch *rule)
Creates the ResearchProject state.
Definition: ResearchInfoState.cpp:49