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