Ignore:
Timestamp:
Aug 11, 2010, 6:18:42 PM (11 years ago)
Author:
sam
Message:

Implement a quit() mechanism in the Game class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/game.cpp

    r100 r102  
    2727    int x, y;
    2828    int mousex, mousey;
     29    int done;
    2930
    3031    int frame;
     
    4142    data->font = new Font("gfx/font/ascii.png");
    4243    data->x = data->y = 0;
     44    data->done = 0;
    4345    data->frame = 0;
    4446}
     
    7173}
    7274
     75void Game::Quit()
     76{
     77    data->done = 1;
     78}
     79
     80int Game::Finished()
     81{
     82    return data->done;
     83}
     84
Note: See TracChangeset for help on using the changeset viewer.