mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
33 lines
697 B
C++
33 lines
697 B
C++
#include "Game/System/NerveExecutor.hpp"
|
|
|
|
NerveExecutor::NerveExecutor(const char *a1) : mSpine(0) {
|
|
|
|
}
|
|
|
|
// This isn't right but when it's virtual it doesn't exist for some reason
|
|
NerveExecutor::~NerveExecutor() {
|
|
delete mSpine;
|
|
}
|
|
|
|
void NerveExecutor::initNerve(const Nerve *pNerve) {
|
|
mSpine = new Spine(this, pNerve);
|
|
}
|
|
|
|
void NerveExecutor::updateNerve() {
|
|
if (mSpine != nullptr) {
|
|
mSpine->update();
|
|
}
|
|
}
|
|
|
|
void NerveExecutor::setNerve(const Nerve* pNerve) {
|
|
mSpine->setNerve(pNerve);
|
|
}
|
|
|
|
bool NerveExecutor::isNerve(const Nerve* pNerve) const {
|
|
return !(mSpine->getCurrentNerve() != pNerve);
|
|
}
|
|
|
|
s32 NerveExecutor::getNerveStep() const {
|
|
return mSpine->mStep;
|
|
}
|