diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-06-08 08:41:44 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-06-08 08:41:44 -0400 |
commit | 6f23c384bb07db5e0c4bdaf0a0340d0af47475d8 (patch) | |
tree | aa160f1c92352f48dc3339331ab6c87c75ac972c /include/entities.hpp | |
parent | 7dd64863c9ca613cf6969442f621849762b20115 (diff) |
Lighting!
Diffstat (limited to 'include/entities.hpp')
-rw-r--r-- | include/entities.hpp | 12 |
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; } }; |