flaing / jnibwapi

Automatically exported from code.google.com/p/jnibwapi
0 stars 0 forks source link

Implementing canBuild #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
boolean canBuild(int id) method is not implemented. I believe this is a quick 
enhancement in the JNIBWAPI. Or is there another way how to decide whether 
there are all the prerequisites to build a building or unit?

Original issue reported on code.google.com by marek.re...@googlemail.com on 26 Feb 2013 at 11:20

GoogleCodeExporter commented 9 years ago
this is not a defect its an enhacement

Original comment by marek.re...@googlemail.com on 26 Feb 2013 at 9:33

GoogleCodeExporter commented 9 years ago
As far as I know it's not available yet. The only thing you can do is use 
canMake to determine of you can actually build it, but that won't tell you what 
the required units or tech are.

Original comment by martijn....@gmail.com on 27 Feb 2013 at 10:50

GoogleCodeExporter commented 9 years ago
As I see it now, you should use the UnitType's requiredUnits and requiredTech 
methods. However, these aren't implemented either, see Issue 27.

Original comment by martijn....@gmail.com on 27 Feb 2013 at 10:59

GoogleCodeExporter commented 9 years ago
For now I don't need to know what is required. canMake is completely 
satisfactory but this method is not implemented either? The only call that I 
can see is canBuildHere. 

Original comment by marek.re...@googlemail.com on 27 Feb 2013 at 11:09

GoogleCodeExporter commented 9 years ago
Which version/repository are you using? It should be available if you're using 
>= r35.

Original comment by martijn....@gmail.com on 27 Feb 2013 at 11:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have javabot.jar from the download section. I expected to that to be the 
lastest release. I need to sink with your svn repository then..

Original comment by marek.re...@googlemail.com on 27 Feb 2013 at 1:30

GoogleCodeExporter commented 9 years ago

Original comment by martijn....@gmail.com on 7 May 2013 at 3:33