Example #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);
         }
     }
 }
 public JelloportState(Character activeCharacter, JelloState newJelloState)
 {
     this.activeCharacter = activeCharacter;
     this.newJelloState   = newJelloState;
     nextState            = this;
 }
Example #3
0
 public JelloportationStartedSignal(JelloState newJelloState, JelloPlate destinationPlate)
 {
     this.newJelloState    = newJelloState;
     this.destinationPlate = destinationPlate;
 }