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