PGE Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
gui
pge_boxbase.h
1
#ifndef PGE_BOXBASE_H
2
#define PGE_BOXBASE_H
3
4
#include "../scenes/scene.h"
5
#include <QString>
6
7
#include <common_features/rect.h>
8
#include <common_features/rectf.h>
9
#include <common_features/pge_texture.h>
10
15
16
class
PGE_BoxBase
17
{
18
public
:
19
enum
msgType
20
{
21
msg_info=0,
22
msg_info_light,
23
msg_warn,
24
msg_error,
25
msg_fatal
26
};
27
28
PGE_BoxBase
();
29
PGE_BoxBase
(
Scene
*_parentScene = 0);
30
PGE_BoxBase
(
const
PGE_BoxBase
&bb);
31
virtual
~
PGE_BoxBase
();
32
33
virtual
void
setParentScene(
Scene
*_parentScene);
34
35
virtual
void
exec();
36
virtual
void
update(
float
ticks);
37
virtual
void
render();
38
39
/**************Fader**************/
40
float
fader_opacity;
41
float
target_opacity;
42
float
fade_step;
43
int
fadeSpeed;
44
float
manual_ticks;
45
void
setFade(
int
speed,
float
target,
float
step);
46
bool
tickFader(
float
ticks);
47
void
fadeStep();
48
/**************Fader**************/
49
50
void
loadTexture(QString path);
51
52
void
updateTickValue();
53
54
protected
:
55
Scene
* parentScene;
56
void
construct(
Scene
*_parentScene = 0);
57
float
uTickf;
58
int
uTick;
59
60
void
drawTexture(
int
left,
int
top,
int
right,
int
bottom,
int
border=32);
61
void
drawTexture(
PGE_Rect
_rect,
int
border=32);
62
bool
_textureUsed;
63
void
drawPiece(
PGE_RectF
target,
PGE_RectF
block,
PGE_RectF
texture);
64
PGE_Texture
styleTexture;
65
};
66
67
#endif // PGE_BOXBASE_H
PGE_Texture
Definition:
pge_texture.h:32
PGE_Rect
Definition:
rect.h:26
PGE_BoxBase
The PGE_BoxBase class.
Definition:
pge_boxbase.h:16
Scene
Definition:
scene.h:36
PGE_RectF
Definition:
rectf.h:26
Generated by
1.8.7