Code tidying.
This commit is contained in:
parent
0e57f9ce79
commit
cc280f326f
|
@ -23,11 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
static int isBlockedByMap(Entity *src, Entity *dest);
|
||||
static int isBlockedByEntities(Entity *src, Entity *dest);
|
||||
|
||||
void lookForPlayer(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int hasLineOfSight(Entity *src, Entity *dest)
|
||||
{
|
||||
return (!isBlockedByMap(src, dest) && !isBlockedByEntities(src, dest));
|
||||
|
|
|
@ -20,6 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
#include "boss.h"
|
||||
|
||||
static void lookForPlayer(void);
|
||||
|
||||
void initBoss(Entity *e)
|
||||
{
|
||||
Boss *b;
|
||||
|
@ -43,3 +45,7 @@ void initBoss(Entity *e)
|
|||
|
||||
b->flags |= EF_ALWAYS_PROCESS | EF_BOMB_SHIELD | EF_GONE;
|
||||
}
|
||||
|
||||
static void lookForPlayer(void)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "../../common.h"
|
||||
|
||||
extern void initEntity(Entity *e);
|
||||
extern void lookForPlayer(void);
|
||||
extern Sprite *getSprite(char *name);
|
||||
|
||||
extern World world;
|
||||
|
|
|
@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "../json/cJSON.h"
|
||||
|
||||
extern void initEntity(Entity *e);
|
||||
extern void lookForPlayer(void);
|
||||
extern int rrnd(int low, int high);
|
||||
extern float limit(float i, float a, float b);
|
||||
extern int getDistance(int x1, int y1, int x2, int y2);
|
||||
|
|
Loading…
Reference in New Issue