The shell of a won song, a view that plays once at the result and then unlocks the path the win earned.
More...
#include <tnlwinshell.h>
|
| | TnlWinShell () |
| | Find the view of the shell, draw it with win_arms.view, and hide it.
|
| | ~TnlWinShell () |
| | Destroy the shell.
|
| void | LoadConfig (DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption) |
| | Load the duration and the length of the animation from the win_shell entry.
|
| void | Reset () |
| | Hide the shell and stop it.
|
| void | Start (int nPath) |
| | Play the shell from the song tick.
|
| void | Update () |
| | Move the view of the shell to the song tick and show it, or at the end of the duration unlock the path, play the unlock sound, hide the head-up display, and stop the shell.
|
|
| static constexpr float | kNoTick = -1e9f |
| | The value of mStartTick while the shell does not play.
|
| static constexpr int | kNoPath = -1 |
| | The value of mPath of a win that unlocks no path.
|
The shell of a won song, a view that plays once at the result and then unlocks the path the win earned.
The class is not polymorphic, and the name is inferred from the win_shell entry and the win_shell.view view. The object is 0x14 bytes.
◆ TnlWinShell()
| TnlWinShell::TnlWinShell |
( |
| ) |
|
Find the view of the shell, draw it with win_arms.view, and hide it.
- Ghidra address:
- NTSC-U/C: 0x001d6430
- Ghidra address:
- PAL: 0x001df1d0
◆ ~TnlWinShell()
| TnlWinShell::~TnlWinShell |
( |
| ) |
|
Destroy the shell.
- Ghidra address:
- NTSC-U/C: 0x001d6548
- Ghidra address:
- PAL: 0x001df2e8
◆ LoadConfig()
Load the duration and the length of the animation from the win_shell entry.
- Parameters
-
| pConfig | The configuration. |
| pDefaults | The defaults of the configuration. |
| pTunnel | The tunnel. The routine does not read it. |
| nOption | The fourth argument every loader of the tunnel receives. The routine does not read it. |
- Ghidra address:
- NTSC-U/C: 0x001d6570
- Ghidra address:
- PAL: 0x001df310
◆ Reset()
| void TnlWinShell::Reset |
( |
| ) |
|
Hide the shell and stop it.
- Ghidra address:
- NTSC-U/C: 0x001d6620
- Ghidra address:
- PAL: 0x001df3c0
◆ Start()
| void TnlWinShell::Start |
( |
int | nPath | ) |
|
Play the shell from the song tick.
- Parameters
-
| nPath | The path the win unlocks at the end of the shell, or kNoPath. |
- Ghidra address:
- NTSC-U/C: 0x001d6678
- Ghidra address:
- PAL: 0x001df418
◆ Update()
| void TnlWinShell::Update |
( |
| ) |
|
Move the view of the shell to the song tick and show it, or at the end of the duration unlock the path, play the unlock sound, hide the head-up display, and stop the shell.
- Ghidra address:
- NTSC-U/C: 0x001d6690
- Ghidra address:
- PAL: 0x001df430
◆ kNoTick
| float TnlWinShell::kNoTick = -1e9f |
|
staticconstexpr |
The value of mStartTick while the shell does not play.
◆ kNoPath
| int TnlWinShell::kNoPath = -1 |
|
staticconstexpr |
The value of mPath of a win that unlocks no path.
The documentation for this class was generated from the following file: