diff --git a/Processing/chp9_ga/NOC_9_03_SmartRockets/Rocket.pde b/Processing/chp9_ga/NOC_9_03_SmartRockets/Rocket.pde index 5ce1b313..857e447b 100644 --- a/Processing/chp9_ga/NOC_9_03_SmartRockets/Rocket.pde +++ b/Processing/chp9_ga/NOC_9_03_SmartRockets/Rocket.pde @@ -133,6 +133,14 @@ class Rocket { popMatrix(); } + void highlight() { + stroke(0); + line(location.x,location.y,target.location.x,target.location.y); + fill(255,0,0,100); + ellipse(location.x,location.y,16,16); + + } + float getFitness() { return fitness; }