wavelength 1.0.0
Loading...
Searching...
No Matches
shipflyin.h
Go to the documentation of this file.
1#pragma once
2
3#include "gfx/ship.h"
4#include "math/interpolator.h"
5#include "rnd/rndtransanim.h"
7
14class ShipFlyIn {
15public:
23 explicit ShipFlyIn(Ship *pShip);
24
31 ~ShipFlyIn() = default;
32
43 bool Poll(float fTick, float fTime, float (*pXfm)[kTransformRowFloatCount]);
44
53 bool Start(bool bShow);
54
55private:
56 Ship *mShip;
57 int mStarted;
58 LinearInterpolator mPath;
59 RndTransAnim *mAnim;
60};
Straight-line interpolator.
Definition interpolator.h:99
Animation of a transformable's local transform by rotation, translation, and scale keys.
Definition rndtransanim.h:20
~ShipFlyIn()=default
Destroy the flight.
bool Poll(float fTick, float fTime, float(*pXfm)[kTransformRowFloatCount])
Apply the flight to the transform of the ship.
bool Start(bool bShow)
Start the flight the first time the ship is shown.
ShipFlyIn(Ship *pShip)
Construct a flight that has not started and hide the ship.
Ship of one player, which rides the tracks of the tunnel and fires beams at the gems.
Definition ship.h:41
constexpr int kTransformRowFloatCount
Floats in a row of a transform held as a bare array, x, y, z, and padding.
Definition transform.h:29