aboutsummaryrefslogtreecommitdiffstats
path: root/include/entities.hpp
diff options
context:
space:
mode:
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 e406397..7c712c9 100644
--- a/include/entities.hpp
+++ b/include/entities.hpp
@@ -357,7 +357,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;
@@ -368,7 +369,14 @@ public:
flame = false;
}
- void makeFlame(void){
+ void follow(Entity *f)
+ {
+ following = f;
+ belongsTo = true;
+ }
+
+ void makeFlame(void)
+ {
flame = true;
}