|
@@ -21,7 +21,7 @@
|
|
|
namespace engine {
|
|
namespace engine {
|
|
|
class scene : public identity<scene, std::string> {
|
|
class scene : public identity<scene, std::string> {
|
|
|
public:
|
|
public:
|
|
|
- scene(std::string const &);
|
|
|
|
|
|
|
+ scene(std::string const &, std::shared_ptr<game_dispatch>);
|
|
|
virtual ~scene();
|
|
virtual ~scene();
|
|
|
|
|
|
|
|
virtual void update(float delta) = 0;
|
|
virtual void update(float delta) = 0;
|
|
@@ -33,6 +33,7 @@ namespace engine {
|
|
|
key_binding const & keys() const;
|
|
key_binding const & keys() const;
|
|
|
|
|
|
|
|
protected:
|
|
protected:
|
|
|
|
|
+ graphics::manager const & graphics_manager() const;
|
|
|
void change_scene(std::string const & scene_id);
|
|
void change_scene(std::string const & scene_id);
|
|
|
void check_collisions();
|
|
void check_collisions();
|
|
|
static void check_collisions(std::vector<entity *> const & from,
|
|
static void check_collisions(std::vector<entity *> const & from,
|