You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
project-kyoku/notesprites/notesprite.cpp

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;
}