* I was thinking about this the other day. It would be a great idea. Once I actualy get gl4java on my machine, or David Alves releases his new JOGL version, im probably going to be drawing loads of statistical graphs and real time data. It would be usefull to display this in a seperate window so that I can still see the bots, otherwise I think the battle window is going to be a mite crowded. Any plans to implement this David? --wolfman. |
You should be able to just include the robocode.jar file and the RobocodeGLV014 classes, but you're right, it does need to be packaged better. I'll look into packaging it as a jar. --David Alves
I thought taht, but when I tried it, no luck. I cant remember exactly what the problem was tho. Helpfull I know. :) -wolfman
Try this: From the command-line, create your jar (all one line -- broken for readability)
jar cvf robocodeGL.jar robocode\robocodeGL\*.class robocode\robocodeGL\system\*.class robocode\battleview\BattleViewRenderer?.classInclude the .java files to include the source.
Then have Eclipse point to robocodeGL.jar. --JPrideaux
robocode.peer.robot.RobotStatistics
, just change this method:
public double getTotalScore() { return totalScore; }to this:
public double getTotalScore() { return totalScore + bulletDamageScore + rammingDamageScore + survivalScore + winnerScore + killedEnemyRammingScore + killedEnemyBulletScore; }Then add this to the end of the
generateTotals
method:
bulletDamageScore = rammingDamageScore = survivalScore = winnerScore = killedEnemyRammingScore = killedEnemyBulletScore;This seems to not change any other values used or displayed in the game. -- Kawigi
battle.getManager().getWindowManager().showResultsDialog(battle);...would have to go somewhere that a Battle object exists that has security permissions to create frames and start threads. What do you think? You could actually see leader changes and hits with scores in nearly real time ;-) (of course, a few more quick tweaks would have to be made in the RobotStatistics? class, and the ResultsDialog? class would either have to be threaded or it would need an additional update method and the thread could be somewhere else. -- Kawigi
You can turn on "show scores" in 0.1.4 to see total scores. As for your suggestion, I'd rather not modify any more of Robocode than is absolutely necessary until the source code is released. Once that happens, I think this is a great idea! :-) --David Alves