projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- converted text_type into a class
[supertux.git]
/
src
/
gameobjs.h
diff --git
a/src/gameobjs.h
b/src/gameobjs.h
index
c279e4c
..
12fafaf
100644
(file)
--- a/
src/gameobjs.h
+++ b/
src/gameobjs.h
@@
-29,36
+29,36
@@
#define NO_BOUNCE 0
#define BOUNCE 1
#define NO_BOUNCE 0
#define BOUNCE 1
-class
bouncy_distro_type
+class
BouncyDistro
{
public:
base_type base;
void init(float x, float y);
{
public:
base_type base;
void init(float x, float y);
- void action();
+ void action(
double frame_ratio
);
void draw();
};
void draw();
};
-extern
texture_type
img_distro[4];
+extern
Surface*
img_distro[4];
#define BOUNCY_BRICK_MAX_OFFSET 8
#define BOUNCY_BRICK_SPEED 0.9
class Tile;
#define BOUNCY_BRICK_MAX_OFFSET 8
#define BOUNCY_BRICK_SPEED 0.9
class Tile;
-class
broken_brick_type
+class
BrokenBrick
{
public:
base_type base;
{
public:
base_type base;
-
timer_type
timer;
+
Timer
timer;
Tile* tile;
void init(Tile* tile, float x, float y, float xm, float ym);
Tile* tile;
void init(Tile* tile, float x, float y, float xm, float ym);
- void action();
+ void action(
double frame_ratio
);
void draw();
};
void draw();
};
-class
bouncy_brick_type
+class
BouncyBrick
{
public:
float offset;
{
public:
float offset;
@@
-67,19
+67,19
@@
class bouncy_brick_type
base_type base;
void init(float x, float y);
base_type base;
void init(float x, float y);
- void action();
+ void action(
double frame_ratio
);
void draw();
};
void draw();
};
-class
floating_score_typ
e
+class
FloatingScor
e
{
public:
int value;
{
public:
int value;
-
timer_type
timer;
+
Timer
timer;
base_type base;
void init(float x, float y, int s);
base_type base;
void init(float x, float y, int s);
- void action();
+ void action(
double frame_ratio
);
void draw();
};
void draw();
};
@@
-87,4
+87,4
@@
class floating_score_type
/* Local Variables: */
/* mode:c++ */
/* Local Variables: */
/* mode:c++ */
-/* End */
+/* End
:
*/