Exemplo n.º 1
0
 private boolean hasDE(final BufferedImage image) throws BotBadBaseException {
   final int rgb = image.getRGB(DARKCHECK_POINT.x(), DARKCHECK_POINT.y());
   final Color deCheck = new Color(rgb);
   boolean result;
   if (platform.compareColor(deCheck, DARKCHECK_COLOR_YES, 7)) {
     result = true;
   } else if (platform.compareColor(deCheck, DARKCHECK_COLOR_NO, 7)) {
     result = false;
   } else {
     throw new BotBadBaseException("de: " + Integer.toHexString(deCheck.getRGB()));
   }
   return result;
 }
Exemplo n.º 2
0
 AttackScreen() {
   ENEMY_BASE_POLY.addPoint(ENEMY_BASE_LEFT.x(), ENEMY_BASE_LEFT.y());
   ENEMY_BASE_POLY.addPoint(ENEMY_BASE_TOP.x(), ENEMY_BASE_TOP.y());
   ENEMY_BASE_POLY.addPoint(ENEMY_BASE_RIGHT.x(), ENEMY_BASE_RIGHT.y());
   ENEMY_BASE_POLY.addPoint(ENEMY_BASE_BOTTOM.x(), ENEMY_BASE_BOTTOM.y());
 }