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.
22 #define MAX_ROPE_PARTS 50
29 GameControl() : m_quit(false),
34 m_strokeFixed( false ),
35 m_strokeSleep( false ),
36 m_strokeDecor( false ),
39 virtual ~GameControl() {}
40 virtual bool save( const char *file
=NULL
) { return false; }
41 virtual bool send() { return false; }
42 virtual bool load( const char* file
) { return false; }
43 virtual void gotoLevel( int l
, bool replay
=false ) {}
44 Levels
& levels() { return *m_levels
; }
45 virtual bool renderScene( Canvas
& c
, int level
) =0;
59 Widget
* createGameLayer( Levels
* levels
, int width
, int height
, bool fullscreen
);