wavelength 1.0.0
Loading...
Searching...
No Matches
AnimateToAction Class Reference

The animate_to action, which moves an animatable to a frame along a curve. More...

#include <animatetoaction.h>

Inheritance diagram for AnimateToAction:
Collaboration diagram for AnimateToAction:

Public Member Functions

 AnimateToAction (DataArray *pAction)
 Read the action.
 ~AnimateToAction () override
 Delete the curve.
void Exec () override
 Fit the curve from the current frame and start the move.
bool Poll () override
 Move the animatable to the frame of the curve for the time on the clock.
Public Member Functions inherited from TriggerAction
virtual ~TriggerAction ()
 Release the action.
void Start ()
 Run the action now, or schedule it when it has a delay.
float GetDelay () const
void SetDelay (float fDelay)
 Set the time on the clock of the action before Exec() runs.
int GetClock () const
void SetClock (int nClock)
 Set the TriggerMgr::Clock the action runs on.

Additional Inherited Members

Static Public Member Functions inherited from TriggerAction
static TriggerAction * New (DataArray *pAction)
 Build the action a node describes.
Static Protected Member Functions inherited from TriggerAction
template<class T>
static T * FindObject (DataArray *pAction, const char *pszName)
 Find a renderer object of a class by name, warning when there is none.

Detailed Description

The animate_to action, which moves an animatable to a frame along a curve.

The RTTI records the class as deriving from TriggerAction. The object is 0x28 bytes. Node 1 names the animatable, node 2 is the frame to move to, node 3 the time the move takes, and node 4 the curve, 0 for a line, 1 for an InvExpInterpolator, and 2 for an ATanInterpolator. The optional node 5 is the length of a looping animation, and the move then takes the shorter way round.

Constructor & Destructor Documentation

◆ AnimateToAction()

AnimateToAction::AnimateToAction ( DataArray * pAction)
explicit

Read the action.

Parameters
pActionThe node.
Ghidra address:
NTSC-U/C: 0x00201bd8
Ghidra address:
PAL: 0x0020a978

◆ ~AnimateToAction()

AnimateToAction::~AnimateToAction ( )
override

Delete the curve.

Ghidra address:
NTSC-U/C: 0x00201de8
Ghidra address:
PAL: 0x0020ab88

Member Function Documentation

◆ Exec()

void AnimateToAction::Exec ( )
overridevirtual

Fit the curve from the current frame and start the move.

Ghidra address:
NTSC-U/C: 0x00202ba0
Ghidra address:
PAL: 0x0020b940

Implements TriggerAction.

◆ Poll()

bool AnimateToAction::Poll ( )
overridevirtual

Move the animatable to the frame of the curve for the time on the clock.

Returns
Whether the time of the move has passed.
Ghidra address:
NTSC-U/C: 0x00203350
Ghidra address:
PAL: 0x0020c108

Reimplemented from TriggerAction.


The documentation for this class was generated from the following file: