ObjectItem class added to accordance of diagram class

This commit is contained in:
2024-12-05 12:46:03 +01:00
parent 087a8d7672
commit b6830c305b
7 changed files with 62 additions and 39 deletions

17
sources/ObjectItem.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "../headers/ObjectItem.hpp"
ObjectItem::ObjectItem(float x, float y, sf::Texture &texture) {
Position position_;
position_.x = x;
position_.y = y;
position = position_;
this->texture = texture;
}
bool ObjectItem::getStatus() {
return outOfBounds;
}
sf::Sprite &ObjectItem::getSprite() {
return sprite;
}