tbftss/src/battle/entities.h

45 lines
1.5 KiB
C
Raw Normal View History

2015-10-26 18:27:43 +01:00
/*
2016-02-21 16:50:27 +01:00
Copyright (C) 2015-2016 Parallel Realities
2015-10-26 18:27:43 +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"
2015-10-26 18:27:43 +01:00
2016-04-02 17:37:49 +02:00
#define DISABLED_GLOW_SPEED 3
#define DISABLED_GLOW_MIN 128
#define DISABLED_GLOW_MAX 255
extern void blitRotated(SDL_Texture *texture, int x, int y, float angle);
extern void doFighter(void);
extern void doCapitalShip(void);
extern void doRope(Entity *e);
extern void drawRope(Entity *e);
extern void cutRope(Entity *e);
extern void drawShieldHitEffect(Entity *e);
2016-02-21 08:48:22 +01:00
extern void removeFromQuadtree(Entity *e, Quadtree *root);
extern void addToQuadtree(Entity *e, Quadtree *root);
2016-04-02 11:47:44 +02:00
extern void updateCapitalShipComponentProperties(Entity *parent, long flags);
extern Entity **getAllEntsWithin(int x, int y, int w, int h, Entity *ignore);
2016-05-15 09:19:26 +02:00
extern int isOnBattleScreen(int x, int y, int w, int h);
2015-10-26 18:27:43 +01:00
extern App app;
2015-10-26 18:27:43 +01:00
extern Battle battle;
2015-12-18 11:12:37 +01:00
extern Dev dev;
extern Entity *self;
extern Entity *player;