2015-10-20 13:51:49 +02:00
|
|
|
/*
|
2016-02-21 16:50:27 +01:00
|
|
|
Copyright (C) 2015-2016 Parallel Realities
|
2015-10-20 13:51:49 +02:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2015-12-05 09:15:58 +01:00
|
|
|
#include "../common.h"
|
2015-10-20 13:51:49 +02:00
|
|
|
|
2015-11-28 11:11:20 +01:00
|
|
|
#include "../json/cJSON.h"
|
2015-10-20 13:51:49 +02:00
|
|
|
|
|
|
|
#define SHOW_BATTLE 0
|
|
|
|
#define SHOW_MENU 1
|
|
|
|
#define SHOW_OBJECTIVES 2
|
|
|
|
#define SHOW_OPTIONS 3
|
|
|
|
|
|
|
|
extern void doBullets(void);
|
|
|
|
extern void drawBullets(void);
|
|
|
|
extern void doStars(float dx, float dy);
|
|
|
|
extern void drawStars(void);
|
2015-10-26 18:27:43 +01:00
|
|
|
extern void doEntities(void);
|
|
|
|
extern void drawEntities(void);
|
2015-10-20 13:51:49 +02:00
|
|
|
extern void initStars(void);
|
|
|
|
extern void doPlayer(void);
|
|
|
|
extern void drawHud(void);
|
|
|
|
extern void drawEffects(void);
|
|
|
|
extern void doEffects(void);
|
|
|
|
extern void doObjectives(void);
|
2016-02-28 14:02:57 +01:00
|
|
|
extern void doChallenges(void);
|
2016-02-21 14:47:10 +01:00
|
|
|
extern void blitScaled(SDL_Texture *texture, int x, int y, int w, int h);
|
2015-10-20 13:51:49 +02:00
|
|
|
extern void initHud(void);
|
2015-11-02 11:11:47 +01:00
|
|
|
extern void initRadar(void);
|
2015-10-20 13:51:49 +02:00
|
|
|
extern void initGalacticMap(void);
|
2015-12-10 11:15:27 +01:00
|
|
|
extern void initEntities(void);
|
|
|
|
extern void destroyEntities(void);
|
2015-10-20 13:51:49 +02:00
|
|
|
extern void drawWidgets(char *groupName);
|
|
|
|
extern void selectWidget(const char *name, const char *group);
|
|
|
|
extern Widget *getWidget(const char *name, const char *group);
|
|
|
|
extern void doWidgets(void);
|
|
|
|
extern void loadMission(char *filename);
|
|
|
|
extern void resetHud(void);
|
|
|
|
extern void doHud(void);
|
|
|
|
extern void drawMissionInfo(void);
|
|
|
|
extern void drawBackground(SDL_Texture *texture);
|
|
|
|
extern void initBackground(void);
|
|
|
|
extern void scrollBackground(float x, float y);
|
|
|
|
extern void initOptions(void (*returnFromOptions)(void));
|
|
|
|
extern void drawOptions(void);
|
|
|
|
extern void playSound(int id);
|
2015-10-28 20:12:58 +01:00
|
|
|
extern void resetWaypoints(void);
|
2015-10-31 11:00:46 +01:00
|
|
|
extern void doPlayerSelect(void);
|
2016-02-21 08:48:22 +01:00
|
|
|
extern void destroyQuadtree(void);
|
|
|
|
extern void initQuadtree(Quadtree *root);
|
2015-11-18 17:04:12 +01:00
|
|
|
extern void initEffects(void);
|
2015-11-28 11:11:20 +01:00
|
|
|
extern void doScript(void);
|
|
|
|
extern void destroyScript(void);
|
|
|
|
extern void initMessageBox(void);
|
|
|
|
extern void doMessageBox(void);
|
|
|
|
extern void drawMessageBox(void);
|
|
|
|
extern void resetMessageBox(void);
|
2015-12-11 20:06:16 +01:00
|
|
|
extern void initBullets(void);
|
2015-12-13 15:50:54 +01:00
|
|
|
extern void initDebris(void);
|
|
|
|
extern void doDebris(void);
|
|
|
|
extern void drawDebris(void);
|
2015-12-22 13:42:04 +01:00
|
|
|
extern void doLocations(void);
|
|
|
|
extern void drawLocations(void);
|
2016-02-25 00:12:13 +01:00
|
|
|
extern void destroyDebris(void);
|
|
|
|
extern void destroyBullets(void);
|
|
|
|
extern void destroyEffects(void);
|
2016-02-27 17:16:21 +01:00
|
|
|
extern void initChallengeHome(void);
|
2016-03-03 10:12:08 +01:00
|
|
|
extern void updateAccuracyStats(unsigned int *stats);
|
2016-03-05 16:34:37 +01:00
|
|
|
extern void clearInput(void);
|
2016-03-27 12:21:23 +02:00
|
|
|
extern void runScriptFunction(const char *format, ...);
|
|
|
|
extern void doSpawners(void);
|
2016-05-20 11:51:35 +02:00
|
|
|
extern void cancelScript(void);
|
2016-05-31 10:12:14 +02:00
|
|
|
extern void awardTrophy(char *id);
|
|
|
|
extern void initCredits(void);
|
2016-06-03 14:57:24 +02:00
|
|
|
extern void showOKCancelDialog(void (*okCallback)(void), void (*cancelCallback)(void), const char *format, ...);
|
|
|
|
extern char *getTranslatedString(char *string);
|
2015-10-20 13:51:49 +02:00
|
|
|
|
|
|
|
extern App app;
|
|
|
|
extern Battle battle;
|
2015-12-20 13:25:20 +01:00
|
|
|
extern Dev dev;
|
2015-10-26 20:16:12 +01:00
|
|
|
extern Entity *player;
|
2015-10-20 13:51:49 +02:00
|
|
|
extern Game game;
|