GameKit  0.0.1a
C++ gamedev tools
Public Member Functions | Private Attributes | List of all members
gk::EasyBehaviour Class Reference

#include <EasyBehaviour.hpp>

Inheritance diagram for gk::EasyBehaviour:
gk::Behaviour

Public Member Functions

 EasyBehaviour (const std::function< void(SceneObject &)> &func)
 
void update (SceneObject &object) override
 

Private Attributes

std::function< void(SceneObject &)> m_func
 

Detailed Description

Definition at line 23 of file EasyBehaviour.hpp.

Constructor & Destructor Documentation

§ EasyBehaviour()

gk::EasyBehaviour::EasyBehaviour ( const std::function< void(SceneObject &)> &  func)
inline

Definition at line 25 of file EasyBehaviour.hpp.

Member Function Documentation

§ update()

void gk::EasyBehaviour::update ( SceneObject object)
inlineoverridevirtual

Implements gk::Behaviour.

Definition at line 27 of file EasyBehaviour.hpp.

Member Data Documentation

§ m_func

std::function<void(SceneObject &)> gk::EasyBehaviour::m_func
private

Definition at line 32 of file EasyBehaviour.hpp.


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