if (Math.abs(gunToHeading) <= Rules.GUN_TURN_RATE_RADIANS) {
// Enough time to turn gun to position
// TODO Take my position into account
turnRight(robot, result.getFireDirection());
if (robot.getGunHeat() == 0 && result.getFirePower() > 0) {
Bullet bullet = robot.setFireBullet(result.getFirePower());
this.bulletFired(robot, bullet);
}
} else {
// Just turn gun as much as possible
if ((Math.abs(gunToHeading) < Math.PI && gunToHeading >= 0)