PGE Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
scenes
_base
gfx_effect.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 LVL_EFFECT_H
20
#define LVL_EFFECT_H
21
22
#include <data_configs/obj_effect.h>
23
#include <common_features/simple_animator.h>
24
#include <common_features/rectf.h>
25
#include <
PGE_File_Formats/file_formats.h
>
26
27
struct
Scene_Effect_Phys
28
{
29
Scene_Effect_Phys
();
30
float
mix_vel_x;
31
float
mix_vel_y;
32
float
max_vel_x;
33
float
max_vel_y;
34
float
decelerate_x;
35
float
decelerate_y;
36
};
37
38
class
Scene_Effect
39
{
40
public
:
41
Scene_Effect
();
42
Scene_Effect
(
const
Scene_Effect
&e);
43
~
Scene_Effect
();
44
45
void
init();
46
47
float
posX();
48
float
posY();
49
bool
finished();
50
51
int
direction;
52
int
frameStyle;
53
54
bool
_limit_delay;
55
float
_delay;
56
57
float
m_velocityX;
58
float
m_velocityY;
59
60
float
gravity;
61
Scene_Effect_Phys
phys_setup;
62
63
PGE_RectF
posRect;
64
65
bool
_finished;
66
obj_effect
* setup;
//Global config
67
PGE_Texture
texture;
68
SimpleAnimator
animator;
69
70
void
update(
float
ticks);
71
void
iterateStep(
float
ticks);
72
static
const
float
timeStep;
73
74
void
render(
double
camX=0.0,
double
camY=0.0);
75
};
76
77
#endif // LVL_EFFECT_H
78
79
80
obj_effect
Definition:
obj_effect.h:27
Scene_Effect_Phys
Definition:
gfx_effect.h:27
PGE_Texture
Definition:
pge_texture.h:32
Scene_Effect
Definition:
gfx_effect.h:38
SimpleAnimator
Definition:
simple_animator.h:28
PGE_RectF
Definition:
rectf.h:26
file_formats.h
PGE File Library.
Generated by
1.8.7