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.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2015-12-05 09:15:58 +01:00
|
|
|
#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
|
2016-02-14 17:34:11 +01:00
|
|
|
|
2015-12-18 00:14:25 +01:00
|
|
|
extern void blitRotated(SDL_Texture *texture, int x, int y, float angle);
|
2015-10-29 11:14:21 +01:00
|
|
|
extern void doFighter(void);
|
2015-12-12 18:12:25 +01:00
|
|
|
extern void doCapitalShip(void);
|
2015-11-15 00:19:17 +01:00
|
|
|
extern void doRope(Entity *e);
|
|
|
|
extern void drawRope(Entity *e);
|
2015-11-15 12:31:30 +01:00
|
|
|
extern void cutRope(Entity *e);
|
2015-12-07 20:19:41 +01:00
|
|
|
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);
|
2016-04-09 19:13:59 +02:00
|
|
|
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
|
|
|
|
2015-11-13 23:08:59 +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;
|
2015-10-26 20:16:12 +01:00
|
|
|
extern Entity *self;
|
2015-10-27 08:24:17 +01:00
|
|
|
extern Entity *player;
|