1 #ifndef PLAYERCONTROLLER_H_
2 #define PLAYERCONTROLLER_H_
4 #include <msp/game/eventobserver.h>
5 #include <msp/game/owned.h>
6 #include <msp/game/system.h>
12 class PlayerController: public Msp::Game::System
15 Controls *controls = nullptr;
16 ShipSetup player_setup;
17 BulletSetup bullet_setup;
18 Msp::Game::Owned<Ship> player_ship;
19 std::vector<Msp::Game::Owned<Bullet>> bullets;
22 PlayerController(Msp::Game::Stage &);
24 void set_controls(Controls *);
26 void tick(Msp::Time::TimeDelta) override;
27 void deferred_tick() override;