A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Abstract::g3d::FrameCtrl Class Reference

Description

Definition at line 33 of file AnmObj.hh.

Inheritance diagram for Abstract::g3d::FrameCtrl:

Public Member Functions

 FrameCtrl (f32 start, f32 end, PlayPolicyFunc policy)
 
void updateFrame ()
 
Getters
f32 frame () const
 
f32 rate () const
 
PlayPolicyFunc playPolicy () const
 
Setters
void setFrame (f32 frame)
 
void setRate (f32 rate)
 
void setPlayPolicy (PlayPolicyFunc func)
 

Private Attributes

f32 m_frame
 
f32 m_updateRate
 
f32 m_startFrame
 
f32 m_endFrame
 
PlayPolicyFunc m_playPolicy
 

Static Private Attributes

static f32 s_baseUpdateRate = 1.0f
 

Constructor & Destructor Documentation

◆ FrameCtrl()

Abstract::g3d::FrameCtrl::FrameCtrl ( f32 start,
f32 end,
PlayPolicyFunc policy )
inline

Definition at line 35 of file AnmObj.hh.

Member Function Documentation

◆ frame()

f32 Abstract::g3d::FrameCtrl::frame ( ) const
inlinenodiscard

Definition at line 46 of file AnmObj.hh.

◆ playPolicy()

PlayPolicyFunc Abstract::g3d::FrameCtrl::playPolicy ( ) const
inlinenodiscard

Definition at line 54 of file AnmObj.hh.

◆ rate()

f32 Abstract::g3d::FrameCtrl::rate ( ) const
inlinenodiscard

Definition at line 50 of file AnmObj.hh.

◆ setFrame()

void Abstract::g3d::FrameCtrl::setFrame ( f32 frame)
inline

Definition at line 60 of file AnmObj.hh.

◆ setPlayPolicy()

void Abstract::g3d::FrameCtrl::setPlayPolicy ( PlayPolicyFunc func)
inline

Definition at line 68 of file AnmObj.hh.

◆ setRate()

void Abstract::g3d::FrameCtrl::setRate ( f32 rate)
inline

Definition at line 64 of file AnmObj.hh.

◆ updateFrame()

void Abstract::g3d::FrameCtrl::updateFrame ( )
inline

Definition at line 41 of file AnmObj.hh.

Member Data Documentation

◆ m_endFrame

f32 Abstract::g3d::FrameCtrl::m_endFrame
private

Definition at line 78 of file AnmObj.hh.

◆ m_frame

f32 Abstract::g3d::FrameCtrl::m_frame
private

Definition at line 75 of file AnmObj.hh.

◆ m_playPolicy

PlayPolicyFunc Abstract::g3d::FrameCtrl::m_playPolicy
private

Definition at line 79 of file AnmObj.hh.

◆ m_startFrame

f32 Abstract::g3d::FrameCtrl::m_startFrame
private

Definition at line 77 of file AnmObj.hh.

◆ m_updateRate

f32 Abstract::g3d::FrameCtrl::m_updateRate
private

Definition at line 76 of file AnmObj.hh.

◆ s_baseUpdateRate

f32 Abstract::g3d::FrameCtrl::s_baseUpdateRate = 1.0f
staticprivate

Definition at line 81 of file AnmObj.hh.