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

#include <reproductive-system.hpp>

Inheritance diagram for reproductive_system:
updatable_system

Public Member Functions

 reproductive_system (entity::registry &registry)
 
void update (float t, float dt) override
 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...
 
constexpr void set_physics_system (physics_system *physics_system) noexcept
 
- 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 30 of file reproductive-system.hpp.

Constructor & Destructor Documentation

◆ reproductive_system()

reproductive_system::reproductive_system ( entity::registry registry)
explicit

Definition at line 34 of file reproductive-system.cpp.

Member Function Documentation

◆ set_physics_system()

constexpr void reproductive_system::set_physics_system ( physics_system physics_system)
inlineconstexprnoexcept

Definition at line 47 of file reproductive-system.hpp.

◆ set_time_scale()

constexpr void reproductive_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 42 of file reproductive-system.hpp.

◆ update()

void reproductive_system::update ( float  t,
float  dt 
)
overridevirtual

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

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

Implements updatable_system.

Definition at line 38 of file reproductive-system.cpp.


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