Lots more cleanup.

This commit is contained in:
onpon4 2017-01-20 23:48:53 -05:00
parent 82dc26f949
commit 08b68ab894
7 changed files with 69 additions and 14 deletions

View File

@ -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];

View File

@ -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;

View File

@ -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()

View File

@ -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];

View File

@ -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.

View File

@ -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_ {

View File

@ -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];