mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
23 lines
450 B
C++
23 lines
450 B
C++
#ifndef CRUISE_MISSILE_H
|
|
#define CRUISE_MISSILE_H
|
|
|
|
#include "projectile.h"
|
|
|
|
namespace battleship{
|
|
class CruiseMissile : public Projectile{
|
|
public:
|
|
CruiseMissile(Unit*, vb01::Vector3, vb01::Vector3, vb01::Quaternion);
|
|
void update();
|
|
private:
|
|
enum class FlightStage{ASCENT, CRUISE, DESCENT};
|
|
FlightStage flightStage;
|
|
vb01::Vector3 targetPoint;
|
|
|
|
void pitch(float);
|
|
void cruise();
|
|
void checkSurfaceCollision();
|
|
};
|
|
}
|
|
|
|
#endif
|