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; }
public JelloportationStartedSignal(JelloState newJelloState, JelloPlate destinationPlate) { this.newJelloState = newJelloState; this.destinationPlate = destinationPlate; }