Difference between revisions of "Talk:Starrynte/Melee Evaluator Source"

From Robowiki
Jump to navigation Jump to search
m (reformat code)
(moved to Talk:User:Starrynte/...)
 
Line 1: Line 1:
Nice work, I haven't used it because I've been kind of busy lately, but I will try it when I start working on melee again. I was thinking about writing some melee evaluation myself anyway, I already do with 1v1. One question though, why do you have
 
<pre>
 
public MeleeEvaluate(){
 
throw new RuntimeException("YOU MUST SPECIFY EXACTLY ONE (1) ADVANCED ROBOT AS A PARAMETER!");
 
}
 
</pre>
 
  
You could simply remove the default constructor, since you have a constructor with parameters Java won't create a default constructor for the class. So a call like <code>new MelleEvaluate()</code> would give compilation error instead of having to wait for a runtime error to find out. --[[User:Zyx|zyx]] 06:35, 14 September 2009 (UTC)
 

Latest revision as of 03:14, 15 September 2009