resonance 1.0.1
Loading...
Searching...
No Matches
Rnd::Animatable::ZeroOrder Class Reference

Filter stage that limits how far the value may move in one frame. More...

#include <animatable.h>

Inheritance diagram for Rnd::Animatable::ZeroOrder:
Collaboration diagram for Rnd::Animatable::ZeroOrder:

Public Member Functions

 ZeroOrder ()
 Construct a stage with indeterminate parameters.
 ZeroOrder (float flLevel, float flMaxDelta)
 Construct a stage with both parameters set.
virtual float Apply (float flValue)
 Advance mLevel towards the value by at most mMaxDelta.
virtual float Unapply (float flValue)
 Report the mLevel that preceded an Apply() of the value.
virtual void Print (Dbg &sink) const
 Write "(level:%.2f maxDelta:%.2f)" to sink.
virtual void Save (Stream &stream)
 Write both parameters to stream.
virtual void Load (Stream &stream)
 Read both parameters from stream.
virtual int Type ()
 Report kFilterZeroOrder.
virtual void Copy (const Filter *pSource)
 Copy both parameters from pSource.

Detailed Description

Filter stage that limits how far the value may move in one frame.

Its RTTI descriptor is at 0x00902040. It derives publicly from Filter at offset 0. The object is 0xc bytes, and its vtable is at 0x0081e8f0.

The stage is stateful. mLevel is both a parameter and the running output, and each Apply() advances it towards the incoming value by at most mMaxDelta.

Constructor & Destructor Documentation

◆ ZeroOrder() [1/2]

Rnd::Animatable::ZeroOrder::ZeroOrder ( )
inline

Construct a stage with indeterminate parameters.

◆ ZeroOrder() [2/2]

Rnd::Animatable::ZeroOrder::ZeroOrder ( float flLevel,
float flMaxDelta )
inline

Construct a stage with both parameters set.

Parameters
flLevelThe starting output.
flMaxDeltaThe largest step one Apply() may take.

Member Function Documentation

◆ Apply()

virtual float Rnd::Animatable::ZeroOrder::Apply ( float flValue)
virtual

Advance mLevel towards the value by at most mMaxDelta.

Parameters
flValueThe value to move towards.
Returns
The new mLevel.
Ghidra address:
NTSC-U/C: 0x0049a568
Ghidra address:
PAL: 0x004d84d0

Implements Rnd::Animatable::Filter.

◆ Unapply()

virtual float Rnd::Animatable::ZeroOrder::Unapply ( float flValue)
virtual

Report the mLevel that preceded an Apply() of the value.

A value below mLevel means the last step moved down. The earlier level was therefore one step higher, and the reverse for a value above. An equal value reports mLevel unchanged.

Parameters
flValueThe value the last Apply() received.
Returns
The earlier level.
Ghidra address:
NTSC-U/C: 0x0049a5b8
Ghidra address:
PAL: 0x004d8520

Reimplemented from Rnd::Animatable::Filter.

◆ Print()

virtual void Rnd::Animatable::ZeroOrder::Print ( Dbg & sink) const
virtual

Write "(level:%.2f maxDelta:%.2f)" to sink.

Parameters
sinkThe diagnostic sink to write to.
Ghidra address:
NTSC-U/C: 0x00499348
Ghidra address:
PAL: 0x004d72a8

Implements Rnd::Animatable::Filter.

◆ Save()

virtual void Rnd::Animatable::ZeroOrder::Save ( Stream & stream)
virtual

Write both parameters to stream.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x004993e8
Ghidra address:
PAL: 0x004d7348

Implements Rnd::Animatable::Filter.

◆ Load()

virtual void Rnd::Animatable::ZeroOrder::Load ( Stream & stream)
virtual

Read both parameters from stream.

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x00499458
Ghidra address:
PAL: 0x004d73b8

Implements Rnd::Animatable::Filter.

◆ Type()

virtual int Rnd::Animatable::ZeroOrder::Type ( )
virtual

Report kFilterZeroOrder.

Returns
The type tag.
Ghidra address:
NTSC-U/C: 0x004994b8
Ghidra address:
PAL: 0x004d7418

Implements Rnd::Animatable::Filter.

◆ Copy()

virtual void Rnd::Animatable::ZeroOrder::Copy ( const Filter * pSource)
virtual

Copy both parameters from pSource.

Parameters
pSourceThe ZeroOrder to copy.
Ghidra address:
NTSC-U/C: 0x004994c0
Ghidra address:
PAL: 0x004d7420

Implements Rnd::Animatable::Filter.


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