Apparatus Version 1.3.0
ECS data-driven workflow for Unreal Engine.
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
IMechanical Class Reference

A common interface for all mechanisms. More...

#include <Mechanical.h>

Inheritance diagram for IMechanical:
Inheritance graph
[legend]

Public Member Functions

void ReceiveBoot ()
 Process newly created subjects. More...
 
void ReceiveInputTick ()
 Process a pre-steady input tick. More...
 
void ReceiveSteadyTick (float DeltaSeconds)
 Process a fixed-rate steady tick. More...
 
void ReceivePresentationTick (float DeltaSeconds, float FrameRatio, float FutureFactor)
 Process a past-steady presentation tick. More...
 
virtual void Boot ()
 Process newly created subjects. More...
 
virtual void InputTick ()
 Process a pre-steady input tick. More...
 
virtual void SteadyTick (float DeltaTime)
 Process a fixed-rate steady tick. More...
 
virtual void PresentationTick (float DeltaSeconds, float FrameRatio, float FutureFactor)
 Process a past-steady presentation tick. More...
 
 IMechanical ()
 

Protected Member Functions

virtual void DoTick (float NewTime, float DeltaTime, float SteadyDeltaTime)
 Perform a standard ticking routine. More...
 
float DoGetProcessedSteadyTime (float SteadyDeltaTime) const
 
virtual float DoCalcSteadyFrameRatio (const float Time, const float SteadyDeltaTime) const
 
virtual float DoCalcSteadyFutureFactor (const float Time, const float SteadyDeltaTime) const
 

Protected Attributes

uint32 bInsideTick: 1
 Is this mechanism currently updating? More...
 
uint32 bInsideSteadyTick: 1
 Is this mechanism currently in the process of steady ticking? More...
 
uint32 bInsidePresentationTick: 1
 Is this mechanism currently in the process of presentation ticking? More...
 
float PrevTime = NAN
 The game time of the previous tick. More...
 
int32 SteadyFrame = 0
 The steady frame we are currently part of. More...
 
int32 ProcessedSteadyFrame = -1
 The last, actually processed steady frame. More...
 

Friends

class UMachine
 

Detailed Description

A common interface for all mechanisms.

Constructor & Destructor Documentation

◆ IMechanical()

IMechanical::IMechanical ( )
inline

Member Function Documentation

◆ Boot()

virtual void IMechanical::Boot ( )
inlinevirtual

Process newly created subjects.

◆ DoCalcSteadyFrameRatio()

virtual float IMechanical::DoCalcSteadyFrameRatio ( const float  Time,
const float  SteadyDeltaTime 
) const
inlineprotectedvirtual

◆ DoCalcSteadyFutureFactor()

virtual float IMechanical::DoCalcSteadyFutureFactor ( const float  Time,
const float  SteadyDeltaTime 
) const
inlineprotectedvirtual

◆ DoGetProcessedSteadyTime()

float IMechanical::DoGetProcessedSteadyTime ( float  SteadyDeltaTime) const
inlineprotected

◆ DoTick()

void IMechanical::DoTick ( float  NewTime,
float  DeltaTime,
float  SteadyDeltaTime 
)
inlineprotectedvirtual

Perform a standard ticking routine.

The function can be used in the descendants to perform a standard ticking routine.

◆ InputTick()

virtual void IMechanical::InputTick ( )
inlinevirtual

Process a pre-steady input tick.

◆ PresentationTick()

virtual void IMechanical::PresentationTick ( float  DeltaSeconds,
float  FrameRatio,
float  FutureFactor 
)
inlinevirtual

Process a past-steady presentation tick.

Parameters
DeltaSecondsThe fixed delta time in seconds.
FrameRatioThe steady frame ratio.
FutureFactorThe steady future factor.

◆ ReceiveBoot()

void IMechanical::ReceiveBoot ( )

Process newly created subjects.

◆ ReceiveInputTick()

void IMechanical::ReceiveInputTick ( )

Process a pre-steady input tick.

◆ ReceivePresentationTick()

void IMechanical::ReceivePresentationTick ( float  DeltaSeconds,
float  FrameRatio,
float  FutureFactor 
)

Process a past-steady presentation tick.

Parameters
DeltaSecondsThe fixed delta time in seconds.
FrameRatioThe steady frame ratio.
FutureFactorThe steady future factor.

◆ ReceiveSteadyTick()

void IMechanical::ReceiveSteadyTick ( float  DeltaSeconds)

Process a fixed-rate steady tick.

◆ SteadyTick()

virtual void IMechanical::SteadyTick ( float  DeltaTime)
inlinevirtual

Process a fixed-rate steady tick.

Friends And Related Function Documentation

◆ UMachine

friend class UMachine
friend

Member Data Documentation

◆ bInsidePresentationTick

uint32 IMechanical::bInsidePresentationTick
protected

Is this mechanism currently in the process of presentation ticking?

◆ bInsideSteadyTick

uint32 IMechanical::bInsideSteadyTick
protected

Is this mechanism currently in the process of steady ticking?

◆ bInsideTick

uint32 IMechanical::bInsideTick
protected

Is this mechanism currently updating?

◆ PrevTime

float IMechanical::PrevTime = NAN
protected

The game time of the previous tick.

◆ ProcessedSteadyFrame

int32 IMechanical::ProcessedSteadyFrame = -1
protected

The last, actually processed steady frame.

-1 if the steady tick was not run yet.

◆ SteadyFrame

int32 IMechanical::SteadyFrame = 0
protected

The steady frame we are currently part of.


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