OpenXcom
1.0
Open-source clone of the original X-Com
src
Battlescape
InfoboxState.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 "../Engine/State.h"
21
22
namespace
OpenXcom
23
{
24
25
class
Text;
26
class
Timer;
27
class
Frame;
28
32
class
InfoboxState
:
public
State
33
{
34
private
:
35
Text
*_text;
36
Frame
*_frame;
37
Timer
*_timer;
38
public
:
39
static
const
int
INFOBOX_DELAY = 2000;
41
InfoboxState
(
const
std::string &msg);
43
~InfoboxState
();
45
void
handle
(
Action
*action);
47
void
think
();
49
void
close
();
50
51
};
52
53
}
OpenXcom::Action
Container for all the information associated with a given user action, like mouse clicks...
Definition:
Action.h:32
OpenXcom::State
A game state that receives user input and reacts accordingly.
Definition:
State.h:44
OpenXcom::Timer
Timer used to run code in fixed intervals.
Definition:
Timer.h:35
OpenXcom::Text
Text string displayed on screen.
Definition:
Text.h:40
OpenXcom::InfoboxState::InfoboxState
InfoboxState(const std::string &msg)
Creates the Infobox state.
Definition:
InfoboxState.cpp:36
OpenXcom::InfoboxState::close
void close()
Closes the window.
Definition:
InfoboxState.cpp:100
OpenXcom::InfoboxState::think
void think()
Handles the timers.
Definition:
InfoboxState.cpp:92
OpenXcom::InfoboxState::~InfoboxState
~InfoboxState()
Cleans up the Infobox state.
Definition:
InfoboxState.cpp:70
OpenXcom::InfoboxState::handle
void handle(Action *action)
Handler for clicking anything.
Definition:
InfoboxState.cpp:79
OpenXcom::Frame
Fancy frame border thing used for windows and other elements.
Definition:
Frame.h:28
OpenXcom
Definition:
BaseInfoState.cpp:40
OpenXcom::InfoboxState
Frame that briefly shows some info like : Yasuaki Okamoto Has Panicked.
Definition:
InfoboxState.h:32
Generated by
1.8.14