diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-01-20 08:42:46 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-01-20 08:42:46 -0500 |
commit | 1e6676c35ce4990981e8cda389ba39108437d66d (patch) | |
tree | c1605794e8fa3d2e3dc9e29a91b0acaded59c8be /include/entities.h | |
parent | 1eced16d75322832617a1b42ec94580a9713e8f0 (diff) |
WIP save/load
Diffstat (limited to 'include/entities.h')
-rw-r--r-- | include/entities.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/include/entities.h b/include/entities.h index d434546..6328770 100644 --- a/include/entities.h +++ b/include/entities.h @@ -63,15 +63,13 @@ public: bool gravity; bool behind; Particles(float x, float y, float w, float h, float vx, float vy, Color c, float d){ - loc.x = (x); - loc.y = (y); - width = (w); - height = (h); + loc.x = x; + loc.y = y; + width = w; + height = h; velx = vx; vely = vy; - color.red = (c.red); - color.green = (c.green); - color.blue = (c.blue); + color = c; duration = d; fountain = false; gravity = true; @@ -166,7 +164,7 @@ public: class NPC : public Entity{ public: std::vector<int (*)(NPC *)>aiFunc; - unsigned int dialogIndex; + int dialogIndex; NPC(); ~NPC(); @@ -180,7 +178,6 @@ class Structures : public Entity{ public: BUILD_SUB bsubtype; char *inside; - //char *outside; Structures(); ~Structures(); |