Moved entites directory out of world.

This commit is contained in:
Steve 2018-01-28 09:40:43 +00:00
parent 7d6ca19c77
commit 0bbff1cb85
79 changed files with 48 additions and 48 deletions

View File

@ -4,21 +4,21 @@ LOCALE_MO = $(patsubst %.po,%.mo,$(wildcard locale/*.po))
SEARCHPATH += src SEARCHPATH += src
SEARCHPATH += src/combat SEARCHPATH += src/combat
SEARCHPATH += src/entities
SEARCHPATH += src/entities/blobs
SEARCHPATH += src/entities/boss
SEARCHPATH += src/entities/cannons
SEARCHPATH += src/entities/decoration
SEARCHPATH += src/entities/items
SEARCHPATH += src/entities/misc
SEARCHPATH += src/entities/structures
SEARCHPATH += src/entities/traps
SEARCHPATH += src/game SEARCHPATH += src/game
SEARCHPATH += src/hub SEARCHPATH += src/hub
SEARCHPATH += src/system SEARCHPATH += src/system
SEARCHPATH += src/util SEARCHPATH += src/util
SEARCHPATH += src/widgets SEARCHPATH += src/widgets
SEARCHPATH += src/world SEARCHPATH += src/world
SEARCHPATH += src/world/entities
SEARCHPATH += src/world/entities/blobs
SEARCHPATH += src/world/entities/boss
SEARCHPATH += src/world/entities/cannons
SEARCHPATH += src/world/entities/decoration
SEARCHPATH += src/world/entities/items
SEARCHPATH += src/world/entities/misc
SEARCHPATH += src/world/entities/structures
SEARCHPATH += src/world/entities/traps
vpath %.c $(SEARCHPATH) vpath %.c $(SEARCHPATH)
vpath %.h $(SEARCHPATH) vpath %.h $(SEARCHPATH)

View File

@ -18,4 +18,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);
extern void nothing(void); extern void nothing(void);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initUnit(Entity *e); extern void initUnit(Entity *e);
extern void unitTick(void); extern void unitTick(void);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initBlobBoss(Boss *b); extern void initBlobBoss(Boss *b);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initBoss(Entity *e); extern void initBoss(Entity *e);
extern int rrnd(int low, int high); extern int rrnd(int low, int high);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern void lookForPlayer(void); extern void lookForPlayer(void);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initBoss(Entity *e); extern void initBoss(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initBlobBoss(Entity *e); extern void initBlobBoss(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initBoss(Entity *e); extern void initBoss(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initBoss(Entity *e); extern void initBoss(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initUnit(Entity *e); extern void initUnit(Entity *e);
extern void addExplosion(float x, float y, int radius, Entity *owner); extern void addExplosion(float x, float y, int radius, Entity *owner);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern void addFlameParticles(float x, float y); extern void addFlameParticles(float x, float y);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern void addBlood(float x, float y); extern void addBlood(float x, float y);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../common.h" #include "../common.h"
extern Sprite *getSpriteByIndex(int x); extern Sprite *getSpriteByIndex(int x);
extern float wrap(float value, float low, float high); extern float wrap(float value, float low, float high);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void playSound(int snd, int ch); extern void playSound(int snd, int ch);
extern void pickupItem(void); extern void pickupItem(void);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initItem(Entity *e); extern void initItem(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initConsumable(Entity *e); extern void initConsumable(Entity *e);
extern void setGameplayMessage(int type, char *format, ...); extern void setGameplayMessage(int type, char *format, ...);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void playSound(int snd, int ch); extern void playSound(int snd, int ch);
extern void setGameplayMessage(int type, char *format, ...); extern void setGameplayMessage(int type, char *format, ...);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void playSound(int snd, int ch); extern void playSound(int snd, int ch);
extern void setGameplayMessage(int type, char *format, ...); extern void setGameplayMessage(int type, char *format, ...);

View File

@ -18,6 +18,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initItem(Entity *e); extern void initItem(Entity *e);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initItem(Entity *e); extern void initItem(Entity *e);
extern void updateObjective(char *targetName); extern void updateObjective(char *targetName);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void playSound(int snd, int ch); extern void playSound(int snd, int ch);
extern void setGameplayMessage(int type, char *format, ...); extern void setGameplayMessage(int type, char *format, ...);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void activateEntities(char *names, int activate); extern void activateEntities(char *names, int activate);
extern void dropCarriedItem(void); extern void dropCarriedItem(void);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);
extern void initEntity(Entity *e); extern void initEntity(Entity *e);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);
extern void updateObjective(char *targetName); extern void updateObjective(char *targetName);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initDoor(Entity *e); extern void initDoor(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);
extern void initEntity(Entity *e); extern void initEntity(Entity *e);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern void playSound(int snd, int ch); extern void playSound(int snd, int ch);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern void playSound(int snd, int ch); extern void playSound(int snd, int ch);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initLaserTrap(Entity *e); extern void initLaserTrap(Entity *e);
extern int getSpriteIndex(char *name); extern int getSpriteIndex(char *name);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../../common.h" #include "../../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern void observeActivation(Entity *e); extern void observeActivation(Entity *e);

View File

@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#include "../../common.h" #include "../common.h"
extern void initEntity(Entity *e); extern void initEntity(Entity *e);
extern void lookForPlayer(void); extern void lookForPlayer(void);