Esempio n. 1
0
 /// <summary>
 /// Is the specified state allowed?
 /// </summary>
 /// <param name="state"></param>
 /// <returns>True if allowed</returns>
 public bool IsAllowed(State state)
 {
     return m_states.Contains(state);
 }
Esempio n. 2
0
 /// <summary>
 /// Remove a state
 /// </summary>
 /// <param name="state"></param>
 public void RemoveState(State state)
 {
     if (m_states.Contains(state))
         m_states.Remove(state);
 }
Esempio n. 3
0
 /// <summary>
 /// Add a state
 /// </summary>
 /// <param name="state"></param>
 public void AddState(State state)
 {
     if (!m_states.Contains(state))
         m_states.Add(state);
 }