89 Ship(
const char *pszColor,
int nPlayer);
136 void SetEnergy(
float fEnergy,
int nZone,
float fZoneFraction);
147 void Fire(
int nSlot,
signed char nTrack,
bool bHit);
158 void SetTrack(
int nTrack,
int nTrackType,
int nInstrument);
208 void Poll(
float fTicks,
float fTimeDelta);
276 return sBeamView.get();
286 return mScratchRibbon;
305 mArrowAspect = fAspect;
329 static Color sTrackLabelPitchColor;
333 static std::vector<FloatKey> sIntroTrodeSizeMult;
335 static std::vector<FloatKey> sFireTrodeSizeMult;
337 static float sViewDistance;
339 static float sFireOffset;
341 static float sFireScale;
344 static float sFireTrodeEnd;
350 static float sBankSpring;
352 static float sBankDamper;
354 static float sBankMagnitude;
356 static float sBankForce;
366 static float sSputterForce;
368 static float sBumpHeightAccel;
370 static float sBumpAttackTime;
372 static float sBumpShipMoveSlowdown;
375 static float sCrippledCamJiggleProbability;
377 static float sCrippledCamJiggle;
379 static float sIntroEndTick;
381 static float sIntroBlendEndTick;
384 static float sIntroTrodeEnd;
386 static std::unique_ptr<BeamPool<false>> sMissBeams;
388 static std::unique_ptr<BeamPool<false>> sHitBeams;
390 static std::unique_ptr<BeamPool<false>> sHit2Beams;
393 static std::unique_ptr<RndView> sBeamView;
441 void AddBeam(std::list<BeamData> *pList,
469 void UpdateBeams(std::list<BeamData> *pList,
483 void PollBump(
float fTimeDelta);
493 void PollCrippler(
float fTimeDelta,
bool bCrippled);
520 std::unique_ptr<RndView> mPsAnim;
521 std::unique_ptr<RndView> mBackPsAnim;
546 std::list<BeamData> mMissBeams;
547 std::list<BeamData> mHitBeams;
548 std::list<BeamData> mHit2Beams;
555 float mOverrideBlend;
561 unsigned char mFlags;
562 signed char mAttackTrack;
576 std::unique_ptr<RndAnimatable::SecondOrder> mBank;
577 std::unique_ptr<ShipFlyIn> mFlyIn;
Pool of the beams of one family, which share a look and draw under one parent.
Definition beampool.h:17
Beam a ship fires at a gem, a line that two waves ripple along.
Definition beam.h:20
Reference-counted array of script data nodes.
Definition dataarray.h:20
Particle system that hangs from a transform and is drawn as a reflection of it.
Definition particlearm.h:12
The camera of the tunnel.
Definition playercamfx.h:25
Mix-in for an object driven by a frame.
Definition rndanimatable.h:16
Motion trail that draws a mesh or a text again at the transforms it recently occupied.
Definition rndblur.h:21
Lighting and fog environment, made current for the drawables after it when it is drawn.
Definition rndenviron.h:18
Line through points, drawn as a ribbon of constant screen width that faces the camera.
Definition rndline.h:26
Surface description: blending, lighting colours, culling, and a list of texture stages.
Definition rndmat.h:20
Triangle mesh with a material.
Definition rndmesh.h:31
Emitter that spawns, moves, and fades a population of particles.
Definition rndparticlesys.h:69
Text drawn with a bitmap font as a mesh of one quad per character.
Definition rndtext.h:27
Animation of a transformable's local transform by rotation, translation, and scale keys.
Definition rndtransanim.h:20
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
Flight of the ship of the tutorial onto the tracks, ship tutorial fly-in.tnm.
Definition shipflyin.h:14
static RndTransAnim * GetWinFlyOff()
Definition ship.h:270
RndLine * GetScratchRibbon() const
Definition ship.h:285
static RndView * GetBeamView()
Definition ship.h:275
void SetShown(bool bShown)
Show or hide the ship.
void SetMultiplier(int nMultiplier)
Give the ship its leader material while the streak multiplier is above 1.
void ScaleArms(float fScale)
Scale the arms and the trodes.
~Ship()
Destroy the ship, the views it created, and every object the ships share.
void Fire(int nSlot, signed char nTrack, bool bHit)
Fire the ship at a gem.
static void DrawShared()
Draw the environment every ship shares.
float GetBumpStart() const
Definition ship.h:295
void Poll(float fTicks, float fTimeDelta)
Place the ship on the tracks and advance its effects.
static void LoadConfig(DataArray *pConfig, DataArray *pDefaults, bool bReload)
Read the configuration every ship shares, and pass it on to the beam pools that exist.
ArmColor
The colours of the particles of an arm, indexing mArmColors.
Definition ship.h:53
@ kArmColorStartHigh
Definition ship.h:55
@ kArmColorEndHigh
Definition ship.h:57
@ kArmColorEndLow
Definition ship.h:56
@ kNumArmColors
Definition ship.h:58
@ kArmColorStartLow
Definition ship.h:54
void UpdateTransform()
Place the ship for the intro and the outro of the play field.
RndView * GetView() const
Definition ship.h:280
static constexpr int kNumMultiOffsets
The two configured offsets of a ship of a game of several players.
Definition ship.h:47
static constexpr int kNumBeamEnds
The two ends of a beam, 0 at the ship and 1 at the gem.
Definition ship.h:50
void DrawEffects()
Draw the trodes, the arms, and the attack of a bumper.
static constexpr int kNumArms
The number of arms, one for each gem button.
Definition ship.h:44
void SetEnergy(float fEnergy, int nZone, float fZoneFraction)
Colour the arms for the zone of the energy, or make them sputter when it runs out.
void DrawTrack()
Draw the ship on its track and record where it lies on the screen.
unsigned char GetFlags() const
Definition ship.h:290
void SetArrowAspect(float fAspect)
Set the slope of the edge arrow.
Definition ship.h:304
void DrawArrow()
Draw the arrow at the edge of the screen that points at a ship off the screen.
Ship(const char *pszColor, int nPlayer)
Build the ship of a player from the scene objects of its colour.
void SetOverride(const float(*pXfm)[kTransformRowFloatCount], float fBlend)
Blend the ship towards a fixed transform, or stop blending.
Flag
The bits of mFlags.
Definition ship.h:62
@ kFlagAttacking
Definition ship.h:63
@ kFlagBumped
Definition ship.h:64
@ kFlagBumpReverse
Definition ship.h:65
void StartBump(bool bVictim, int nTrack)
Start the move of the ship of a bump.
void ScaleArm(int nArm, float fScale)
Scale one arm and its trode.
void SetHidden(bool bHidden)
Hide the ship regardless of SetShown(), or stop hiding it, and end its beams.
void SetSpread(float fSpread)
Set how far apart the ships of a shared screen fly.
Definition ship.h:313
void Reset()
Return the ship to its state at the start of a song.
void SetTrack(int nTrack, int nTrackType, int nInstrument)
Move the ship to a track, which ends its beams.
Linear colour with four float components.
Definition color.h:12
One beam a ship fired.
Definition ship.h:73
Beam * mBeam
Definition ship.h:74
signed char mSlot
Definition ship.h:75
signed char mTrack
Definition ship.h:76
Two-component vector, used for texture coordinates.
Definition vector2.h:12
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14