forked from NaiJi/project-kyoku
22 lines
312 B
C++
22 lines
312 B
C++
#include "notesprite.h"
|
|
|
|
NoteSprite::NoteSprite() :
|
|
_state(State::DETACHED),
|
|
_attached(false)
|
|
{}
|
|
|
|
void NoteSprite::attach() noexcept
|
|
{
|
|
_attached = true;
|
|
}
|
|
|
|
void NoteSprite::detach() noexcept
|
|
{
|
|
_attached = false;
|
|
}
|
|
|
|
void NoteSprite::initState(State nextState) noexcept
|
|
{
|
|
_state = nextState;
|
|
}
|