예제 #1
0
 public JelloPlate ChooseDestination(JelloState jelloState)
 {
     if (jelloporterColor == JelloporterColor.PINK)
     {
         if (jelloState == JelloState.PINK_UP_GREEN_DOWN)
         {
             return(topPlate);
         }
         else
         {
             return(bottomPlate);
         }
     }
     else
     {
         if (jelloState == JelloState.PINK_DOWN_GREEN_UP)
         {
             return(topPlate);
         }
         else
         {
             return(bottomPlate);
         }
     }
 }
예제 #2
0
 public JelloportState(Character activeCharacter, JelloState newJelloState)
 {
     this.activeCharacter = activeCharacter;
     this.newJelloState   = newJelloState;
     nextState            = this;
 }
예제 #3
0
 public JelloportationStartedSignal(JelloState newJelloState, JelloPlate destinationPlate)
 {
     this.newJelloState    = newJelloState;
     this.destinationPlate = destinationPlate;
 }