forked from NaiJi/project-kyoku
29 lines
650 B
C++
29 lines
650 B
C++
|
#include "classicviewmanager.h"
|
||
|
#include "../note.h"
|
||
|
#include <SFML/Graphics/RectangleShape.hpp>
|
||
|
|
||
|
static constexpr std::size_t RESERVED_SIZE = 20;
|
||
|
|
||
|
ClassicViewManager::ClassicViewManager()
|
||
|
{
|
||
|
for (std::size_t i = ARROW_UP; i < AMOUNT_OF_KINDS; ++i)
|
||
|
{
|
||
|
SpritePoll &poll = _sprite_dispatcher.at(i);
|
||
|
poll.reserve(RESERVED_SIZE);
|
||
|
for (auto &sprite : poll)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
std::shared_ptr<Sprite> ClassicViewManager::createSprite(Button kind_of_button) const
|
||
|
{
|
||
|
auto sprite = std::make_shared<sf::RectangleShape>();
|
||
|
sprite->setSize({20.f, 20.f});
|
||
|
switch (kind_of_button)
|
||
|
{
|
||
|
return
|
||
|
}
|
||
|
}
|