resonance 1.0.1
Loading...
Searching...
No Matches
SoloScreenAnim Class Reference

Arena screens for a solo game, driven by the player's juice. More...

#include <soloscreenanim.h>

Inheritance diagram for SoloScreenAnim:
Collaboration diagram for SoloScreenAnim:

Public Member Functions

 SoloScreenAnim (const std::vector< TnlArena::ScreenMesh > *pScreens, Rnd::Mat *pPlayerMat)
 Record the screens and the player's material, and resolve noise.mat.
virtual ~SoloScreenAnim ()
virtual void SetFrame (float flFrame)
 Alternate the materials at level 2.
virtual void SetLevel (int nLevel)
 Clamp the level to 0 through 2 and apply a changed one.
Public Member Functions inherited from ScreenAnim
virtual ~ScreenAnim ()
virtual void UpdateLeaders ()
 Recompute the players the screens show after a score change.

Detailed Description

Arena screens for a solo game, driven by the player's juice.

Its RTTI descriptor is at 0x008ef510. It derives publicly from ScreenAnim at offset 0. Its type function is at 0x0040c6c0 and its table at 0x008172a8. The object is 0x1c bytes. It inherits UpdateLeaders().

Level 0 shows noise.mat on every screen, level 1 the screens' own materials, and level 2 alternates the player's material with the screens' own materials every mPeriod ticks.

Constructor & Destructor Documentation

◆ SoloScreenAnim()

SoloScreenAnim::SoloScreenAnim ( const std::vector< TnlArena::ScreenMesh > * pScreens,
Rnd::Mat * pPlayerMat )

Record the screens and the player's material, and resolve noise.mat.

Starts at level 1 with a period of 960 ticks.

Parameters
pScreensTnlArena::mScreenMeshes.
pPlayerMatThe material of the one player.
Ghidra address:
NTSC-U/C: 0x004066d0
Ghidra address:
PAL: 0x0043fff0

◆ ~SoloScreenAnim()

virtual SoloScreenAnim::~SoloScreenAnim ( )
virtual
Ghidra address:
NTSC-U/C: 0x0040c690
Ghidra address:
PAL: 0x004460b8

Member Function Documentation

◆ SetFrame()

virtual void SoloScreenAnim::SetFrame ( float flFrame)
virtual

Alternate the materials at level 2.

At the start of each period the screens take the player's material in an even period and their own materials in an odd one. Other levels do nothing.

Parameters
flFrameThe song position, in MIDI ticks.
Ghidra address:
NTSC-U/C: 0x0040c7f8
Ghidra address:
PAL: 0x00446220

Reimplemented from ScreenAnim.

◆ SetLevel()

virtual void SoloScreenAnim::SetLevel ( int nLevel)
virtual

Clamp the level to 0 through 2 and apply a changed one.

A change puts noise.mat, the screens' own materials, or the player's material on every screen, and then runs script template 1019 with the new level.

Parameters
nLevelThe level.
Ghidra address:
NTSC-U/C: 0x0040c738
Ghidra address:
PAL: 0x00446160

Reimplemented from ScreenAnim.


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