src/main/java/ru/alphatech/icfpc/policy/AttackHelpPolicy.java
changeset 98 19dba9e387ce
parent 76 5955cb5e5ef3
child 101 4bb458c3548e
equal deleted inserted replaced
97:89f13f209302 98:19dba9e387ce
    65 	
    65 	
    66 	public ICard getCard(){
    66 	public ICard getCard(){
    67 		return type == TYPE.ATTACK ? new Attack() : new Help();
    67 		return type == TYPE.ATTACK ? new Attack() : new Help();
    68 	}
    68 	}
    69 	
    69 	
    70 	protected ArrayList<Batch> BcombineForFunctWith3ParamsInRegister(ICard function, Slot processingSlot){
    70 	protected ArrayList<Batch> BcombineForFunctWith3ParamsInRegister(ICard function, Slot processingSlot)
       
    71 	{
    71 		ArrayList<Batch> retArray = new ArrayList<Batch>();
    72 		ArrayList<Batch> retArray = new ArrayList<Batch>();
    72 		
    73 		
    73 		if(!(function instanceof Attack || function instanceof Help)){
    74 		if(!(function instanceof Attack || function instanceof Help)){
    74 			throw new ICFPCException();
    75 			throw new ICFPCException();
    75 		}
    76 		}