Пример #1
0
 public MovSimStat[] futurePos(int steps, AdvancedRobot b, double maxVel, double maxTurnRate) {
   return futurePos(
       steps,
       b.getX(),
       b.getY(),
       b.getVelocity(),
       maxVel,
       b.getHeadingRadians(),
       b.getDistanceRemaining(),
       b.getTurnRemainingRadians(),
       maxTurnRate,
       b.getBattleFieldWidth(),
       b.getBattleFieldHeight());
 }
Пример #2
0
  public DookiCape(AdvancedRobot robot, boolean mc) {
    DUtils.setBattleFieldWidth(robot.getBattleFieldWidth());
    DUtils.setBattleFieldHeight(robot.getBattleFieldHeight());
    _mcMode = mc;

    _waves = new ArrayList();
    _waveRegisters = new ArrayList();
    _bulletHitRegisters = new ArrayList();

    _flattenerEnabled = false;
    _currentDistancer = _subtleDistancer = new SubtleDistancing();
    _aggressiveDistancer = new AggressiveDistancing();

    _renderables = new Vector();

    initializeSurfBuffers();
    reset(robot);
  }