From: Adam Megacz Date: Mon, 27 Jul 2009 03:23:39 +0000 (-0700) Subject: Add software interpreter implementation of Timer ship X-Git-Url: http://git.megacz.com/?p=fleet.git;a=commitdiff_plain;h=0bf7d3200502cb916a8266ed2c7e1f1b2f60f800 Add software interpreter implementation of Timer ship --- diff --git a/ships/Timer.ship b/ships/Timer.ship index 5eff426..0943bca 100644 --- a/ships/Timer.ship +++ b/ships/Timer.ship @@ -29,7 +29,10 @@ data out: out == Fleeterpreter ==================================================== - public void service() { } +public void service() { + if (!box_out.readyForDataFromShip()) return; + box_out.addDataFromShip(System.currentTimeMillis()); +} == FleetSim ==============================================================