OpenXcom  1.0
Open-source clone of the original X-Com
InterceptState.h
1 #pragma once
2 /*
3  * Copyright 2010-2016 OpenXcom Developers.
4  *
5  * This file is part of OpenXcom.
6  *
7  * OpenXcom is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * OpenXcom is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with OpenXcom. If not, see <http://www.gnu.org/licenses/>.
19  */
20 #include <vector>
21 #include "../Engine/State.h"
22 
23 namespace OpenXcom
24 {
25 
26 class TextButton;
27 class Window;
28 class Text;
29 class TextList;
30 class Base;
31 class Globe;
32 class Craft;
33 class Target;
34 
39 class InterceptState : public State
40 {
41 private:
42  TextButton *_btnCancel, *_btnGotoBase;
43  Window *_window;
44  Text *_txtTitle, *_txtCraft, *_txtStatus, *_txtBase, *_txtWeapons;
45  TextList *_lstCrafts;
46  Globe *_globe;
47  Base *_base;
48  Target *_target;
49  std::vector<Craft*> _crafts;
50 public:
52  InterceptState(Globe *globe, Base *base = 0, Target *target = 0);
56  void btnCancelClick(Action *action);
58  void btnGotoBaseClick(Action *action);
60  void lstCraftsLeftClick(Action *action);
62  void lstCraftsRightClick(Action *action);
63 };
64 
65 }
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
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
InterceptState(Globe *globe, Base *base=0, Target *target=0)
Creates the Intercept state.
Definition: InterceptState.cpp:47
List of Text&#39;s split into columns.
Definition: TextList.h:40
void lstCraftsRightClick(Action *action)
Handler for right clicking the Crafts list.
Definition: InterceptState.cpp:205
Interactive globe view of the world.
Definition: Globe.h:43
Text string displayed on screen.
Definition: Text.h:40
void btnGotoBaseClick(Action *action)
Handler for clicking the Go To Base button.
Definition: InterceptState.cpp:174
void lstCraftsLeftClick(Action *action)
Handler for clicking the Crafts list.
Definition: InterceptState.cpp:184
Represents a player base on the globe.
Definition: Base.h:45
Coloured button with a text label.
Definition: TextButton.h:38
~InterceptState()
Cleans up the Intercept state.
Definition: InterceptState.cpp:156
void btnCancelClick(Action *action)
Handler for clicking the Cancel button.
Definition: InterceptState.cpp:165
Base class for targets on the globe with a set of radian coordinates.
Definition: Target.h:35
Intercept window that lets the player launch crafts into missions from the Geoscape.
Definition: InterceptState.h:39
Definition: BaseInfoState.cpp:40