blobwarsAttrition/src/system/init.h

58 lines
1.8 KiB
C
Raw Normal View History

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-02-08 22:54:11 +01:00
#include "../json/cJSON.h"
2018-01-21 10:31:38 +01:00
#include "SDL2/SDL_image.h"
#include "SDL2/SDL_mixer.h"
#include "SDL2/SDL_ttf.h"
2018-02-03 14:07:56 +01:00
#include "locale.h"
2018-04-25 08:56:06 +02:00
extern char *buildFormattedString(const char *format, ...);
2018-01-21 10:31:38 +01:00
extern void createSaveFolder(void);
2018-03-01 08:52:50 +01:00
extern void destroyGame(void);
extern void destroyLookups(void);
2018-01-21 10:31:38 +01:00
extern void destroyTextures(void);
2018-02-08 22:54:11 +01:00
extern int fileExists(const char *filename);
2018-03-01 08:52:50 +01:00
extern char *getLookupName(const char *prefix, long num);
extern void initAtlas(void);
extern void initBackground(void);
extern void initEntityFactory(void);
extern void initFonts(void);
extern void initGame(void);
extern void initGraphics(void);
extern void initSounds(void);
extern void initSprites(void);
extern void initStats(void);
2018-04-15 11:45:18 +02:00
extern void initStrings(void);
2018-03-30 20:23:57 +02:00
extern void initTextures(void);
2018-03-01 08:52:50 +01:00
extern void initTrophies(void);
extern void initWidgets(void);
2018-02-08 22:54:11 +01:00
extern long lookup(const char *name);
2018-02-12 19:26:47 +01:00
extern void prepareScene(void);
extern void presentScene(void);
2018-03-01 08:52:50 +01:00
extern char *readFile(const char *filename);
extern void setLanguage(char *applicationName, char *languageCode);
extern int writeFile(const char *filename, const char *data);
2018-01-21 10:31:38 +01:00
extern App app;