20 #include "../Engine/State.h" 38 static const int MARGIN = 10;
39 static const int SPACING = 4;
40 static const int BUTTON_HEIGHT = 16;
42 std::vector<Target*> _targets;
47 std::vector<TextButton*> _btnTargets;
Represents a craft stored in a base.
Definition: Craft.h:45
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
Geoscape screen which shows an overview of the world and lets the player manage the game...
Definition: GeoscapeState.h:42
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
void init()
Updates the window.
Definition: MultipleTargetsState.cpp:98
Displays a list of possible targets.
Definition: MultipleTargetsState.h:35
MultipleTargetsState(std::vector< Target *> targets, Craft *craft, GeoscapeState *state)
Creates the Multiple Targets state.
Definition: MultipleTargetsState.cpp:47
void btnTargetClick(Action *action)
Handler for clicking the Targets list.
Definition: MultipleTargetsState.cpp:158
~MultipleTargetsState()
Cleans up the Multiple Targets state.
Definition: MultipleTargetsState.cpp:89
Base class for targets on the globe with a set of radian coordinates.
Definition: Target.h:35
void popupTarget(Target *target)
Popup for a target.
Definition: MultipleTargetsState.cpp:114
Definition: BaseInfoState.cpp:40
void btnCancelClick(Action *action)
Handler for clicking the Cancel button.
Definition: MultipleTargetsState.cpp:149