35 namespace OpenSkyNet {
175 void popAllRecords(
bool onlyAddNew_=
false,
bool removeAll_=
false);
virtual ~Wrapper()
Definition: AIWrapper.cpp:134
bool setLogic(LOGIC_IDS logicId_)
Definition: AIWrapper.cpp:125
bool setFSM(FSM_IDS fSMId_, State *state_=0, bool autoEnable_=true)
Definition: AIWrapper.cpp:77
void initAIEngine(std::ifstream *fin_=0)
FSM * _fSM
Definition: AIWrapper.h:43
bool _isEnabled
Definition: AIWrapper.h:47
void disableSwitchingToFSM(FSM_IDS fSMId_)
Definition: AIWrapper.h:101
KB * _kB
Definition: AIWrapper.h:55
void enableSwitchingToFSM(FSM_IDS fSMId_, State *state_=0)
Definition: AIWrapper.cpp:61
LOGIC_IDS getCurrentLogicId()
Definition: AIWrapper.h:144
Definition: AIConsts.h:29
virtual void init(LOGIC_IDS logicId_, FSM_IDS fSMId_, State *state_)
Definition: AIWrapper.cpp:30
virtual const State * getCurrentState() const
Definition: AIWrapper.h:90
bool pushFSM(FSM_IDS fSMId_, State *state_=0, bool autoEnable_=true)
Definition: AIWrapper.cpp:98
bool _wasKBCreatedHere
Definition: AIWrapper.h:56
LOGIC_IDS getLogicId() const
Definition: AILogic.h:82
Definition: AIWrapper.h:40
float _timeStampStateChange
Definition: AIWrapper.h:45
std::stack< FSMWrapper * > _stackFSMs
Definition: AIWrapper.h:53
FSMWrapper()
Definition: AIWrapper.cpp:23
Wrapper()
Definition: AIWrapper.cpp:25
LOGIC_IDS
Definition: AIConsts.h:32
FSM_IDS
Definition: AIConsts.h:28
Logic * _logic
Definition: AIWrapper.h:57
FSM_IDS getFSM() const
Definition: AIWrapper.h:117
bool popFSM()
Definition: AIWrapper.cpp:117
bool g_usedHeap
Definition: AIWrapper.cpp:15
void destroyAIEngine()
Definition: AIWrapper.cpp:171
virtual KB * getKB()
Definition: AIWrapper.h:149
virtual void doAction()
to be implemented by derived or containing class
Definition: AIWrapper.cpp:132
FSMWrapper _fSMs[FSM_MAX]
Definition: AIWrapper.h:52
FSM_IDS _currFSMIndex
Definition: AIWrapper.h:54
void popAllRecords(bool onlyAddNew_=false, bool removeAll_=false)
Definition: AIWrapper.cpp:194
FSM_IDS _index
Definition: AIWrapper.h:46
Definition: AIWrapper.h:42
State * _state
Definition: AIWrapper.h:44
virtual bool performLogic(bool includeGlobalKB_=false)
returns true if state changed, false otherwise
Definition: AIWrapper.cpp:55