Beispiel #1
0
 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);
 }
Beispiel #2
0
 private bool IsFinalState(QueenState state)
 {
     return((state & (QueenState.Parduota | QueenState.Išsispietusi |
                      QueenState.Numirusi)) > 0);
 }
Beispiel #3
0
 private bool IsCreatingState(QueenState state)
 {
     return((state & (QueenState.Lopšys | QueenState.GyvenaAvilyje |
                      QueenState.PriduodamaŠeimai | QueenState.IzoliuotaNarvelyje)) > 0);
 }