20 #include "../Engine/State.h" 30 class ResearchProject;
33 class InteractiveSurface;
46 Text *_txtTitle, *_txtAvailableScientist, *_txtAvailableSpace, *_txtAllocatedScientist, *_txtMore, *_txtLess;
47 void setAssignedScientist();
51 Timer *_timerMore, *_timerLess;
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
void moreRelease(Action *action)
Handler for releasing the More button.
Definition: ResearchInfoState.cpp:219
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:40
Timer used to run code in fixed intervals.
Definition: Timer.h:35
Surface that the user can interact with.
Definition: InteractiveSurface.h:37
void lessClick(Action *action)
Handler for clicking the Less button.
Definition: ResearchInfoState.cpp:268
void morePress(Action *action)
Handler for pressing the More button.
Definition: ResearchInfoState.cpp:210
Text string displayed on screen.
Definition: Text.h:40
Window which allows changing of the number of assigned scientist to a project.
Definition: ResearchInfoState.h:38
Represent a ResearchProject Contain information about assigned scientist, time already spent and cost...
Definition: ResearchProject.h:32
ResearchInfoState(Base *base, RuleResearch *rule)
Creates the ResearchProject state.
Definition: ResearchInfoState.cpp:46
void btnCancelClick(Action *action)
Handler for clicking the Cancel button.
Definition: ResearchInfoState.cpp:180
void lessByValue(int change)
Remove the given number of scientists from the project if possible.
Definition: ResearchInfoState.cpp:316
void handleWheel(Action *action)
Handler for using the mouse wheel.
Definition: ResearchInfoState.cpp:200
void more()
Function called every time the _timerMore timer is triggered.
Definition: ResearchInfoState.cpp:279
void lessRelease(Action *action)
Handler for releasing the Less button.
Definition: ResearchInfoState.cpp:254
void moreByValue(int change)
Add given number of scientists to the project if possible.
Definition: ResearchInfoState.cpp:289
void moreClick(Action *action)
Handler for clicking the More button.
Definition: ResearchInfoState.cpp:233
void lessPress(Action *action)
Handler for pressing the Less button.
Definition: ResearchInfoState.cpp:245
Represents a player base on the globe.
Definition: Base.h:45
Coloured button with a text label.
Definition: TextButton.h:38
Represents one research project.
Definition: RuleResearch.h:38
void less()
Function called every time the _timerLess timer is triggered.
Definition: ResearchInfoState.cpp:306
void think()
Runs state functionality every cycle(used to update the timer).
Definition: ResearchInfoState.cpp:332
~ResearchInfoState()
Cleans up the ResearchInfo state.
Definition: ResearchInfoState.cpp:160
Definition: BaseInfoState.cpp:40
void btnOkClick(Action *action)
Handler for clicking the OK button.
Definition: ResearchInfoState.cpp:170