#include <msp/game/eventobserver.h>
#include <msp/game/owned.h>
#include <msp/game/system.h>
+#include "bullet.h"
#include "ship.h"
class Controls;
private:
Controls *controls = nullptr;
ShipSetup player_setup;
+ BulletSetup bullet_setup;
Msp::Game::Owned<Ship> player_ship;
+ std::vector<Msp::Game::Owned<Bullet>> bullets;
public:
PlayerController(Msp::Game::Stage &);
void set_controls(Controls *);
void tick(Msp::Time::TimeDelta) override;
+private:
+ void fire();
};
#endif