aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-11-17 08:38:51 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-11-17 08:38:51 -0500
commitfcf3e396c57b285b621624f63f9acd6515c58ef9 (patch)
tree03969def5fbea60e9003e56c94ccca1492eebe26 /include
parent20b29fccb6da62d5a07a02477fabac3a80d350dd (diff)
cutscenes, arenas
Diffstat (limited to 'include')
-rw-r--r--include/entities.h7
-rw-r--r--include/world.h9
2 files changed, 11 insertions, 5 deletions
diff --git a/include/entities.h b/include/entities.h
index b590c8d..c2de1b1 100644
--- a/include/entities.h
+++ b/include/entities.h
@@ -30,7 +30,8 @@ enum GENDER{
enum MOB_SUB {
MS_RABBIT = 1,
- MS_BIRD
+ MS_BIRD,
+ MS_TRIGGER
};
class Entity{
@@ -102,8 +103,10 @@ public:
class Mob : public Entity{
public:
- float init_y;
+ double init_y;
+ void (*hey)();
Mob(int);
+ Mob(int,unsigned int);
void wander(int);
};
diff --git a/include/world.h b/include/world.h
index ac41dd6..8f4ea51 100644
--- a/include/world.h
+++ b/include/world.h
@@ -83,6 +83,7 @@ public:
void addStructure(_TYPE t,float x,float y,World *outside,World *inside);
void addMob(int t,float x,float y);
+ void addMob(int t,float x,float y,void (*hey)());
void addNPC(float x,float y);
void addObject(int, float, float);
@@ -191,10 +192,12 @@ public:
class Arena : public World {
private:
- World *exit;
+ vec2 pxy;
+ vec2 door;
+ World *exit;
public:
- void drawDoor(void);
- World *exitArena(void);
+ Arena(World *leave,Player *p);
+ World *exitArena(Player *p);
};
extern int worldShade;