project-kyoku/include/core/sprite.h

22 lines
363 B
C
Raw Normal View History

2021-06-07 20:19:58 +02:00
#pragma once
#include "core/point.h"
#include "core/vector.h"
2021-12-29 15:59:18 +01:00
namespace kku
{
2021-06-07 20:19:58 +02:00
class Sprite
{
public:
virtual ~Sprite() = default;
virtual void setPosition(const Point &position) = 0;
virtual Point getPosition() const = 0;
virtual void move(const kku::Vector2<float> &delta) = 0;
virtual void display() const = 0;
2021-06-07 20:19:58 +02:00
};
2021-12-29 15:59:18 +01:00
} // namespace kku