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.
space-war/include/game/action.hpp

17 lines
583 B
C++
Raw Permalink Normal View History

#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);
2022-02-17 18:48:32 +08:00
void TurnLeft(MotionCmpt&, FightShipCmpt&);
void TurnRight(MotionCmpt&, FightShipCmpt&);