CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::InputRange Class Referenceabstract

#include <CeresEngine/Input/Range.hpp>

Inheritance diagram for CeresEngine::InputRange:
CeresEngine::AxisInputRange CeresEngine::DeltaAxisInputRange

Public Member Functions

virtual ~InputRange ()=default
 Defaulted virtual destructor.
 
 operator double () const noexcept
 A double conversion operator.
 
virtual void update (const InputState &state)=0
 Updates the range with the given input state.
 

Public Attributes

double value = 0.0
 The range value.
 

Protected Member Functions

void updateValue (double value)
 Updates the range value.
 

Constructor & Destructor Documentation

◆ ~InputRange()

virtual CeresEngine::InputRange::~InputRange ( )
virtualdefault

Defaulted virtual destructor.

Member Function Documentation

◆ operator double()

CeresEngine::InputRange::operator double ( ) const
explicitnoexcept

A double conversion operator.

Returns
The value of value

◆ update()

virtual void CeresEngine::InputRange::update ( const InputState state)
pure virtual

Updates the range with the given input state.

Parameters
stateThe input state to update the range with

Implemented in CeresEngine::AxisInputRange, and CeresEngine::DeltaAxisInputRange.

◆ updateValue()

void CeresEngine::InputRange::updateValue ( double  value)
protected

Updates the range value.

Parameters
valueThe updated range value

Member Data Documentation

◆ value

double CeresEngine::InputRange::value = 0.0

The range value.


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