public void update(AdvancedRobot self) { if (self.getName().equals(name)) { tc.update( self.getTime(), self.getEnergy(), tm.predict_gun_heading(self, tc), tm.predict_gun_heat(self, tc), correct_angle(self.getHeadingRadians()), self.getVelocity(), self.getX(), self.getY()); mm.update(self); } }
public void update(ScannedRobotEvent sre, double self_h, double self_x, double self_y) { if (sre.getName().equals(name)) { tc.update( sre.getTime(), sre.getEnergy(), tm.predict_gun_heading(sre, tc), tm.predict_gun_heat(sre, tc), correct_angle(sre.getHeadingRadians()), sre.getVelocity(), getX(sre, self_h, self_x), getY(sre, self_h, self_y)); mm.update(sre); } }
public void update() { tc.update(); mm.update(); tm.update(); }