Virtual base class for all Malena framework objects.
Static, type-safe collection manager for Core-derived objects.
void setRow(int row)
Set the number of columns per row.
sf::Vector2f getPosition() const
Return the current world-space origin of the grid.
void addComponent(Core &component)
Add a Core object to the grid and reposition all items.
Grid(sf::Vector2u size)
Construct a grid with a specified column and row count.
void setPosition(const sf::Vector2f &position)
Set the world-space origin of the grid.
float getSpacing() const
Return the current spacing between cells in pixels.
Grid()
Construct a single-row grid with default spacing.
int getRow() const
Return the current number of columns.
void setSpacing(float spacing)
Set the spacing between cells.
sf::FloatRect getGlobalBounds() const
Return the axis-aligned bounding box of the entire grid.
Vector2< unsigned int > Vector2u
Vector2< float > Vector2f