57 void Start(
Ship *pOwner, std::list<Ship::BeamData> *pOwnerList,
float fStart,
float fEnd);
87 void SetEnd(
int nEnd,
const float *pPosition);
106 mNextFree = pNextFree;
126 mOwnerList = pOwnerList;
131 unsigned char mReserved04[0x0c];
133 std::unique_ptr<RndLine> mLine;
134 std::unique_ptr<RndMat> mMat;
138 std::list<Ship::BeamData> *mOwnerList;
141 unsigned char mReserved58[0x08];
143 unsigned char mReserved64[0x0c];
Look of a family of beams, read from the configuration entry of its name.
Definition beamparams.h:15
Beam a ship fires at a gem, a line that two waves ripple along.
Definition beam.h:20
void SetEnd(int nEnd, const float *pPosition)
Move one end of the beam.
RndLine * GetLine() const
Definition beam.h:90
bool Update(const Vector3 &direction, const Vector3 &side, const Color &color)
Ripple the line of the beam between its ends and colour it.
void Start(Ship *pOwner, std::list< Ship::BeamData > *pOwnerList, float fStart, float fEnd)
Fire the beam for a ship, with waves of random frequencies and periods.
void SetNextFree(Beam *pNextFree)
Definition beam.h:105
void Stop()
Stop the beam and hide it.
void SetOwnerList(std::list< Ship::BeamData > *pOwnerList)
Definition beam.h:125
void Configure(const BeamParams *pParams)
Take the look of a family of beams.
void SetOwner(Ship *pOwner)
Definition beam.h:115
std::list< Ship::BeamData > * GetOwnerList() const
Definition beam.h:120
RndMat * GetMat() const
Definition beam.h:95
Beam()
Construct an idle beam, creating its line and its material.
float GetStartTime() const
Definition beam.h:110
~Beam()
Destroy the line and the material of the beam.
Beam * GetNextFree() const
Definition beam.h:100
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
Ship of one player, which rides the tracks of the tunnel and fires beams at the gems.
Definition ship.h:41
Linear colour with four float components.
Definition color.h:12
Two-component vector, used for texture coordinates.
Definition vector2.h:12
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14