| 1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // world.hpp
- // danmaku
- //
- // Created by Sam Jaffe on 5/27/19.
- // Copyright © 2019 Sam Jaffe. All rights reserved.
- //
- #pragma once
- #include <memory>
- #include <vector>
- #include "game/engine/scene.hpp"
- namespace danmaku {
- class level;
- class player;
- class world : public engine::scene {
- public:
- world(std::shared_ptr<engine::game_dispatch> game,
- std::unique_ptr<player> player,
- std::vector<std::shared_ptr<level>> levels);
- ~world();
- void update(float delta) override {}
- void render() override {}
- static std::shared_ptr<world>
- load_world(std::string const & path,
- std::shared_ptr<engine::game_dispatch>);
- private:
- std::unique_ptr<player> player_;
- std::vector<std::shared_ptr<level>> levels_;
- };
- }
|