Skip to content
Snippets Groups Projects
Select Git revision
  • 1091c1c990d6a4cc64ee1ce3deff93839e45bb42
  • master default protected
2 results

MegaSlicer.java

Blame
  • 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);
        }
    
    
    }