wavelength 1.0.0
Loading...
Searching...
No Matches
Constructo Class Reference

Arena of the Constructo levels, whose building parts collide with planes that move with the song. More...

#include <constructo.h>

Inheritance diagram for Constructo:
Collaboration diagram for Constructo:

Classes

class  MovingPSPlane
 A particle system that collides with a plane of a moving transformable, 0xc bytes. More...

Public Types

enum  Level {
  kLevelP1 = 1 , kLevelP2 = 2 , kLevelP3 = 3 , kLevelP4 = 4 ,
  kLevelBoss = 5
}
 The level of the arena, from its name. More...
Public Types inherited from GfxArena
enum  PanelFlag { kPanelLowEnergy = 0x1 , kPanelBeat = 0x2 , kPanelFrequency = 0x4 }
 The bits of mPanelFlags, in order of precedence from the last. More...
typedef GfxArena *(* Creator) (const char *pszName)
 A function that builds an arena of a name, or reports null when the name is not its own.

Public Member Functions

 Constructo (const char *pszName)
 Construct the arena of a name.
 ~Constructo () override
 Destroy the arena.
void SetSongTicks (float fSongTicks) override
 Fit the camera path to the song, and take the building parts out of the animation of their view to collide them with their planes.
void Poll (float fTick, float fTime) override
 Poll the arena and advance the building parts.
Public Member Functions inherited from GfxArena
 GfxArena (const char *pszName)
 Construct the arena of a name from the arena_paths entry of the gfx configuration.
virtual ~GfxArena ()
 Destroy the arena.
virtual void LoadConfig ()
 Read the configuration of the arena again, with its triggers from their file.
void LoadTriggers ()
 Start to stream the triggers of the arena, or mark them loaded when the arena has none.
void PollLoad (bool bHudLoaded)
 Gather the objects of the arena once its file is read, and load the streamed triggers once they are ready.
void SetCamPath (RndTransAnim *pPath)
 Set the camera path unless the arena found one.
void ResetPanels ()
 Return the panels to their resting look.
void SetEnergy (int nZone, float fEnergy)
 Show the energy of the play field on the panels, unless a won result is shown.
void ShowResult (bool bWon)
 Show the result of the song on the panels.
void HandleBeat (signed char nEvent)
 Run the effect of a beat event of the song.
const String & GetName () const
DataArray * GetConfig () const
void SetLoader (RndLoader *pLoader)
RndView * GetView () const
RndTransAnim * GetCamPath () const
float GetSongTicks () const
float GetCamPathLength () const
int GetUnlockIndex () const
RndEnviron * GetEnviron () const
float GetFreestyle () const
int GetTriggersLoaded () const
AsyncStream * GetTriggerStream () const

Static Public Member Functions

static GfxArena * Create (const char *pszName)
 Build the arena of a name that starts with Constructo.
Static Public Member Functions inherited from GfxArena
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.

Additional Inherited Members

Static Public Attributes inherited from GfxArena
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.
Protected Attributes inherited from GfxArena
DataArray * mConfig
float mFrameScale

Detailed Description

Arena of the Constructo levels, whose building parts collide with planes that move with the song.

The RTTI identifies the class. The object is 0xac bytes.

Member Enumeration Documentation

◆ Level

The level of the arena, from its name.

Enumerator
kLevelP1 

ConstructoP1.

kLevelP2 

ConstructoP2.

kLevelP3 

ConstructoP3.

kLevelP4 

ConstructoP4.

kLevelBoss 

Constructo_Boss, which has no moving planes.

Constructor & Destructor Documentation

◆ Constructo()

Constructo::Constructo ( const char * pszName)
explicit

Construct the arena of a name.

Parameters
pszNameThe arena.
Ghidra address:
NTSC-U/C: 0x001eda30
Ghidra address:
PAL: 0x001f67d0

◆ ~Constructo()

Constructo::~Constructo ( )
override

Destroy the arena.

Ghidra address:
NTSC-U/C: 0x001edb68
Ghidra address:
PAL: 0x001f6908

Member Function Documentation

◆ Create()

GfxArena * Constructo::Create ( const char * pszName)
static

Build the arena of a name that starts with Constructo.

Parameters
pszNameThe arena.
Returns
The arena, or null for another name.
Ghidra address:
NTSC-U/C: 0x001ee040
Ghidra address:
PAL: 0x001f6de0

◆ SetSongTicks()

void Constructo::SetSongTicks ( float fSongTicks)
overridevirtual

Fit the camera path to the song, and take the building parts out of the animation of their view to collide them with their planes.

Parameters
fSongTicksThe length of the song in ticks.
Ghidra address:
NTSC-U/C: 0x001edbd0
Ghidra address:
PAL: 0x001f6970

Reimplemented from GfxArena.

◆ Poll()

void Constructo::Poll ( float fTick,
float fTime )
overridevirtual

Poll the arena and advance the building parts.

Parameters
fTickThe tick of the song.
fTimeThe time of the display.
Ghidra address:
NTSC-U/C: 0x001edf10
Ghidra address:
PAL: 0x001f6cb0

Reimplemented from GfxArena.


The documentation for this class was generated from the following file: