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

#include <EasyMovement.hpp>

Inheritance diagram for gk::EasyMovement:
gk::Movement

Public Member Functions

 EasyMovement (const std::function< void(SceneObject &)> &func)
 
void process (SceneObject &object) override
 
- Public Member Functions inherited from gk::Movement
virtual ~Movement ()=default
 
bool isFinished () const
 

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from gk::Movement
bool m_isFinished = false
 

Detailed Description

Definition at line 23 of file EasyMovement.hpp.

Constructor & Destructor Documentation

§ EasyMovement()

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

Definition at line 25 of file EasyMovement.hpp.

Member Function Documentation

§ process()

void gk::EasyMovement::process ( SceneObject object)
inlineoverridevirtual

Implements gk::Movement.

Definition at line 27 of file EasyMovement.hpp.

Member Data Documentation

§ m_func

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

Definition at line 32 of file EasyMovement.hpp.


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