This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-07 21:38:35 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "game/controller.hpp"
|
|
|
|
#include "tinyengine/tinyengine.hpp"
|
|
|
|
#include "game/entity.hpp"
|
|
|
|
#include "game/component.hpp"
|
|
|
|
#include "game/action.hpp"
|
|
|
|
|
2022-02-08 21:02:52 +08:00
|
|
|
class FightShipController: public Controller {
|
2022-02-07 21:38:35 +08:00
|
|
|
public:
|
2022-02-08 21:02:52 +08:00
|
|
|
FightShipController(Entity* entity);
|
2022-02-07 21:38:35 +08:00
|
|
|
void Update(float dt) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Entity* entity_;
|
2022-02-09 22:33:06 +08:00
|
|
|
|
|
|
|
void weaponShoot(SpaceshipWeaponCmpt* weapon, const MoveCmpt& move);
|
2022-02-07 21:38:35 +08:00
|
|
|
};
|