Files
PlanetFleet/cruiseMissile.h
devZoGok c53eb2a022 updated unit stats
configurable cruise missile stats
bugfix for incorrect projectile collision with the surface
2026-05-13 19:06:02 +03:00

25 lines
513 B
C++

#ifndef CRUISE_MISSILE_H
#define CRUISE_MISSILE_H
#include "projectile.h"
namespace battleship{
class CruiseMissile : public Projectile{
public:
CruiseMissile(Unit*, int, vb01::Vector3, vb01::Vector3, vb01::Quaternion);
~CruiseMissile();
void update();
private:
enum class FlightStage{ASCENT, CRUISE, DESCENT};
FlightStage flightStage;
vb01::Vector3 targetPoint;
float minHeight, minDist;
void initProperties();
void pitch(float, vb01::Vector3);
void cruise();
};
}
#endif