/// <summary> /// Determines whether this instance is current state the specified state. /// </summary> /// <returns><c>true</c> if this instance is current state the specified state; otherwise, <c>false</c>.</returns> /// <param name="state">State.</param> public bool IsCurrentState(IAIState state) { return state.GetStateID() == m_CurrentState.GetStateID(); }
/// <summary> /// Registers the state. /// </summary> /// <param name="state">State.</param> public void RegisterState(IAIState state) { if (!m_dState.ContainsKey(state.GetStateID())) { m_dState.Add(state.GetStateID(), state); } }