2 Copyright (C) 2003 Parallel Realities
3 Copyright (C) 2011 Guus Sliepen
4 Copyright (C) 2015, 2016 onpon4 <onpon4@riseup.net>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 3
9 of the License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
29 typedef struct Engine_ {
47 object *explosionHead;
48 object *explosionTail;
49 collectables *collectableHead;
50 collectables *collectableTail;
54 int cursor_x, cursor_y;
66 // Mission completion timer (allows for 4 seconds before leaving sector)
67 Uint32 missionCompleteTimer;
69 // Times the mission normally
71 long timeTaken; // In seconds
73 // For missions with a time limit
79 // Mission Related stuff
92 char configDirectory[1024];
94 char keyState[KEY_LAST];
96 bool cheat; // overall cheat
106 extern Engine engine;
109 void engine_showError(int errorId, const char *name);
110 void engine_setupConfigDirectory();
111 void engine_setMode();
112 void engine_cleanup();