project-kyoku/notesprites/notesprite.cpp

22 lines
312 B
C++
Raw Normal View History

2021-04-18 17:44:09 -04:00
#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;
}