diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-16 19:34:01 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-16 19:34:01 +0100 |
commit | ec38926a517e9c1cfab41cf9da1e334688d006a5 (patch) | |
tree | 5e7a61efd3708bbe57bb3d5d17e0e3559d1df876 /src/game/game.hpp | |
parent | da4e3c6509fa6e00f5bbcb3a34607dd966650d1a (diff) |
Start refactoring decos.
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 10 |
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) {}; }; }; |