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 "tinyengine/tinyengine.hpp"
|
|
|
|
#include "game/component.hpp"
|
|
|
|
#include "game/entity.hpp"
|
|
|
|
|
|
|
|
void Shoot(SpaceshipWeaponCmpt& weapon, const Point& dir);
|
2022-02-09 22:33:06 +08:00
|
|
|
void Shoot(SpaceshipWeaponCmpt& weapon, const Point& dir, Entity* target);
|
2022-02-15 22:50:31 +08:00
|
|
|
void MoveLeft(MotionCmpt& motion);
|
|
|
|
void MoveRight(MotionCmpt& motion);
|
|
|
|
void MoveUp(MotionCmpt& motion);
|
|
|
|
void MoveDown(MotionCmpt& motion);
|
|
|
|
void SpeedUp(MotionCmpt& motion, FightShipCmpt& ship);
|
|
|
|
void SpeedDown(MotionCmpt& motion, FightShipCmpt& ship);
|
|
|
|
void TurnLeft(FightShipCmpt& motion);
|
|
|
|
void TurnRight(FightShipCmpt& motion);
|