raylibstarter 0.1.0
actor.cpp
Go to the documentation of this file.
1#include <raylib.h>
2
3#include "actor.h"
4
5game::core::Actor::Actor(std::shared_ptr<game::core::Sprite> sprite) : sprite_(std::move(sprite)){
6 TraceLog(LOG_INFO, "game::core::Actor constructor called");
7}
8
10 TraceLog(LOG_INFO, "game::core::Actor destructor called");
11}
12
13const std::shared_ptr<game::core::Sprite> &game::core::Actor::sprite() const {
14 return this->sprite_;
15}
16
17void game::core::Actor::sprite(std::shared_ptr<game::core::Sprite> sprite) {
18 this->sprite_ = std::move(sprite);
19}
20
const std::shared_ptr< game::core::Sprite > & sprite() const
Returns the sprite object of the actor.
Definition: actor.cpp:13
virtual ~Actor()
Definition: actor.cpp:9