Former-commit-id: dfd30810abde2e2901fefb530977894f451abc0d [formerly 970b554c5d21b2f654b079e4da4a2f12dc9e95a8] Former-commit-id: 0e695a5cf47817c71c19aefcd409d2dce982137a
28 lines
574 B
C++
28 lines
574 B
C++
// Copyright (C) 2015 Jérôme Leclercq
|
|
// This file is part of the "Nazara Development Kit"
|
|
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
|
|
|
|
#pragma once
|
|
|
|
#ifndef NDK_STATE_HPP
|
|
#define NDK_STATE_HPP
|
|
|
|
#include <NDK/Prerequesites.hpp>
|
|
|
|
namespace Ndk
|
|
{
|
|
class StateMachine;
|
|
|
|
class NDK_API State
|
|
{
|
|
public:
|
|
State() = default;
|
|
virtual ~State();
|
|
|
|
virtual void Enter(StateMachine& fsm) = 0;
|
|
virtual void Leave(StateMachine& fsm) = 0;
|
|
virtual bool Update(StateMachine& fsm, float elapsedTime) = 0;
|
|
};
|
|
}
|
|
|
|
#endif // NDK_STATE_HPP
|