Lazarus
Engine for creating roguelikes in C++
 All Classes Namespaces Functions
Public Member Functions | List of all members
lz::Updateable Class Referenceabstract

Interface for objects that can be updated by the ECS engine when it ticks. More...

#include <Updateable.h>

Public Member Functions

virtual void update (ECSEngine &engine)=0
 Virtual update method. More...
 

Detailed Description

Interface for objects that can be updated by the ECS engine when it ticks.

Objects which derive from Updateable will need to implement the update method, which will be called by the update method in the ECS engine.

See Also
ECSEngine

Member Function Documentation

virtual void lz::Updateable::update ( ECSEngine engine)
pure virtual

Virtual update method.

Objects implementing this interface can define this method to do something on the entities passed as argument. The ECSEngine will call the update method on all updateables when the update method from the ECSEngine is called.


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