summaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-16 19:34:01 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-16 19:34:01 +0100
commitec38926a517e9c1cfab41cf9da1e334688d006a5 (patch)
tree5e7a61efd3708bbe57bb3d5d17e0e3559d1df876 /src/game/game.hpp
parentda4e3c6509fa6e00f5bbcb3a34607dd966650d1a (diff)
Start refactoring decos.
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index 04380be..c17de64 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -201,13 +201,17 @@ namespace game {
DECO_NEST
} deco_type_t;
- class deco_t : public world::entity_t {
- game::state_t *game;
+ class deco_t : public game::entity_t {
deco_type_t type;
+
public:
double phase_shift;
+
deco_t(game::state_t *game, deco_type_t type_);
- void spawn(world::world_t *world, v2f_t x);
void render_to(render::state_t *render);
+
+ void on_think(void) {};
+ void on_spawn(void) {};
+ void on_wake(void) {};
};
};