Beispiel #1
0
 public DistanceState GetUpdated(MoveState state)
 {
     if (MoveState.areFromSameTerminus(stateVar1, state))
     {
         return(new DistanceState(state, stateVar2));
     }
     else if (MoveState.areFromSameTerminus(stateVar2, state))
     {
         return(new DistanceState(stateVar1, state));
     }
     else
     {
         return(null);
     }
 }
Beispiel #2
0
 public bool hasMoveStateFromSameTerminus(MoveState state)
 {
     return(MoveState.areFromSameTerminus(stateVar1, state) || MoveState.areFromSameTerminus(stateVar2, state));
 }