2 * This file is part of NumptyPhysics
3 * Copyright (C) 2008 Tim Edmonds
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 3 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
27 GameControl() : m_quit(false),
32 m_strokeFixed( false ),
33 m_strokeSleep( false ),
34 m_strokeDecor( false ),
37 virtual ~GameControl() {}
38 virtual bool save( const char *file
=NULL
) { return false; }
39 virtual bool send() { return false; }
40 virtual bool load( const char* file
) { return false; }
41 virtual void gotoLevel( int l
, bool replay
=false ) {}
42 Levels
& levels() { return *m_levels
; }
43 virtual bool renderScene( Canvas
& c
, int level
) =0;
57 Widget
* createGameLayer( Levels
* levels
, int width
, int height
);