blobwarsAttrition/src/world/entities.h

48 lines
1.7 KiB
C
Raw Permalink Normal View History

2018-01-25 08:41:10 +01:00
/*
2019-06-02 17:13:34 +02:00
Copyright (C) 2018-2019 Parallel Realities
2018-01-25 08:41:10 +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.
*/
2018-01-28 10:40:43 +01:00
#include "../common.h"
2018-01-25 08:41:10 +01:00
#define MAX_RIDERS 256
#define MAX_TOUCHED 256
2018-02-03 09:44:02 +01:00
extern void addTeleportStar(float x, float y);
2018-03-01 08:52:50 +01:00
extern void addTeleportStars(Entity *e);
extern void addToQuadtree(Entity *e, Quadtree *root);
extern void blitRect(SDL_Texture *texture, int x, int y, SDL_Rect *srcRect, int center);
2018-02-03 09:44:02 +01:00
extern int collision(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2);
2018-03-01 08:52:50 +01:00
extern Entity **getAllEntsWithin(int x, int y, int w, int h, Entity *ignore);
2018-02-03 09:44:02 +01:00
extern int getDistance(int x1, int y1, int x2, int y2);
2018-03-01 08:52:50 +01:00
extern Sprite *getSprite(char *name);
extern Texture *getTexture(const char *filename);
2018-02-03 09:44:02 +01:00
extern int isLiquid(int x, int y);
2018-02-03 11:01:14 +01:00
extern int isSolid(int x, int y);
2018-03-01 08:52:50 +01:00
extern int isWalkable(int x, int y);
2018-03-17 18:33:09 +01:00
extern int isWithinMap(int x, int y);
2018-03-01 08:52:50 +01:00
extern float limit(float i, float a, float b);
2018-02-26 19:56:13 +01:00
extern void playBattleSound(int snd, int ch, int x, int y);
2018-03-01 08:52:50 +01:00
extern void removeFromQuadtree(Entity *e, Quadtree *root);
extern void terminateJetpack(void);
2018-01-25 08:41:10 +01:00
2018-12-22 22:53:19 +01:00
extern App app;
2018-03-01 08:52:50 +01:00
extern Camera camera;
extern Entity *self;
2018-01-25 08:41:10 +01:00
extern World world;