Talk:CalculatingScore

From Robowiki
Revision as of 15:20, 29 March 2008 by Jab (talk | contribs) (Is it possible to calculate the score for an AdvancedRobot?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Is it possible to calculate the score for an AdvancedRobot? I'm having problems with the HitRobotEvent

public void onHitRobot(HitRobotEvent e) {
   ramDamage[e.isMyFault() ? 0 : 1] += robocode.Rules.ROBOT_HIT_DAMAGE;
}

When isMyFault=false the enemy doesn't always get points for it. For instance a RamBot against SittingDuck. The underDevelopment class is here Talk:CalculatingScore/ScoreWithRamming