public void Include(HCState aState) { int vIndex = GetStateIndex(aState); if (vIndex >= 0) { FStates[vIndex].Count++; } else { HCStateDictionary vStateDic = new HCStateDictionary(); vStateDic.State = aState; vStateDic.Count = 1; FStates.Add(vStateDic); } }
public void Exclude(HCState aState) { int vIndex = GetStateIndex(aState); if (vIndex >= 0) { if (FStates[vIndex].Count > 1) { FStates[vIndex].Count--; } else { DeleteState(vIndex); } } }
public bool Contain(HCState aState) { return(GetStateIndex(aState) >= 0); }