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

Arena screens for a game of several players, cycling through the leaders' materials. More...

#include <multiscreenanim.h>

Inheritance diagram for MultiScreenAnim:
Collaboration diagram for MultiScreenAnim:

Public Member Functions

 MultiScreenAnim (const std::vector< TnlArena::ScreenMesh > *pScreens, const std::vector< TnlArena::PlayerMaterial * > *pPlayerMaterials)
 Record the screens and the players' materials.
virtual ~MultiScreenAnim ()
virtual void SetFrame (float flFrame)
 Show the material of the current step on every screen.
virtual void UpdateLeaders ()
 Rebuild mLeaderMats from the players' scores.
Public Member Functions inherited from ScreenAnim
virtual ~ScreenAnim ()
virtual void SetLevel (int nLevel)
 Select how the screens show the session's state.

Detailed Description

Arena screens for a game of several players, cycling through the leaders' materials.

Its RTTI descriptor is at 0x00901bb0. It derives publicly from ScreenAnim at offset 0. Its type function is at 0x0040c618 and its table at 0x008172d8. The object is 0x20 bytes. It inherits SetLevel().

The screens cycle in steps of mPeriod ticks, eight steps to a cycle. Each even step shows the material of one leader in turn, and every other step shows the screens' own materials. A single leader appears in the first two even steps only.

Constructor & Destructor Documentation

◆ MultiScreenAnim()

MultiScreenAnim::MultiScreenAnim ( const std::vector< TnlArena::ScreenMesh > * pScreens,
const std::vector< TnlArena::PlayerMaterial * > * pPlayerMaterials )

Record the screens and the players' materials.

Reserves room for four leader materials, starts with a period of 480 ticks, and runs script template 1019 with 1.

Parameters
pScreensTnlArena::mScreenMeshes.
pPlayerMaterialsTnlArena::mPlayerMaterials.
Ghidra address:
NTSC-U/C: 0x00406200
Ghidra address:
PAL: 0x0043fb20

◆ ~MultiScreenAnim()

virtual MultiScreenAnim::~MultiScreenAnim ( )
virtual
Ghidra address:
NTSC-U/C: 0x0040c568
Ghidra address:
PAL: 0x00445f90

Member Function Documentation

◆ SetFrame()

virtual void MultiScreenAnim::SetFrame ( float flFrame)
virtual

Show the material of the current step on every screen.

Does nothing without a leader or within the step SetFrame() last applied.

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

Reimplemented from ScreenAnim.

◆ UpdateLeaders()

virtual void MultiScreenAnim::UpdateLeaders ( )
virtual

Rebuild mLeaderMats from the players' scores.

A leader is every player whose Player::GetScore() is less than 4 below the highest score, with the highest starting at 0.

Ghidra address:
NTSC-U/C: 0x00406428
Ghidra address:
PAL: 0x0043fd48

Reimplemented from ScreenAnim.


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