ObjectItem class added to accordance of diagram class
This commit is contained in:
17
sources/ObjectItem.cpp
Normal file
17
sources/ObjectItem.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user