A run of tracks over a span of ticks, which the tunnel reports when the region changes.
More...
#include <tnltrackrange.h>
|
| | TnlTrackRange () |
| | Construct an empty range.
|
| | ~TnlTrackRange () |
| | Destroy the range.
|
| void | Clear () |
| | Empty the range.
|
| void | Expand (char nFirstTrack, char nEndTrack, float flStartTick, float flEndTick) |
| | Grow the range to cover a run of tracks over a span of ticks.
|
| bool | Overlaps (char nTrack, float flStartTick, float flEndTick) const |
| | Report whether a span of ticks on a track overlaps the range.
|
| bool | Contains (char nTrack, float flTick) const |
| | Report whether a tick on a track lies in the range.
|
| char | GetFirstTrack () const |
| char | GetEndTrack () const |
| float | GetStartTick () const |
| float | GetEndTick () const |
A run of tracks over a span of ticks, which the tunnel reports when the region changes.
The class is not polymorphic, and the name is inferred. The object is 0xc bytes.
◆ TnlTrackRange()
| TnlTrackRange::TnlTrackRange |
( |
| ) |
|
Construct an empty range.
- Ghidra address:
- NTSC-U/C: 0x001e4480
- Ghidra address:
- PAL: 0x001ed220
◆ ~TnlTrackRange()
| TnlTrackRange::~TnlTrackRange |
( |
| ) |
|
Destroy the range.
- Ghidra address:
- NTSC-U/C: 0x001e44a8
- Ghidra address:
- PAL: 0x001ed248
◆ Clear()
| void TnlTrackRange::Clear |
( |
| ) |
|
Empty the range.
- Ghidra address:
- NTSC-U/C: 0x001e44d0
- Ghidra address:
- PAL: 0x001ed270
◆ Expand()
| void TnlTrackRange::Expand |
( |
char | nFirstTrack, |
|
|
char | nEndTrack, |
|
|
float | flStartTick, |
|
|
float | flEndTick ) |
Grow the range to cover a run of tracks over a span of ticks.
An empty range becomes the run and the span.
- Parameters
-
| nFirstTrack | The first track of the run. |
| nEndTrack | The track after the last of the run. |
| flStartTick | The start of the span. |
| flEndTick | The end of the span. |
- Ghidra address:
- NTSC-U/C: 0x001e45c0
- Ghidra address:
- PAL: 0x001ed360
◆ Overlaps()
| bool TnlTrackRange::Overlaps |
( |
char | nTrack, |
|
|
float | flStartTick, |
|
|
float | flEndTick ) const |
Report whether a span of ticks on a track overlaps the range.
- Parameters
-
| nTrack | The track. |
| flStartTick | The start of the span. |
| flEndTick | The end of the span. |
- Returns
- Whether the track is in the range and the spans overlap.
- Ghidra address:
- NTSC-U/C: 0x001e44f0
- Ghidra address:
- PAL: 0x001ed290
◆ Contains()
| bool TnlTrackRange::Contains |
( |
char | nTrack, |
|
|
float | flTick ) const |
Report whether a tick on a track lies in the range.
- Parameters
-
| nTrack | The track. |
| flTick | The tick. |
- Returns
- Whether the track and the tick are in the range.
- Ghidra address:
- NTSC-U/C: 0x001e4568
- Ghidra address:
- PAL: 0x001ed308
◆ GetFirstTrack()
| char TnlTrackRange::GetFirstTrack |
( |
| ) |
const |
|
inline |
- Returns
- The first track of the range, or -1.
◆ GetEndTrack()
| char TnlTrackRange::GetEndTrack |
( |
| ) |
const |
|
inline |
- Returns
- The track after the last of the range, or -1.
◆ GetStartTick()
| float TnlTrackRange::GetStartTick |
( |
| ) |
const |
|
inline |
- Returns
- The start of the range.
◆ GetEndTick()
| float TnlTrackRange::GetEndTick |
( |
| ) |
const |
|
inline |
- Returns
- The end of the range.
The documentation for this class was generated from the following file: