blobwarsAttrition/src/game/game.h

41 lines
1.4 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-01-28 16:48:20 +01:00
#include "../json/cJSON.h"
2018-02-08 22:53:52 +01:00
extern Entity *createEntity(char *name);
2018-03-20 08:29:05 +01:00
extern int deleteFile(char *path);
2018-02-15 22:37:43 +01:00
extern int fileExists(const char *filename);
2018-03-20 08:29:05 +01:00
extern char **getFileList(const char *dir, int *count);
2018-03-01 08:52:50 +01:00
extern char *getLookupName(const char *prefix, long num);
2018-03-20 08:29:05 +01:00
extern int getPercent(float current, float total);
2018-03-01 08:52:50 +01:00
extern Trophy *getTrophy(char *id);
2018-03-20 08:29:05 +01:00
extern void loadTrophyData(void);
2018-02-15 22:37:43 +01:00
extern int lookup(char *name);
2018-03-01 08:52:50 +01:00
extern char *readFile(const char *filename);
2018-03-19 23:51:37 +01:00
extern char *timeToString(int seconds, int showHours);
2018-03-20 08:29:05 +01:00
extern int writeFile(const char *filename, const char *data);
2018-01-24 08:16:52 +01:00
2018-02-15 22:37:43 +01:00
extern App app;
2018-02-18 10:28:25 +01:00
extern Entity *self;
2018-01-24 08:16:52 +01:00
extern Game game;
2018-02-04 09:11:42 +01:00
extern World world;