- removed IStateMachine.hpp

git-svn-id: http://moon:8086/svn/software/trunk/projects/FsmEval@135 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2015-01-24 12:07:40 +00:00
parent 251ac211bd
commit 0d8badfef1
5 changed files with 32 additions and 60 deletions
+3 -5
View File
@@ -8,11 +8,10 @@
#ifndef ASTATEMACHINE_HPP
#define ASTATEMACHINE_HPP
#include "IStateMachine.hpp"
#include "AState.hpp"
template <class IdType>
class AStateMachine : public IStateMachine
class AStateMachine
{
public:
@@ -55,7 +54,6 @@ public:
if (!m_firstState)
{
m_firstState = pState;
// m_currState = pState;
}
else
{
@@ -69,7 +67,7 @@ public:
pState->registerStateMachine(this);
}
void setState(StateId stateId)
void setState(IdType stateId)
{
AState<IdType> *pStateNext = findById(stateId);
@@ -92,7 +90,7 @@ private:
AState<IdType> *m_firstState;
AState<IdType> *m_currState;
AState<IdType>* findById(StateId stateId)
AState<IdType>* findById(IdType stateId)
{
AState<IdType> *pStateNext = m_firstState;