blobwarsAttrition/src/game/title.h

62 lines
2.0 KiB
C
Raw Permalink Normal View History

2018-01-21 10:31:38 +01:00
/*
2019-06-02 17:13:34 +02:00
Copyright (C) 2018-2019 Parallel Realities
2018-01-21 10:31:38 +01: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.
*/
#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,
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-04-25 08:56:06 +02:00
extern char *buildFormattedString(const char *format, ...);
2018-03-21 19:26:46 +01:00
extern void deleteSaveSlot(int slot);
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));
2018-04-21 13:13:29 +02:00
extern void loadGame(int slot);
extern void loadMusic(char *filename);
2018-03-20 08:29:05 +01:00
extern void newGame(void);
extern void playMusic(int loop);
extern void saveGame(int isTempFile);
2018-03-20 08:29:05 +01:00
extern void setSelectedWidget(char *name, char *group);
2018-03-19 09:08:29 +01:00
extern void showWidgetGroup(char *group);
extern void startSectionTransition(void);
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;