From ec38926a517e9c1cfab41cf9da1e334688d006a5 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 16 Dec 2017 19:34:01 +0100 Subject: Start refactoring decos. --- src/game/game.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/game/game.hpp') 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) {}; }; }; -- cgit