Value that moves toward a target along an interpolator, and poses an animation on the value.
More...
#include <rampanimator.h>
Value that moves toward a target along an interpolator, and poses an animation on the value.
The class is not polymorphic and emits no RTTI. The object is 0x14 bytes. The title is inferred from the role. The head-up display panels embed one as their first member to slide in and out.
◆ RampAnimator()
Construct an animator resting at a value.
- Parameters
-
| fValue | The value, and the first target. |
| pAnim | The animation posed on the value, or null. |
| pInterp | The curve the value follows, or null for a straight line. The animator owns the curve. |
| fSpeed | The change per unit of time, or 0 for a move that takes one unit of time. |
- Ghidra address:
- NTSC-U/C: 0x001e41c8
- Ghidra address:
- PAL: 0x001ecf68
◆ ~RampAnimator()
| RampAnimator::~RampAnimator |
( |
| ) |
|
Destroy the animator and its curve.
- Ghidra address:
- NTSC-U/C: 0x001e4270
- Ghidra address:
- PAL: 0x001ed010
◆ SetAnim()
Pose an animation on the value.
- Parameters
-
| pAnim | The animation, or null. |
- Ghidra address:
- NTSC-U/C: 0x001e42d0
- Ghidra address:
- PAL: 0x001ed070
◆ SetSpeed()
| void RampAnimator::SetSpeed |
( |
float | fSpeed | ) |
|
Set the speed of a move.
- Parameters
-
| fSpeed | The change per unit of time, or 0 for a move that takes one unit of time. |
- Ghidra address:
- NTSC-U/C: 0x001e4300
- Ghidra address:
- PAL: 0x001ed0a0
◆ SetTarget()
| void RampAnimator::SetTarget |
( |
float | fTarget | ) |
|
Start moving from the current value toward a target.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x001e4330
- Ghidra address:
- PAL: 0x001ed0d0
◆ Jump()
| void RampAnimator::Jump |
( |
float | fValue, |
|
|
float | fTarget ) |
Move to a value at once and start moving from it toward a target.
- Parameters
-
| fValue | The value. |
| fTarget | The target. |
- Ghidra address:
- NTSC-U/C: 0x001e43c0
- Ghidra address:
- PAL: 0x001ed160
◆ Update()
| bool RampAnimator::Update |
( |
float | fDelta, |
|
|
bool | bForce ) |
Advance the move and pose the animation on the new value.
- Parameters
-
| fDelta | The time since the last update. Its magnitude is used. |
| bForce | Whether to pose the animation when the value did not change. |
- Returns
- Whether the value changed.
- Ghidra address:
- NTSC-U/C: 0x001e43e0
- Ghidra address:
- PAL: 0x001ed180
◆ GetValue()
| float RampAnimator::GetValue |
( |
| ) |
const |
|
inline |
- Returns
- The current value.
◆ GetInterp()
- Returns
- The curve the value follows.
◆ GetAnim()
- Returns
- The animation posed on the value, or null.
The documentation for this class was generated from the following file: