2018-01-21 10:31:38 +01:00
|
|
|
/*
|
|
|
|
Copyright (C) 2018 Parallel Realities
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "../common.h"
|
|
|
|
|
2018-03-19 23:51:37 +01:00
|
|
|
enum
|
|
|
|
{
|
2018-03-21 08:26:11 +01:00
|
|
|
SA_NONE,
|
2018-03-19 23:51:37 +01:00
|
|
|
SA_LOAD,
|
2018-03-20 09:20:56 +01:00
|
|
|
SA_NEW,
|
2018-03-19 23:51:37 +01:00
|
|
|
SA_DELETE
|
|
|
|
};
|
|
|
|
|
2018-03-19 09:08:29 +01:00
|
|
|
extern void blitRect(SDL_Texture *texture, int x, int y, SDL_Rect *srcRect, int center);
|
2018-03-20 08:29:05 +01:00
|
|
|
extern void destroyGame(void);
|
2018-03-19 09:08:29 +01:00
|
|
|
extern void doWidgets(void);
|
|
|
|
extern void drawText(int x, int y, int size, int align, SDL_Color c, const char *format, ...);
|
|
|
|
extern void drawWidgets(void);
|
|
|
|
extern void endSectionTransition(void);
|
2018-03-20 08:29:05 +01:00
|
|
|
extern int fileExists(const char *filename);
|
|
|
|
extern long getFileModTime(char *filename);
|
2018-03-19 09:08:29 +01:00
|
|
|
extern Atlas *getImageFromAtlas(char *filename);
|
2018-03-20 08:29:05 +01:00
|
|
|
extern char *getSaveWidgetLabel(char *filename);
|
|
|
|
extern Widget *getSelectedWidget(void);
|
2018-03-19 09:08:29 +01:00
|
|
|
extern Texture *getTexture(const char *filename);
|
|
|
|
extern Widget *getWidget(char *name, char *group);
|
2018-03-21 08:26:11 +01:00
|
|
|
extern void initCredits(int playMusic);
|
2018-03-20 08:29:05 +01:00
|
|
|
extern void initHub(void);
|
|
|
|
extern void initOptions(void (*callback)(void));
|
|
|
|
extern void loadGame(void);
|
2018-03-20 09:20:56 +01:00
|
|
|
extern void loadMusic(char *filename);
|
2018-03-20 08:29:05 +01:00
|
|
|
extern void newGame(void);
|
2018-03-20 09:20:56 +01:00
|
|
|
extern void playMusic(int loop);
|
2018-03-20 08:29:05 +01:00
|
|
|
extern void saveGame(void);
|
|
|
|
extern void setSelectedWidget(char *name, char *group);
|
2018-03-19 09:08:29 +01:00
|
|
|
extern void showWidgetGroup(char *group);
|
|
|
|
extern void startSectionTransition(void);
|
2018-03-20 09:20:56 +01:00
|
|
|
extern void stopMusic(void);
|
2018-03-01 08:52:50 +01:00
|
|
|
|
2018-03-19 09:08:29 +01:00
|
|
|
extern App app;
|
|
|
|
extern Colors colors;
|
2018-03-19 23:51:37 +01:00
|
|
|
extern Game game;
|
2018-03-20 08:29:05 +01:00
|
|
|
|