#ifndef ENTITY_H #define ENTITY_H #include "scenenode.h" #include class Entity : public SceneNode { public: explicit Entity(); virtual ~Entity() = 0; void setVelocity(sf::Vector2f vel); void setVelocity(float vx, float vy); const sf::Vector2f& velocity() const; void accelerate(sf::Vector2f vel); private: sf::Vector2f vector_velocity; virtual void updateCurrent(const sf::Time& dt) override; }; #endif // ENTITY_H