private bool IsQueenStateValid(QueenState state) { if (state == QueenState.Lopšys || state == QueenState.GyvenaAvilyje || state == QueenState.PriduodamaŠeimai || state == QueenState.IzoliuotaNarvelyje || state == QueenState.Parduota || state == QueenState.Išsispietusi || state == QueenState.Numirusi) { return(true); } return(false); }
private bool IsFinalState(QueenState state) { return((state & (QueenState.Parduota | QueenState.Išsispietusi | QueenState.Numirusi)) > 0); }
private bool IsCreatingState(QueenState state) { return((state & (QueenState.Lopšys | QueenState.GyvenaAvilyje | QueenState.PriduodamaŠeimai | QueenState.IzoliuotaNarvelyje)) > 0); }