Moved entites directory out of world.
This commit is contained in:
parent
7d6ca19c77
commit
0bbff1cb85
18
common.mk
18
common.mk
|
@ -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)
|
||||||
|
|
|
@ -18,4 +18,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../../../common.h"
|
#include "../../common.h"
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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, ...);
|
|
@ -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);
|
||||||
|
|
|
@ -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, ...);
|
|
@ -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, ...);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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, ...);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
|
@ -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);
|
Loading…
Reference in New Issue