mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-03 09:17:47 +00:00
23 lines
No EOL
438 B
C++
23 lines
No EOL
438 B
C++
#include <cstdint>
|
|
#include <ForwardsZone.h>
|
|
#include <Actor/BNpc.h>
|
|
|
|
#pragma once
|
|
|
|
namespace Sapphire::World::AI
|
|
{
|
|
class Fsm
|
|
{
|
|
public:
|
|
Fsm() = default;
|
|
~Fsm() = default;
|
|
|
|
FsmStatePtr addState( FsmStatePtr state );
|
|
void setCurrentState( FsmStatePtr state );
|
|
virtual void update( Entity::BNpc& bnpc, float deltaTime );
|
|
|
|
protected:
|
|
std::vector< FsmStatePtr > m_states;
|
|
FsmStatePtr m_pCurrentState;
|
|
};
|
|
} |