We've started on this years code and we wanted to publish it to ensure we can use it on this years robot:
Code:
public class PizzaThrower extends Subsystem {
public void throwPizza(Pizza pizza) {
if (!pizza.toppings.contains(PizzaTopping.PINEAPPLE)) {
// WE NEED THE PINEAPPLE
addPineapple();
}
smsFrank();
startRippleGenerator(); // to scare the fish
startShooterWheels();
enableOven(); // to ensure the pizza is fully cooked
fastBakePizza();
throwPizza();
turnOffOven();
shoot();
stopShooterWheels();
stopRippleGenerator();
flyToElevation(1); // meters
swim(2); // meters
}
}
Hopefully this helps everyone out with the pizza water flying game
