mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
27 lines
612 B
C++
27 lines
612 B
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/Nerve.hpp"
|
|
#include "Game/LiveActor/ActorStateBase.hpp"
|
|
|
|
class ActorStateKeeper {
|
|
private:
|
|
struct State {
|
|
ActorStateBaseInterface* mInterface;
|
|
const Nerve* mNerve;
|
|
const char* mName;
|
|
};
|
|
public:
|
|
ActorStateKeeper(int);
|
|
|
|
void addState(ActorStateBaseInterface *, const Nerve *, const char *);
|
|
bool updateCurrentState();
|
|
void startState(const Nerve *);
|
|
void endState(const Nerve *);
|
|
State* findStateInfo(const Nerve *);
|
|
|
|
s32 mStatesCapacity;
|
|
s32 mLength;
|
|
State* mStates; // 0x8
|
|
State* mCurrentState; // 0xC
|
|
};
|