// ============================================================================ // Update handler // ============================================================================ void DataOnDemandSvc::update_dump ( Property& /* p */ ) { // no action if not yet initialized if ( FSMState() < Gaudi::StateMachine::INITIALIZED ) { return ; } // dump the configuration: if ( m_dump ) { dump ( MSG::ALWAYS ) ; } }
FSMState& FSM::addState( int stateName, const std::function<void()>& enterFunc, const std::function<void(float)>& updateFunc, const std::function<void()>& exitFunc) { return this->addState(FSMState(stateName, enterFunc, updateFunc, exitFunc)); }
// Re-initialize StatusCode EventSelector::reinitialize() { if ( FSMState() != Gaudi::StateMachine::INITIALIZED ) { MsgStream logger(msgSvc(), name()); logger << MSG::ERROR << "Cannot reinitialize: service not in state initialized" << endmsg; return StatusCode::FAILURE; } if( m_streamSpecsLast != m_streamSpecs ) { StatusCode status = m_streamtool->clear(); if ( status.isFailure() ) return status; m_streamSpecsLast = m_streamSpecs; m_reconfigure = true; return m_streamtool->addStreams(m_streamSpecs); } return StatusCode::SUCCESS; }
FSMState& FSM::addState(int stateName) { return this->addState(FSMState(stateName, nullptr, nullptr, nullptr)); }
FSMState* StateAttackEnemy::CheckTransitions(int i) { FSMState* dummyState = NiNew FSMState(); return dummyState; }