/* --- GAME ACTION! --- */
-int game_action(void)
+int
+GameSession::action()
{
unsigned int i;
/* --- GAME DRAW! --- */
-void game_draw(void)
+void
+GameSession::draw()
{
int y,x;
while (SDL_PollEvent(&event))
{}
- game_draw();
+ draw();
do
{
jump = false;
frame_ratio = 1;
while(z >= 1)
{*/
- if (game_action() == 0)
+ if (action() == 0)
{
/* == 0: no more lives */
/* == -1: continues */
game_draw();
else
jump = true;*/ /*FIXME: Implement this tweak right.*/
- game_draw();
+ draw();
/* Time stops in pause mode */
if(game_pause || show_menu )
return(quit);
}
-
/* Load graphics/sounds shared between all levels: */
-
-void loadshared(void)
+void loadshared()
{
int i;