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++

#pragma once
#include "tinyengine/tinyengine.hpp"
#include "game/component.hpp"
#include "game/entity.hpp"
void Shoot(SpaceshipWeaponCmpt& weapon, const Point& dir);
void Shoot(SpaceshipWeaponCmpt& weapon, const Point& dir, Entity* target);
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(MotionCmpt&, FightShipCmpt&);
void TurnRight(MotionCmpt&, FightShipCmpt&);