OpenXcom  1.0
Open-source clone of the original X-Com
SlideshowState.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 #include "../Mod/RuleVideo.h"
22 
23 namespace OpenXcom
24 {
25 
26 class InteractiveSurface;
27 class Text;
28 class Timer;
29 
33 class SlideshowState : public State
34 {
35 private:
36  const SlideshowHeader &_slideshowHeader;
37  const std::vector<SlideshowSlide> *_slideshowSlides;
38  bool _wasLetterboxed;
39  std::vector<InteractiveSurface *> _slides;
40  std::vector<Text *>_captions;
41  int _curScreen;
42  Timer *_transitionTimer;
43 public:
45  SlideshowState(const SlideshowHeader &slideshowHeader, const std::vector<SlideshowSlide> *slideshowRule);
49  void think();
51  void screenTimer();
53  void screenClick(Action *action);
55  void screenSkip(Action *action);
56 };
57 
58 }
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
Definition: RuleVideo.h:29
Timer used to run code in fixed intervals.
Definition: Timer.h:35
void screenTimer()
Handler for waiting the screen.
Definition: SlideshowState.cpp:88
Shows slideshow sequences.
Definition: SlideshowState.h:33
void screenSkip(Action *action)
Handler for skipping the screen.
Definition: SlideshowState.cpp:136
~SlideshowState()
Cleans up the Slideshow state.
Definition: SlideshowState.cpp:80
SlideshowState(const SlideshowHeader &slideshowHeader, const std::vector< SlideshowSlide > *slideshowRule)
Creates the Slideshow state.
Definition: SlideshowState.cpp:35
void think()
Handle timers.
Definition: SlideshowState.cpp:96
void screenClick(Action *action)
Handler for clicking the screen.
Definition: SlideshowState.cpp:104
Definition: BaseInfoState.cpp:40