PGE Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
scenes
scene_credits.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_CREDITS_H
20
#define SCENE_CREDITS_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
28
#include <script/lua_credits_engine.h>
29
30
class
CreditsScene_misc_img
31
{
32
public
:
33
CreditsScene_misc_img
();
34
~
CreditsScene_misc_img
();
35
CreditsScene_misc_img
(
const
CreditsScene_misc_img
&im);
36
37
int
x;
38
int
y;
39
PGE_Texture
t;
40
SimpleAnimator
a;
41
int
frmH;
42
};
43
44
class
CreditsScene
:
public
Scene
45
{
46
public
:
47
CreditsScene
();
48
~
CreditsScene
();
49
void
init();
50
51
void
setWaitTime(
int
time);
52
void
exitFromScene();
53
54
void
onKeyboardPressedSDL
(SDL_Keycode sdl_key, Uint16 modifier);
55
LuaEngine
* getLuaEngine();
56
void
update();
57
void
render();
58
int
exec();
59
60
private
:
61
float
_waitTimer;
62
63
PGE_Texture
background;
64
PGEColor
bgcolor;
65
QVector<CreditsScene_misc_img > imgs;
66
67
LuaCreditsEngine
luaEngine;
68
};
69
70
#endif // SCENE_CREDITS_H
PGE_Texture
Definition:
pge_texture.h:32
LuaCreditsEngine
Definition:
lua_credits_engine.h:8
PGEColor
Definition:
pge_texture.h:25
Scene
Definition:
scene.h:36
LuaEngine
This class should have basic functions for interacting with lua To run the lua engine you have to con...
Definition:
lua_engine.h:27
SimpleAnimator
Definition:
simple_animator.h:28
CreditsScene::onKeyboardPressedSDL
void onKeyboardPressedSDL(SDL_Keycode sdl_key, Uint16 modifier)
Triggering when pressed any key on keyboard.
Definition:
scene_credits.cpp:133
CreditsScene_misc_img
Definition:
scene_credits.h:30
CreditsScene
Definition:
scene_credits.h:44
Generated by
1.8.7