PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
scene_loading.h
1 /*
2  * Platformer Game Engine by Wohlstand, a free platform for game making
3  * Copyright (c) 2015 Vitaly Novichkov <admin@wohlnet.ru>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef SCENE_LOADING_H
20 #define SCENE_LOADING_H
21 
22 #include <QVector>
23 #include <common_features/pge_texture.h>
24 #include <common_features/simple_animator.h>
25 
26 #include "scene.h"
27 
29 {
30 public:
34 
35  int x;
36  int y;
37  PGE_Texture t;
39  int frmH;
40 };
41 
42 class LoadingScene : public Scene
43 {
44 public:
45  LoadingScene();
46  ~LoadingScene();
47  void init();
48 
49  void setWaitTime(int time);
50  void exitFromScene();
51 
52  void onKeyboardPressedSDL(SDL_Keycode sdl_key, Uint16 modifier);
53  void onMousePressed(SDL_MouseButtonEvent &mbevent);
54 
55  void update();
56  void render();
57  int exec();
58 
59 private:
60  float _waitTimer;
61 
62  PGE_Texture background;
63  PGEColor bgcolor;
64  QVector<LoadingScene_misc_img > imgs;
65 };
66 
67 #endif // SCENE_LOADING_H
Definition: scene_loading.h:28
Definition: pge_texture.h:32
Definition: scene_loading.h:42
Definition: pge_texture.h:25
void onKeyboardPressedSDL(SDL_Keycode sdl_key, Uint16 modifier)
Triggering when pressed any key on keyboard.
Definition: scene_loading.cpp:118
Definition: scene.h:36
Definition: simple_animator.h:28