ScummVM API documentation
splash.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program 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  * This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 /*
23  * This code is based on the CRAB engine
24  *
25  * Copyright (c) Arvind Raja Yadav
26  *
27  * Licensed under MIT
28  *
29  */
30 
31 //=============================================================================
32 // Author: Arvind
33 // Purpose: A basic screen that flashes an image for a time interval
34 //=============================================================================
35 #ifndef CRAB_SPLASH_H
36 #define CRAB_SPLASH_H
37 
38 #include "crab/crab.h"
39 #include "crab/image/ImageManager.h"
40 #include "crab/LoadingScreen.h"
41 #include "crab/music/MusicManager.h"
42 #include "crab/ScreenSettings.h"
43 #include "crab/text/TextManager.h"
44 #include "crab/gamestate_container.h"
45 #include "crab/gamestates.h"
46 #include "crab/timer.h"
47 
48 namespace Crab {
49 //------------------------------------------------------------------------
50 // Purpose: Splash screen class
51 //------------------------------------------------------------------------
52 class Splash : public GameState {
53  pyrodactyl::image::Image _background;
54 
55  int _x, _y;
56  bool _firstRun, _loadComplete;
57 
58 public:
59  Splash();
60  ~Splash();
61  void handleEvents(Common::Event &event, bool &shouldChangeState, GameStateID &newStateId) {}
62  void internalEvents(bool &shouldChangeState, GameStateID &newStateId);
63  void draw();
64  void setUI();
65 
66  // We don't need to save game state here
67  void autoSave() {}
68 };
69 
70 }
71 
72 #endif // CRAB_SPLASH_H
Definition: gamestate_container.h:46
Definition: Image.h:51
Definition: splash.h:52
Definition: events.h:199
Definition: moveeffect.h:37