18 std::shared_ptr<game::core::Sprite>
sprite_;
29 explicit Actor(std::shared_ptr<game::core::Sprite>
sprite);
41 [[nodiscard]]
const std::shared_ptr<game::core::Sprite> &
sprite()
const;
Actor base class. Actors represent all game objects, such as players, enemies and other obstacles.
const std::shared_ptr< game::core::Sprite > & sprite() const
Returns the sprite object of the actor.
std::shared_ptr< game::core::Sprite > sprite_
Actor & operator=(const Actor &)=delete
Actor(const game::core::Actor &actor)=delete