aboutsummaryrefslogtreecommitdiffstats
path: root/include/entities.hpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-06-08 08:41:44 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-06-08 08:41:44 -0400
commit6f23c384bb07db5e0c4bdaf0a0340d0af47475d8 (patch)
treeaa160f1c92352f48dc3339331ab6c87c75ac972c /include/entities.hpp
parent7dd64863c9ca613cf6969442f621849762b20115 (diff)
Lighting!
Diffstat (limited to 'include/entities.hpp')
-rw-r--r--include/entities.hpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/entities.hpp b/include/entities.hpp
index ca4ef2b..d2185c4 100644
--- a/include/entities.hpp
+++ b/include/entities.hpp
@@ -400,7 +400,8 @@ public:
float fireFlicker;
vec2 fireLoc;
- Light(vec2 l, Color c, float r){
+ Light(vec2 l, float r, Color c)
+ {
loc = l;
color = c;
radius = r;
@@ -411,7 +412,14 @@ public:
flame = false;
}
- void makeFlame(void){
+ void follow(Entity *f)
+ {
+ following = f;
+ belongsTo = true;
+ }
+
+ void makeFlame(void)
+ {
flame = true;
}
};