SimpleEngine/include/simpleengine/components/movement/movement_component.h

28 lines
612 B
C
Raw Normal View History

//
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
// Email: seanomik@gmail.com
//
#ifndef SIMPLEENGINE_MOVEMENT_COMPONENT_H
#define SIMPLEENGINE_MOVEMENT_COMPONENT_H
#include "../../component.h"
#include <SFML/Graphics.hpp>
namespace simpleengine {
class Entity;
class MovementComponent : public Component {
public:
2020-07-03 20:26:44 +00:00
MovementComponent(Entity& owning_entity, float movement_speed);
void Update(const float &delta_time) override;
private:
float movement_speed;
};
}
#endif //SIMPLEENGINE_MOVEMENT_COMPONENT_H