Lots more cleanup.
This commit is contained in:
parent
82dc26f949
commit
08b68ab894
|
@ -17,11 +17,12 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "Starfighter.h"
|
||||
|
||||
#include "defs.h"
|
||||
#include "structs.h"
|
||||
|
||||
#include "alien.h"
|
||||
#include "collectable.h"
|
||||
#include "gfx.h"
|
||||
#include "radio.h"
|
||||
|
||||
Object cargo[MAX_CARGO];
|
||||
|
|
|
@ -17,11 +17,19 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "Starfighter.h"
|
||||
|
||||
#include "colors.h"
|
||||
#include "defs.h"
|
||||
#include "structs.h"
|
||||
|
||||
#include "alien.h"
|
||||
#include "engine.h"
|
||||
#include "explosion.h"
|
||||
#include "game.h"
|
||||
#include "gfx.h"
|
||||
#include "player.h"
|
||||
#include "renderer.h"
|
||||
#include "screen.h"
|
||||
|
||||
typedef struct Message_ {
|
||||
|
||||
int face;
|
||||
|
|
|
@ -17,15 +17,28 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "Starfighter.h"
|
||||
|
||||
#include <pwd.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <pwd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "SDL.h"
|
||||
#include "SDL_mixer.h"
|
||||
|
||||
#include "colors.h"
|
||||
#include "defs.h"
|
||||
#include "structs.h"
|
||||
|
||||
#include "audio.h"
|
||||
#include "collectable.h"
|
||||
#include "engine.h"
|
||||
#include "game.h"
|
||||
#include "gfx.h"
|
||||
#include "player.h"
|
||||
#include "renderer.h"
|
||||
#include "screen.h"
|
||||
#include "window.h"
|
||||
|
||||
Engine engine;
|
||||
|
||||
void engine_init()
|
||||
|
|
|
@ -17,11 +17,14 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "Starfighter.h"
|
||||
|
||||
#include "defs.h"
|
||||
#include "structs.h"
|
||||
|
||||
#include "alien.h"
|
||||
#include "engine.h"
|
||||
#include "event.h"
|
||||
#include "game.h"
|
||||
#include "player.h"
|
||||
#include "radio.h"
|
||||
|
||||
static Event events[MAX_EVENTS];
|
||||
|
|
|
@ -17,11 +17,12 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "Starfighter.h"
|
||||
|
||||
#include "defs.h"
|
||||
#include "structs.h"
|
||||
|
||||
#include "engine.h"
|
||||
#include "gfx.h"
|
||||
|
||||
/*
|
||||
Create a new explosion based on supplied parameters.
|
||||
The "type" will actually be used as an explosion frame check.
|
||||
|
|
24
src/game.cpp
24
src/game.cpp
|
@ -17,12 +17,34 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "Starfighter.h"
|
||||
#include <math.h>
|
||||
|
||||
#include "colors.h"
|
||||
#include "defs.h"
|
||||
#include "structs.h"
|
||||
|
||||
#include "alien.h"
|
||||
#include "audio.h"
|
||||
#include "bullet.h"
|
||||
#include "cargo.h"
|
||||
#include "collectable.h"
|
||||
#include "cutscene.h"
|
||||
#include "engine.h"
|
||||
#include "event.h"
|
||||
#include "explosion.h"
|
||||
#include "game.h"
|
||||
#include "gfx.h"
|
||||
#include "info.h"
|
||||
#include "intermission.h"
|
||||
#include "mission.h"
|
||||
#include "player.h"
|
||||
#include "radio.h"
|
||||
#include "renderer.h"
|
||||
#include "save.h"
|
||||
#include "screen.h"
|
||||
#include "ship.h"
|
||||
#include "title.h"
|
||||
#include "weapons.h"
|
||||
|
||||
typedef struct Star_ {
|
||||
|
||||
|
|
|
@ -19,11 +19,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "Starfighter.h"
|
||||
#include "SDL.h"
|
||||
#include "SDL_image.h"
|
||||
|
||||
#include "defs.h"
|
||||
#include "structs.h"
|
||||
|
||||
#include "alien.h"
|
||||
#include "engine.h"
|
||||
#include "game.h"
|
||||
#include "screen.h"
|
||||
#include "weapons.h"
|
||||
|
||||
SDL_Surface *gfx_background;
|
||||
SDL_Surface *gfx_sprites[SP_MAX];
|
||||
SDL_Surface *gfx_faceSprites[FS_MAX];
|
||||
|
|
Loading…
Reference in New Issue