Select Git revision
MegaSlicer.java
David Lin authored
MegaSlicer.java 797 B
package lists;
import bagel.Input;
import bagel.util.Point;
import bagel.util.Vector2;
import java.util.List;
/**
* A super slicer.
*/
public class MegaSlicer extends Slicer {
/**
* Creates a new Slicer
*
* @param polyline The polyline that the slicer must traverse (must have at least 1 point)
*/
public MegaSlicer(List<Point> polyline,String imageSrc) {
super(polyline, imageSrc);
this.speed = 0.75;
this.health = 2;
this.reward = 10;
this.penalty = 4;
}
/**
* Updates the current state of the slicer. The slicer moves towards its next target point in
* the polyline at its specified movement rate.
*/
@Override
public void update(Input input) {
super.update(input);
}
}