nanduV / ai-contest

Automatically exported from code.google.com/p/ai-contest
0 stars 0 forks source link

Error in svn base. #209

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. get source from 
"http://code.google.com/p/ai-contest/source/browse/#svn/trunk/planet_wars/viz"
2. craete new java progect in eclipse

All sousces must be correct. But on line 29 of file RenderMap.java call 
undefined constructor for Game.java

Revision r500. Eclipse Version: Helios Release
Build id: 20100617-1415. JavaSE 1.6

The constructor Game(String, int, int) is undefined.
Avialable is Game.Game(String s, int maxGameLength, int mode, String 
logFilename)

Original issue reported on code.google.com by h6.msan...@gmail.com on 6 Nov 2010 at 7:34

GoogleCodeExporter commented 8 years ago
E:\svn\planet_wars\viz>javac *.java
RenderMap.java:29: cannot find symbol
symbol  : constructor Game(java.lang.String,int,int)
location: class Game
            Game game = new Game(args[0], 100, 0);
                        ^
RenderMap.java:62: 
Render(int,int,double,java.awt.image.BufferedImage,java.util.ArrayList<java.awt.
Color>,java.awt.Graphics2D) in Game cannot be applied to 
(int,int,double,<nulltype>,java.util.ArrayList<java.awt.Color>,java.awt.Color,ja
va.awt.Color,java.awt.Font,java.awt.Font,java.awt.Graphics2D)
                        game.Render(640, 480, 0.0, null, colors, bgColor, textColor,
                            ^
Note: CLViewer.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Viewer.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

E:\svn\planet_wars\viz>

Original comment by h6.msan...@gmail.com on 6 Nov 2010 at 8:29

GoogleCodeExporter commented 8 years ago
You are correct.  Please use the version of RenderMap from this branch:  
http://code.google.com/p/ai-contest/source/browse/branches/java-fixes/planet_war
s/viz/RenderMap.java

It will (read: might) get merged eventually.

Original comment by Euphora...@gmail.com on 7 Nov 2010 at 2:54