|
resonance 1.0.1
|
Arena screens for a game of several players, cycling through the leaders' materials. More...
#include <multiscreenanim.h>


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. | |
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.
| 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.
| pScreens | TnlArena::mScreenMeshes. |
| pPlayerMaterials | TnlArena::mPlayerMaterials. |
|
virtual |
|
virtual |
Show the material of the current step on every screen.
Does nothing without a leader or within the step SetFrame() last applied.
| flFrame | The song position, in MIDI ticks. |
Reimplemented from ScreenAnim.
|
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.
Reimplemented from ScreenAnim.