Beam a ship fires at a gem, a line that two waves ripple along.
More...
#include <beam.h>
Beam a ship fires at a gem, a line that two waves ripple along.
The RTTI identifies the class through the beam pools. The object is 0x70 bytes.
◆ Beam()
Construct an idle beam, creating its line and its material.
- Ghidra address:
- NTSC-U/C: 0x001ed2d0
- Ghidra address:
- PAL: 0x001f6070
◆ ~Beam()
Destroy the line and the material of the beam.
- Ghidra address:
- NTSC-U/C: 0x001ed458
- Ghidra address:
- PAL: 0x001f61f8
◆ Configure()
| void Beam::Configure |
( |
const BeamParams * | pParams | ) |
|
Take the look of a family of beams.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x001ed4e0
- Ghidra address:
- PAL: 0x001f6280
◆ Start()
| void Beam::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.
- Parameters
-
| pOwner | The ship. |
| pOwnerList | The list of the ship that records the beam. |
| fStart | The time the beam starts. |
| fEnd | The time the beam ends. |
- Ghidra address:
- NTSC-U/C: 0x001ed510
- Ghidra address:
- PAL: 0x001f62b0
◆ Stop()
Stop the beam and hide it.
- Ghidra address:
- NTSC-U/C: 0x001ed5c0
- Ghidra address:
- PAL: 0x001f6360
◆ Update()
Ripple the line of the beam between its ends and colour it.
- Parameters
-
| direction | The direction the waves lift the line in. |
| side | The direction the second wave moves the line in. |
| color | The colour an end of no alpha takes. |
- Returns
- Whether the beam has ended. An ended beam is not changed.
- Ghidra address:
- NTSC-U/C: 0x001ed608
- Ghidra address:
- PAL: 0x001f63a8
◆ SetEnd()
| void Beam::SetEnd |
( |
int | nEnd, |
|
|
const float * | pPosition ) |
Move one end of the beam.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x001ed9c0
- Ghidra address:
- PAL: 0x001f6760
◆ GetLine()
- Returns
- The line of the beam.
◆ GetMat()
| RndMat * Beam::GetMat |
( |
| ) |
const |
|
inline |
- Returns
- The material of the line.
◆ GetNextFree()
| Beam * Beam::GetNextFree |
( |
| ) |
const |
|
inline |
- Returns
- The next beam of the free list.
◆ SetNextFree()
| void Beam::SetNextFree |
( |
Beam * | pNextFree | ) |
|
|
inline |
- Parameters
-
| pNextFree | The next beam of the free list. |
◆ GetStartTime()
| float Beam::GetStartTime |
( |
| ) |
const |
|
inline |
- Returns
- The time the beam started.
◆ SetOwner()
| void Beam::SetOwner |
( |
Ship * | pOwner | ) |
|
|
inline |
- Parameters
-
| pOwner | The ship that fired the beam. |
◆ GetOwnerList()
- Returns
- The list of the ship that records the beam.
◆ SetOwnerList()
- Parameters
-
| pOwnerList | The list of the ship that records the beam. |
The documentation for this class was generated from the following file: