static AttackStrategy create(String params){
  String[] arg=params.split(",",-1);
  if (arg.length != 3) {
    throw new IllegalArgumentException("Invalid compound description: '" + params + "'");
  }
  Pair<String,String> desc=parseStrategy(arg[1]);
  TargetSelectionStrategy targeter=TargetSelectionStrategyFactory.get(desc.first(),desc.second());
  desc=parseStrategy(arg[2]);
  PositioningStrategy positioner=PositioningStrategyFactory.get(desc.first(),desc.second());
  return new CompoundAttackStrategy(getSubStrategy(arg[0]),targeter,positioner);
}

static AttackStrategy create ( String params ) { String [ ] arg = params . split ( "," , - 1 ) ; if ( arg . length != 3 ) { throw new IllegalArgumentException ( "Invalid compound description: '" + params + "'" ) ; } Pair < String , String > desc = parseStrategy ( arg [ 1 ] ) ; TargetSelectionStrategy targeter = TargetSelectionStrategyFactory . get ( desc . first ( ) , desc . second ( ) ) ; desc = parseStrategy ( arg [ 2 ] ) ; PositioningStrategy positioner = PositioningStrategyFactory . get ( desc . first ( ) , desc . second ( ) ) ; return new CompoundAttackStrategy ( getSubStrategy ( arg [ 0 ] ) , targeter , positioner ) ; }
create a new strategy .
