temporary fix for javadoc issues, will revisit later

This commit is contained in:
Gered 2017-04-12 12:32:18 -04:00
parent d4b908f60b
commit 13ff030393
4 changed files with 2 additions and 44 deletions

View file

@ -16,7 +16,7 @@ import java.io.PrintStream;
*/ */
public abstract class Mirror { public abstract class Mirror {
private static final boolean WRITE_DOC = true; private static final boolean WRITE_DOC = false; // TODO: need to fix encoding / special character issues before we can leave enabled
private static final boolean FORCE_WEB_DOCUMENTATION = true; private static final boolean FORCE_WEB_DOCUMENTATION = true;

View file

@ -4,7 +4,7 @@ package bwapi;
* Common ancestor for location based objects to simplify distance computation. * Common ancestor for location based objects to simplify distance computation.
* This will be refactored into interface with default methods when java 8 becomes widely used. * This will be refactored into interface with default methods when java 8 becomes widely used.
* *
* Idea by Rafał Poniatowski * Idea by Rafa³ Poniatowski
*/ */
public abstract class AbstractPoint<T extends AbstractPoint> { public abstract class AbstractPoint<T extends AbstractPoint> {

View file

@ -13,12 +13,6 @@ public class Color {
private int r, g, b; private int r, g, b;
/**
* Create a color using the color in the palette that is closest to the RGB color specified. This will check a number of colors in the pallet to see which is closest to the specified color so this function is relatively slow.
* @param r
* @param g
* @param b
*/
public Color(int r, int g, int b) { public Color(int r, int g, int b) {
this.r = r; this.r = r;
this.g = g; this.g = g;

View file

@ -11,42 +11,6 @@ import java.util.*;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import java.util.zip.*; import java.util.zip.*;
/**
* <p>The API entry point. Standard use case:</p>
* <ul>
* <li>Create a Mirror object and use {@link #getModule()} and then set an {@link AIModule}'s {@link BWEventListener}<br/>
* <li>Call {@link #startGame()} to init the API and connect to Broodwar, then launch Broodwar from ChaosLauncher.</li>
* <li>In you {@link BWEventListener#onStart()} method, receive the Game object by calling {@link #getGame()}</li>
* </ul>
* <br/>
* <b>Example</b>
* <pre>
* {@code
*
* mirror.getModule().setEventListener(new DefaultBWListener()
* {
* public void onStart() {
* game = mirror.getGame();
* self = game.self();
* //initialization
* ....
* }
*
* public void onUpdate() {
* for (Unit myUnit : self.getUnits()) {
* //give orders to unit
* ...
* }
* }
* });
* }
* mirror.startGame();
* </pre>
* <p><b>Note:</b> The Game object is initialized during the {@link #startGame()} as well as other BWMirror API's constants.
* Do not use any API releated methods/fields prior to {@link #startGame()}.</p>
*/
public class Mirror { public class Mirror {
private Game game; private Game game;