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

Applies constraint stacks to transform components. More...

#include <constraint-system.hpp>

Inheritance diagram for constraint_system:
updatable_system

Public Member Functions

 constraint_system (entity::registry &registry)
 
 ~constraint_system ()
 
virtual void update (float t, float dt)
 Perform's a system's update() function. More...
 
void evaluate (entity::id entity_id)
 Manually evaluates an entity's constraints. 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

Applies constraint stacks to transform components.

Definition at line 43 of file constraint-system.hpp.

Constructor & Destructor Documentation

◆ constraint_system()

constraint_system::constraint_system ( entity::registry registry)
explicit

Definition at line 24 of file constraint-system.cpp.

◆ ~constraint_system()

constraint_system::~constraint_system ( )

Definition at line 32 of file constraint-system.cpp.

Member Function Documentation

◆ evaluate()

void constraint_system::evaluate ( entity::id  entity_id)

Manually evaluates an entity's constraints.

Parameters
entity_idID of a constrained entity.

Definition at line 73 of file constraint-system.cpp.

◆ update()

void constraint_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 39 of file constraint-system.cpp.


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