17 lines
388 B
C++
17 lines
388 B
C++
#include "../headers/ObjectItem.hpp"
|
|
|
|
ObjectItem::ObjectItem(float x, float y, sf::Texture &texture) {
|
|
Position position_ = {0,0};
|
|
position_.x = static_cast<int>(x);
|
|
position_.y = static_cast<int>(y);
|
|
position = position_;
|
|
this->texture_ = texture;
|
|
}
|
|
|
|
bool ObjectItem::getStatus() {
|
|
return outOfBounds;
|
|
}
|
|
|
|
sf::Sprite &ObjectItem::getSprite() {
|
|
return sprite;
|
|
} |