The position in one of the anims of the avatar entry of the "db" section.
More...
#include <avatar.h>
|
| void | Set (const char *pszAnim, int nKey) |
| | Start an animation.
|
| float | Frame () const |
| | Report the frame at Avatar::sTime.
|
| bool | IsDone () const |
| | Report whether an animation that does not loop has passed its last frame.
|
| const char * | GetAnim () const |
| void | SetAnim (const char *pszAnim) |
| | Set only the animation, without a frame range.
|
| int | GetLoop () const |
The position in one of the anims of the avatar entry of the "db" section.
The class has no RTTI, and the name is inferred.
◆ Set()
| void Avatar::Anim::Set |
( |
const char * | pszAnim, |
|
|
int | nKey ) |
Start an animation.
The anims entry of the animation lists frame ranges by an integer key. The range of nKey, or the first range when the entry does not list nKey, gives the type, the first frame, and the length.
- Parameters
-
| pszAnim | The animation, a symbol, or null to set only mAnim. |
| nKey | The key of the frame range. |
- Ghidra address:
- NTSC-U/C: 0x00270be8
- Ghidra address:
- PAL: 0x0027a788
◆ Frame()
| float Avatar::Anim::Frame |
( |
| ) |
const |
Report the frame at Avatar::sTime.
A looping animation wraps into its range, and another one stops at either end.
- Returns
- The frame.
- Ghidra address:
- NTSC-U/C: 0x00270b00
- Ghidra address:
- PAL: 0x0027a6a0
◆ IsDone()
| bool Avatar::Anim::IsDone |
( |
| ) |
const |
Report whether an animation that does not loop has passed its last frame.
- Returns
- Whether the animation is done.
- Ghidra address:
- NTSC-U/C: 0x00270bb0
- Ghidra address:
- PAL: 0x0027a750
◆ GetAnim()
| const char * Avatar::Anim::GetAnim |
( |
| ) |
const |
|
inline |
- Returns
- The animation, a symbol, or null.
◆ SetAnim()
| void Avatar::Anim::SetAnim |
( |
const char * | pszAnim | ) |
|
|
inline |
Set only the animation, without a frame range.
- Parameters
-
| pszAnim | The animation, a symbol, or null. |
◆ GetLoop()
| int Avatar::Anim::GetLoop |
( |
| ) |
const |
|
inline |
- Returns
- Non-zero when the range has type 3 (the looping type).
The documentation for this class was generated from the following file: