package model; import java.util.Random; public class AngryFink extends AbstractFink { // private String id; // private int maxAge; // private int age; // private int energy; private Random random; //private boolean lastPruned; public AngryFink( String id, int maxAge, Random random ) { super ( id, maxAge, random ); //super(id); //this.age = 0; //this.energy = 20; this.random = random; } public void prune(Fink other) { this.lastPruned = random.nextInt( 2 ) % 2 == 0; } }