Murl Engine API  Version 2018.3
Murl::Logic::Timeframe Class Reference

The ITimeframe interface implementation. More...

#include <murl_logic_timeframe.h>

Detailed Description

The ITimeframe interface implementation.

Inheritance diagram for Murl::Logic::Timeframe:
Murl::Logic::ITimeframe Murl::Logic::Stepable Murl::Logic::IStepable Murl::Logic::BaseTimeframe

Public Member Functions

virtual ~Timeframe ()
 The destructor.
 
virtual void ProcessTick (const Logic::IState *state)
 Implementation of IStepable::ProcessTick() method. More...
 
virtual IStepablePtr GetStepable ()
 Implementation of Timeframe::GetStepable() method. More...
 
virtual void Reset ()
 Implementation of Timeframe::Reset() method.
 
virtual void Start ()
 Implementation of Timeframe::Start() method.
 
virtual void Start (Real endTime)
 Implementation of Timeframe::Start(Real endTime) method. More...
 
virtual Bool SetCurrentTime (Real time)
 Implementation of Timeframe::SetCurrentTime() method. More...
 
virtual Bool Finish ()
 Implementation of Timeframe::Finish() method. More...
 
virtual Bool IsRunning () const
 Implementation of Timeframe::IsRunning() method. More...
 
virtual Bool WasStarted () const
 Implementation of Timeframe::WasStarted() method. More...
 
virtual Bool WasRunning () const
 Implementation of Timeframe::WasRunning() method. More...
 
virtual Bool IsOrWasRunning () const
 Implementation of Timeframe::IsOrWasRunning() method. More...
 
virtual Bool HasPassedTime (Real time) const
 Implementation of Timeframe::HasPassedTime() method. More...
 
virtual Bool SetTimeScale (Real timeScale)
 Implementation of Timeframe::SetTimeScale() method. More...
 
virtual Real GetTimeScale () const
 Implementation of Timeframe::GetTimeScale() method. More...
 
virtual Bool SetEndTime (Real endTime)
 Implementation of Timeframe::SetEndTime() method. More...
 
virtual Real GetEndTime () const
 Implementation of Timeframe::GetEndTime() method. More...
 
virtual Double GetCurrentTime () const
 Implementation of Timeframe::GetCurrentTime() method. More...
 
virtual Double GetRemainingTime () const
 Implementation of Timeframe::GetRemainingTime() method. More...
 
- Public Member Functions inherited from Murl::Logic::Stepable
virtual ~Stepable ()
 The destructor.
 
virtual Bool SetAppStepable (IAppStepablePtr appStepable)
 Implementation of IStepable::SetAppStepable() method. More...
 
virtual void SetEnabled (Bool isEnabled)
 Implementation of IStepable::SetEnabled() method. More...
 
virtual Bool IsEnabled () const
 Implementation of IStepable::IsEnabled() method. More...
 
virtual void FinishTick (const Logic::IState *state)
 Implementation of IStepable::FinishTick() method. More...
 

Static Public Member Functions

static ITimeframePtr Create ()
 Create a timeframe object. More...
 
- Static Public Member Functions inherited from Murl::Logic::Stepable
static IStepablePtr Create ()
 Create a stepable object. More...
 

Member Function Documentation

◆ Create()

static ITimeframePtr Murl::Logic::Timeframe::Create ( )
static

Create a timeframe object.

Returns
The created timeframe object, or null if failed.

◆ ProcessTick()

virtual void Murl::Logic::Timeframe::ProcessTick ( const Logic::IState state)
virtual

Implementation of IStepable::ProcessTick() method.

Parameters
stateThe IState object.

Reimplemented from Murl::Logic::Stepable.

◆ GetStepable()

virtual IStepablePtr Murl::Logic::Timeframe::GetStepable ( )
virtual

Implementation of Timeframe::GetStepable() method.

Returns
The stepable interface shared pointer.

Implements Murl::Logic::ITimeframe.

◆ Start()

virtual void Murl::Logic::Timeframe::Start ( Real  endTime)
virtual

Implementation of Timeframe::Start(Real endTime) method.

Parameters
endTimeThe time interval in seconds.

Implements Murl::Logic::ITimeframe.

◆ SetCurrentTime()

virtual Bool Murl::Logic::Timeframe::SetCurrentTime ( Real  time)
virtual

Implementation of Timeframe::SetCurrentTime() method.

Parameters
timeThe current time in seconds.
Returns
true if successful.

Implements Murl::Logic::ITimeframe.

◆ Finish()

virtual Bool Murl::Logic::Timeframe::Finish ( )
virtual

Implementation of Timeframe::Finish() method.

Returns
true if successful.

Implements Murl::Logic::ITimeframe.

◆ IsRunning()

virtual Bool Murl::Logic::Timeframe::IsRunning ( ) const
virtual

Implementation of Timeframe::IsRunning() method.

Returns
true if running.

Implements Murl::Logic::ITimeframe.

◆ WasStarted()

virtual Bool Murl::Logic::Timeframe::WasStarted ( ) const
virtual

Implementation of Timeframe::WasStarted() method.

Returns
true if started.

Implements Murl::Logic::ITimeframe.

◆ WasRunning()

virtual Bool Murl::Logic::Timeframe::WasRunning ( ) const
virtual

Implementation of Timeframe::WasRunning() method.

Returns
true if finished.

Implements Murl::Logic::ITimeframe.

◆ IsOrWasRunning()

virtual Bool Murl::Logic::Timeframe::IsOrWasRunning ( ) const
virtual

Implementation of Timeframe::IsOrWasRunning() method.

Returns
true if IsRunning() or WasRunning() is true.

Implements Murl::Logic::ITimeframe.

◆ HasPassedTime()

virtual Bool Murl::Logic::Timeframe::HasPassedTime ( Real  time) const
virtual

Implementation of Timeframe::HasPassedTime() method.

Parameters
timeThe time to check in seconds.
Returns
true if the current time has passed a specified time within the most recent tick.

Implements Murl::Logic::ITimeframe.

◆ SetTimeScale()

virtual Bool Murl::Logic::Timeframe::SetTimeScale ( Real  timeScale)
virtual

Implementation of Timeframe::SetTimeScale() method.

Parameters
timeScaleThe time scale factor.
Returns
true if successful.

Implements Murl::Logic::ITimeframe.

◆ GetTimeScale()

virtual Real Murl::Logic::Timeframe::GetTimeScale ( ) const
virtual

Implementation of Timeframe::GetTimeScale() method.

Returns
The time scale factor.

Implements Murl::Logic::ITimeframe.

◆ SetEndTime()

virtual Bool Murl::Logic::Timeframe::SetEndTime ( Real  endTime)
virtual

Implementation of Timeframe::SetEndTime() method.

Parameters
endTimeThe end time in seconds.
Returns
true if successful.

Implements Murl::Logic::ITimeframe.

◆ GetEndTime()

virtual Real Murl::Logic::Timeframe::GetEndTime ( ) const
virtual

Implementation of Timeframe::GetEndTime() method.

Returns
The end time in seconds.

Implements Murl::Logic::ITimeframe.

◆ GetCurrentTime()

virtual Double Murl::Logic::Timeframe::GetCurrentTime ( ) const
virtual

Implementation of Timeframe::GetCurrentTime() method.

Returns
The current time in seconds.

Implements Murl::Logic::ITimeframe.

◆ GetRemainingTime()

virtual Double Murl::Logic::Timeframe::GetRemainingTime ( ) const
virtual

Implementation of Timeframe::GetRemainingTime() method.

Returns
The remaining time in seconds.

Implements Murl::Logic::ITimeframe.


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