mirror of
https://github.com/SMGCommunity/Petari.git
synced 2026-11-09 17:54:41 -10:00
41 lines
717 B
C++
41 lines
717 B
C++
#pragma once
|
|
|
|
#include "Game/System/NerveExecutor.hpp"
|
|
|
|
class ActorStateBaseInterface : public NerveExecutor {
|
|
public:
|
|
ActorStateBaseInterface(const char* pName) : NerveExecutor(pName) {
|
|
}
|
|
|
|
virtual void init() {
|
|
}
|
|
|
|
virtual void appear() {
|
|
mIsDead = false;
|
|
}
|
|
|
|
virtual void kill() {
|
|
mIsDead = true;
|
|
}
|
|
|
|
virtual bool update();
|
|
|
|
virtual void control() {
|
|
}
|
|
|
|
/* 0x8 */ bool mIsDead;
|
|
};
|
|
|
|
template < typename T >
|
|
class ActorStateBase : public ActorStateBaseInterface {
|
|
public:
|
|
ActorStateBase(const char* pName, T* pHost) : ActorStateBaseInterface(pName), mHost(pHost) {
|
|
}
|
|
|
|
T* getHost() const {
|
|
return mHost;
|
|
}
|
|
|
|
/* 0xC */ T* mHost;
|
|
};
|