Arena the play field flies through, with its camera path, its triggers, and the movies and the frequency texture its panels show.
More...
#include <gfxarena.h>
|
| struct | MovieMat |
| | A material stage that shows the texture of a movie, 0xc bytes. More...
|
|
| static GfxArena * | Create (const char *pszName) |
| | Create the arena of a name, through the first registered creator that accepts the name or as a plain arena.
|
|
| static constexpr int | kNumMovies = 4 |
| | The number of movies of an arena, movie1.mov to movie4.mov.
|
| static constexpr int | kBeatMovie = 3 |
| | The movie a beat plays.
|
| static Creator | sCreators [] |
| | The creators of derived arenas, up to a null entry.
|
| static float | sLowEnergy |
| | The energy at or below which the panels show snow, the second number of juice_blink_range.
|
Arena the play field flies through, with its camera path, its triggers, and the movies and the frequency texture its panels show.
The RTTI identifies the class. The object is 0xa0 bytes with the vptr at +0x9c. A registered creator can build a class derived from it for an arena of a matching name.
◆ Creator
| typedef GfxArena *(* GfxArena::Creator) (const char *pszName) |
A function that builds an arena of a name, or reports null when the name is not its own.
◆ PanelFlag
The bits of mPanelFlags, in order of precedence from the last.
| Enumerator |
|---|
| kPanelLowEnergy | The energy is low, and the panels show snow.ipu.
|
| kPanelBeat | A beat runs, and the panels show the fourth movie.
|
| kPanelFrequency | The winner is drawn, and the panels show fbase_freq.tex.
|
◆ GfxArena()
| GfxArena::GfxArena |
( |
const char * | pszName | ) |
|
|
explicit |
Construct the arena of a name from the arena_paths entry of the gfx configuration.
An arena with no file gets a placeholder view of its own.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x001ea4b0
- Ghidra address:
- PAL: 0x001f3250
◆ ~GfxArena()
| virtual GfxArena::~GfxArena |
( |
| ) |
|
|
virtual |
Destroy the arena.
- Ghidra address:
- NTSC-U/C: 0x001ebe30
- Ghidra address:
- PAL: 0x001f4bd0
◆ Create()
| GfxArena * GfxArena::Create |
( |
const char * | pszName | ) |
|
|
static |
Create the arena of a name, through the first registered creator that accepts the name or as a plain arena.
- Parameters
-
- Returns
- The arena.
- Ghidra address:
- NTSC-U/C: 0x001ea438
- Ghidra address:
- PAL: 0x001f31d8
◆ LoadConfig()
| virtual void GfxArena::LoadConfig |
( |
| ) |
|
|
virtual |
Read the configuration of the arena again, with its triggers from their file.
- Ghidra address:
- NTSC-U/C: 0x001ebf90
- Ghidra address:
- PAL: 0x001f4d30
◆ SetSongTicks()
| virtual void GfxArena::SetSongTicks |
( |
float | fSongTicks | ) |
|
|
virtual |
Fit the camera path to the length of the song.
- Parameters
-
| fSongTicks | The length of the song in ticks, or 1 or less for no song. |
- Ghidra address:
- NTSC-U/C: 0x001ec710
- Ghidra address:
- PAL: 0x001f54b0
Reimplemented in Constructo.
◆ Poll()
| virtual void GfxArena::Poll |
( |
float | fTick, |
|
|
float | fTime ) |
|
virtual |
Move the camera along its path, run the triggers, and animate the panels.
- Parameters
-
| fTick | The tick of the song. |
| fTime | The time of the display. |
- Ghidra address:
- NTSC-U/C: 0x001eca40
- Ghidra address:
- PAL: 0x001f57e0
Reimplemented in Constructo.
◆ LoadTriggers()
| void GfxArena::LoadTriggers |
( |
| ) |
|
Start to stream the triggers of the arena, or mark them loaded when the arena has none.
- Ghidra address:
- NTSC-U/C: 0x001ec058
- Ghidra address:
- PAL: 0x001f4df8
◆ PollLoad()
| void GfxArena::PollLoad |
( |
bool | bHudLoaded | ) |
|
Gather the objects of the arena once its file is read, and load the streamed triggers once they are ready.
- Parameters
-
| bHudLoaded | Whether the head-up display has started to load. |
- Ghidra address:
- NTSC-U/C: 0x001ec0d0
- Ghidra address:
- PAL: 0x001f4e70
◆ SetCamPath()
Set the camera path unless the arena found one.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x001ec6f8
- Ghidra address:
- PAL: 0x001f5498
◆ ResetPanels()
| void GfxArena::ResetPanels |
( |
| ) |
|
Return the panels to their resting look.
- Ghidra address:
- NTSC-U/C: 0x001ec910
- Ghidra address:
- PAL: 0x001f56b0
◆ SetEnergy()
| void GfxArena::SetEnergy |
( |
int | nZone, |
|
|
float | fEnergy ) |
Show the energy of the play field on the panels, unless a won result is shown.
- Parameters
-
| nZone | The zone of the energy. The arena does not read it. |
| fEnergy | The energy, from 0 to 1. |
- Ghidra address:
- NTSC-U/C: 0x001ec930
- Ghidra address:
- PAL: 0x001f56d0
◆ ShowResult()
| void GfxArena::ShowResult |
( |
bool | bWon | ) |
|
Show the result of the song on the panels.
- Parameters
-
| bWon | Whether the song was won. |
- Ghidra address:
- NTSC-U/C: 0x001ec980
- Ghidra address:
- PAL: 0x001f5720
◆ HandleBeat()
| void GfxArena::HandleBeat |
( |
signed char | nEvent | ) |
|
Run the effect of a beat event of the song.
- Parameters
-
| nEvent | The event, A to start a beat or B to end it. |
- Ghidra address:
- NTSC-U/C: 0x001ec9b0
- Ghidra address:
- PAL: 0x001f5750
◆ GetName()
| const String & GfxArena::GetName |
( |
| ) |
const |
|
inline |
- Returns
- The name of the arena.
◆ GetConfig()
- Returns
- The arena_paths entry of the arena.
◆ SetLoader()
| void GfxArena::SetLoader |
( |
RndLoader * | pLoader | ) |
|
|
inline |
- Parameters
-
| pLoader | The loader of the file of the arena. |
◆ GetView()
| RndView * GfxArena::GetView |
( |
| ) |
const |
|
inline |
- Returns
- The top view of the arena, or null.
◆ GetCamPath()
- Returns
- The path of the camera, or null.
◆ GetSongTicks()
| float GfxArena::GetSongTicks |
( |
| ) |
const |
|
inline |
◆ GetCamPathLength()
| float GfxArena::GetCamPathLength |
( |
| ) |
const |
|
inline |
- Returns
- The length of the camera path the data expects.
◆ GetUnlockIndex()
| int GfxArena::GetUnlockIndex |
( |
| ) |
const |
|
inline |
- Returns
- The index of the arena among the unlocked arenas.
◆ GetEnviron()
- Returns
- The first environment of the file of the arena, or null.
◆ GetFreestyle()
| float GfxArena::GetFreestyle |
( |
| ) |
const |
|
inline |
- Returns
- The value of freestyle_constraints at the frame of the camera.
◆ GetTriggersLoaded()
| int GfxArena::GetTriggersLoaded |
( |
| ) |
const |
|
inline |
- Returns
- Whether the triggers are loaded or the arena has none.
◆ GetTriggerStream()
- Returns
- The stream of the triggers, or null.
◆ kNumMovies
| int GfxArena::kNumMovies = 4 |
|
staticconstexpr |
The number of movies of an arena, movie1.mov to movie4.mov.
◆ kBeatMovie
| int GfxArena::kBeatMovie = 3 |
|
staticconstexpr |
◆ sCreators
The creators of derived arenas, up to a null entry.
- Ghidra address:
- NTSC-U/C: 0x003afac8
- Ghidra address:
- PAL: 0x0042e960
◆ sLowEnergy
| float GfxArena::sLowEnergy |
|
static |
The energy at or below which the panels show snow, the second number of juice_blink_range.
- Ghidra address:
- NTSC-U/C: 0x003afad0
- Ghidra address:
- PAL: 0x0042e968
◆ mConfig
The arena_paths entry of the arena. Borrowed.
◆ mFrameScale
| float GfxArena::mFrameScale |
|
protected |
The frames of the camera path per tick.
The documentation for this class was generated from the following file: