[Home]History of Falcon/WithShrinkingTricks

Robo Home | Changes | Preferences | AllPages


Revision 27 . . June 3, 2008 7:17 EST by adsl-69-111-56-9.dsl.pltn13.pacbell.net
Revision 26 . . September 28, 2005 18:31 EST by h162n2c1o1036.bredband.skanova.com [short explanation of Java keywords "static" and "final"]
  

Difference (from prior major revision) (no other diffs)

Added: 154a155,161

You can save about 3 bytes if you take this out:
wave.wBearingDirection = (e.getVelocity() * Math.sin(e.getHeadingRadians() - enemyAbsoluteBearing) < 0 ? -1.0/MIDDLE_FACTOR : 1.0/MIDDLE_FACTOR) ;

and stick it in here:
setTurnGunRightRadians(Utils.normalRelativeAngle(enemyAbsoluteBearing - getGunHeadingRadians() + wave.wBearingDirection * (mostVisited - MIDDLE_FACTOR)));

giving you
setTurnGunRightRadians(Utils.normalRelativeAngle(enemyAbsoluteBearing - getGunHeadingRadians() + (wave.wBearingDirection = (e.getVelocity() * Math.sin(e.getHeadingRadians() - enemyAbsoluteBearing) < 0 ? -1.0/MIDDLE_FACTOR : 1.0/MIDDLE_FACTOR) ) * (mostVisited - MIDDLE_FACTOR)));


Robo Home | Changes | Preferences | AllPages
Search: