Code tidying.

This commit is contained in:
Steve 2018-02-05 22:08:14 +00:00
parent 0e57f9ce79
commit cc280f326f
4 changed files with 6 additions and 7 deletions

View File

@ -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));

View File

@ -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)
{
}

View File

@ -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;

View File

@ -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);