2018-01-25 08:41:10 +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.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2018-01-28 10:40:43 +01:00
|
|
|
#include "../common.h"
|
2018-01-25 08:41:10 +01:00
|
|
|
|
2018-02-03 09:44:02 +01:00
|
|
|
#define MAX_RIDERS 12
|
|
|
|
#define MAX_TOUCHED 12
|
|
|
|
|
2018-01-31 22:50:49 +01:00
|
|
|
extern Texture *getTexture(const char *filename);
|
|
|
|
extern void blitRect(SDL_Texture *texture, int x, int y, SDL_Rect *srcRect, int center);
|
2018-02-01 22:51:43 +01:00
|
|
|
extern void addTeleportStars(Entity *e);
|
2018-02-03 09:44:02 +01:00
|
|
|
extern void removeFromQuadtree(Entity *e, Quadtree *root);
|
|
|
|
extern Sprite *getSprite(char *name);
|
|
|
|
extern void playSound(int snd, int ch);
|
|
|
|
extern void addTeleportStar(float x, float y);
|
|
|
|
extern int collision(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2);
|
|
|
|
extern int getDistance(int x1, int y1, int x2, int y2);
|
|
|
|
extern void addToQuadtree(Entity *e, Quadtree *root);
|
|
|
|
extern float limit(float i, float a, float b);
|
|
|
|
extern int isWalkable(int x, int y);
|
|
|
|
extern int isLiquid(int x, int y);
|
2018-02-03 11:01:14 +01:00
|
|
|
extern int isSolid(int x, int y);
|
2018-02-03 17:13:37 +01:00
|
|
|
extern void terminateJetpack(void);
|
2018-02-05 23:06:00 +01:00
|
|
|
extern Entity **getAllEntsWithin(int x, int y, int w, int h, Entity *ignore);
|
2018-01-25 08:41:10 +01:00
|
|
|
|
2018-02-11 13:37:37 +01:00
|
|
|
extern Dev dev;
|
2018-01-31 23:28:00 +01:00
|
|
|
extern Entity *self;
|
2018-01-31 22:50:49 +01:00
|
|
|
extern Camera camera;
|
2018-01-25 08:41:10 +01:00
|
|
|
extern World world;
|