package RCX3.docs; import josx.platform.rcx.*; /** *Manages listener responses and primary directives. */ class PrettyBoy { public static boolean lightFlag; /** *Instructions for set up and launch. */ private static void go(){ Senses.init(); Pilot.init(); TextLCD.print("GO?"); try{ Button.VIEW.waitForPressAndRelease(); }catch (InterruptedException ie){} FollowTheBlackLine ftbl = new FollowTheBlackLine(); lightFlag = Senses.getBlackOrWhite(); ftbl.start(); }//go public static void main (String [] args) throws Exception { go(); try{ Button.RUN.waitForPressAndRelease(); }catch (InterruptedException ie){} Senses.deactivateSensors(); }//main /** *Triggered by ProxListener when an object is detected. */ public static void objectNear(){ //Pilot.stopAll(); Sound.twoBeeps(); } }