2 Copyright (C) 2003 Parallel Realities
3 Copyright (C) 2011, 2012, 2013 Guus Sliepen
4 Copyright (C) 2015 Julian Marchant
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/>.
20 #include "Starfighter.h"
26 engine.musicVolume = 100;
27 engine.useAudio = true;
36 engine.bulletHead = new object;
37 engine.bulletHead->next = NULL;
38 engine.bulletTail = engine.bulletHead;
40 engine.explosionHead = new object;
41 engine.explosionHead->next = NULL;
42 engine.explosionTail = engine.explosionHead;
44 engine.collectableHead = new collectables;
45 engine.collectableHead->next = NULL;
46 engine.collectableTail = engine.collectableHead;
48 engine.debrisHead = new object;
49 engine.debrisHead->next = NULL;
50 engine.debrisTail = engine.debrisHead;
52 engine.commsSection = 0;
54 for (int i = 0; i < KEY_LAST; i++)
55 engine.keyState[i] = 0;
57 engine.eventTimer = 0;
60 engine.timeMission = 0;
64 engine.paused = false;
65 engine.gameSection = SECTION_TITLE;
68 engine.cheatShield = false;
69 engine.cheatAmmo = false;
70 engine.cheatCash = false;