Example #1
0
 /** Returns the total energy used so far by the Robot. */
 @Override
 public float getEnergyConsumption() {
   return robot.getTotalEnergy();
 }
Example #2
0
 private void updateHandlerProgress() {
   Message msg = new Message();
   msg.arg1 = (int) robot.getTotalEnergy();
   handler.sendMessage(msg);
 }