Antkeeper  0.0.1
Public Member Functions | List of all members
metabolic_system Class Reference

#include <metabolic-system.hpp>

Inheritance diagram for metabolic_system:
updatable_system

Public Member Functions

 metabolic_system (entity::registry &registry)
 
virtual void update (float t, float dt)
 Perform's a system's update() function. More...
 
constexpr void set_time_scale (float scale) noexcept
 Sets the factor by which the timestep dt will be scaled. More...
 
- Public Member Functions inherited from updatable_system
 updatable_system (entity::registry &registry)
 Creates an updatable system. More...
 

Additional Inherited Members

- Protected Attributes inherited from updatable_system
entity::registryregistry
 Registry on which the system operate. More...
 

Detailed Description

Definition at line 28 of file metabolic-system.hpp.

Constructor & Destructor Documentation

◆ metabolic_system()

metabolic_system::metabolic_system ( entity::registry registry)
explicit

Definition at line 25 of file metabolic-system.cpp.

Member Function Documentation

◆ set_time_scale()

constexpr void metabolic_system::set_time_scale ( float  scale)
inlineconstexprnoexcept

Sets the factor by which the timestep dt will be scaled.

Parameters
scaleFactor by which to scale the timestep.

Definition at line 40 of file metabolic-system.hpp.

◆ update()

void metabolic_system::update ( float  t,
float  dt 
)
virtual

Perform's a system's update() function.

Parameters
tTotal elapsed time, in seconds.
dtDelta time, in seconds.

Implements updatable_system.

Definition at line 29 of file metabolic-system.cpp.


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