Select Git revision
ApexSlicer.java
David Lin authored
ApexSlicer.java 801 B
package lists;
import bagel.Input;
import bagel.util.Point;
import bagel.util.Vector2;
import java.util.List;
/**
* A super slicer.
*/
public class ApexSlicer extends Slicer {
/**
* Creates a new Slicer
*
* @param polyline The polyline that the slicer must traverse (must have at least 1 point)
*/
public ApexSlicer(List<Point> polyline,String imageSrc) {
super(polyline, imageSrc);
this.speed = 0.375;
this.health = 25;
this.reward = 150;
this.penalty = 16;
}
/**
* 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);
}
}