GetFightersCountInRange(final ArrayList<ParserObject> args) {
   super();
   this.checkType(args);
   if (args.size() == 1) {
     this.m_maxRange = args.get(0);
   } else if (args.size() == 2) {
     this.m_maxRange = args.get(0);
     this.m_target = args.get(1).getValue().equalsIgnoreCase("target");
   } else if (args.size() == 3) {
     this.m_minRange = args.get(0);
     this.m_maxRange = args.get(1);
     this.m_target = args.get(2).getValue().equalsIgnoreCase("target");
   } else if (args.size() == 4) {
     this.m_minRange = args.get(0);
     this.m_maxRange = args.get(1);
     this.m_target = args.get(2).getValue().equalsIgnoreCase("target");
     this.m_inLine = args.get(3);
   } else if (args.size() == 5) {
     this.m_minRange = args.get(0);
     this.m_maxRange = args.get(1);
     this.m_target = args.get(2).getValue().equalsIgnoreCase("target");
     this.m_inLine = args.get(3);
     this.m_testLoS = args.get(4);
   }
 }
 public HasEffectWithActionId(final ArrayList<ParserObject> args) {
   super();
   this.m_useTarget = false;
   this.checkType(args);
   this.m_useTarget = args.get(0).getValue().equalsIgnoreCase("target");
   this.m_effectActionId = args.get(1);
 }
 public HasWorldProperty(final ArrayList<ParserObject> args) {
   super();
   final byte sigIdx = this.checkType(args);
   this.m_worldPropertyId = args.get(0);
   if (sigIdx == 1) {
     this.m_durationToCheck = args.get(1);
   }
   if (sigIdx == 2) {
     this.m_target = args.get(1).getValue().equalsIgnoreCase("target");
   }
 }
 public GetFightersLevelSum(final ArrayList<ParserObject> args) {
   super();
   if (args.isEmpty()) {
     return;
   }
   this.m_monsters = "monster".equalsIgnoreCase(args.get(0).getValue());
 }
 private Point3 getRandomCellInEffectArea(final FightMap fightMap) {
   final AreaOfEffect areaOfEffect = ((WakfuEffect) this.m_genericEffect).getAreaOfEffect();
   if (areaOfEffect.getType() == AreaOfEffectEnum.EMPTY) {
     return fightMap.getInsideRandomCell();
   }
   final Direction8 dir = this.m_caster.getDirection();
   final Point3 casterCell = this.m_caster.getPosition();
   final Iterable<int[]> iterable =
       ((WakfuEffect) this.m_genericEffect)
           .getAreaOfEffect()
           .getCells(
               this.m_targetCell.getX(),
               this.m_targetCell.getY(),
               this.m_targetCell.getZ(),
               casterCell.getX(),
               casterCell.getY(),
               casterCell.getZ(),
               dir);
   final ArrayList<int[]> cells = new ArrayList<int[]>();
   for (final int[] next : iterable) {
     final int cellX = next[0];
     final int cellY = next[1];
     if (!fightMap.isInMap(cellX, cellY)) {
       continue;
     }
     if (!fightMap.isInside(cellX, cellY)) {
       continue;
     }
     final short cellHeight = fightMap.getCellHeight(cellX, cellY);
     if (cellHeight == -32768) {
       continue;
     }
     cells.add(next);
   }
   if (cells.isEmpty()) {
     EnutrofDepositPlacement.m_logger.error(
         (Object)
             ("Pas de cellule trouvee pour le spawn d'un gisement " + areaOfEffect.getType()));
     return null;
   }
   return new Point3(cells.get(MathHelper.random(cells.size())));
 }
 public IsProtectorInFight(final ArrayList<ParserObject> args) {
   super();
   this.m_target =
       (this.checkType(args) == 0 && args.get(0).getValue().equalsIgnoreCase("target"));
 }