aboutsummaryrefslogtreecommitdiffstats
path: root/include/entities.h
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-01-13 07:31:16 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-01-13 07:31:16 -0500
commit23a4b0cc3ab09d58127a73b12c43aff37e5056ef (patch)
tree0e7d2f923311804c6a9e4270812174de45f2f7d2 /include/entities.h
parent1574754cdaca14d68459cc520b63b6b3c449ecbd (diff)
Fire Pit
Diffstat (limited to 'include/entities.h')
-rw-r--r--include/entities.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/entities.h b/include/entities.h
index d7ad2c0..fe0d014 100644
--- a/include/entities.h
+++ b/include/entities.h
@@ -43,7 +43,8 @@ enum BUILD_SUB{
HOUSE3 = 3,
HOUSE4 = 4,
FOUNTAIN = 5,
- LAMP_POST = 6
+ LAMP_POST = 6,
+ FIRE_PIT = 7
};
typedef struct {
@@ -83,6 +84,8 @@ public:
Color color;
int duration;
bool canMove;
+ bool fountain;
+ bool gravity;
Particles(float x, float y, float w, float h, float vx, float vy, Color c, int d){
loc.x = (x);
loc.y = (y);
@@ -94,6 +97,8 @@ public:
color.green = (c.green);
color.blue = (c.blue);
duration = d;
+ fountain = false;
+ gravity = true;
}
~Particles(){}
void draw(){
@@ -102,8 +107,9 @@ public:
}
bool kill(float delta){
duration -= delta;
- if(duration <= 0)
+ if(duration <= 0){
return true;
+ }
else return false;
}
};