|
wavelength 1.0.0
|
The arena scene shown behind the front end, and its arena unlock animations. More...
#include <metagamearena.h>
Public Member Functions | |
| MetagameArena () | |
| Build the arena with nothing loaded. | |
| ~MetagameArena () | |
| Delete the load of the arena scene. | |
| void | StartLoad () |
| Start loading the arena scene across frames. | |
| bool | IsLoaded () const |
| Report whether the arena scene and its triggers have loaded. | |
| void | ShowUnlocks () |
| Set the frame of each unlock animation to show the arenas the player has unlocked. | |
| void | Unload () |
| Stop the triggers and delete the arena scene. | |
| void | Poll (int nState, int nLoadStage, float flTime, float flTick) |
| Advance the arena scene and the unlock animations by one frame. | |
| void | Draw (int nState) |
| Draw the arena scene while the front end shows and the scene has loaded. | |
| void | SetRevealArena (int nArena) |
| Choose the arena the next reveal shows. | |
| void | StartReveal (float flTime) |
| Start the animation that reveals the chosen arena. | |
The arena scene shown behind the front end, and its arena unlock animations.
The class is not polymorphic and has no RTTI. The name is inferred from the Metagame/Arena/s.rnd file it loads, named after the arena_prefix entry of the metagame configuration. Metagame builds the one instance. The scene loads first, then the triggers of the trigger_file entry. An unlock reveal plays one ArenaUnlockAnim_0N.view and its particles.
| MetagameArena::MetagameArena | ( | ) |
Build the arena with nothing loaded.
| MetagameArena::~MetagameArena | ( | ) |
Delete the load of the arena scene.
| void MetagameArena::StartLoad | ( | ) |
Start loading the arena scene across frames.
| bool MetagameArena::IsLoaded | ( | ) | const |
Report whether the arena scene and its triggers have loaded.
| void MetagameArena::ShowUnlocks | ( | ) |
Set the frame of each unlock animation to show the arenas the player has unlocked.
The animation of the arena being revealed stays at its first frame.
| void MetagameArena::Unload | ( | ) |
Stop the triggers and delete the arena scene.
| void MetagameArena::Poll | ( | int | nState, |
| int | nLoadStage, | ||
| float | flTime, | ||
| float | flTick ) |
Advance the arena scene and the unlock animations by one frame.
| nState | The metagame state, one of Metagame::State. |
| nLoadStage | The metagame load stage, one of Metagame::LoadStage. |
| flTime | The front end clock. |
| flTick | The front end clock in ticks. |
| void MetagameArena::Draw | ( | int | nState | ) |
Draw the arena scene while the front end shows and the scene has loaded.
| nState | The metagame state, one of Metagame::State. |
| void MetagameArena::SetRevealArena | ( | int | nArena | ) |
Choose the arena the next reveal shows.
| nArena | The arena, counted from 1. |
| void MetagameArena::StartReveal | ( | float | flTime | ) |
Start the animation that reveals the chosen arena.
| flTime | The front end clock. |