(no commit message)
authorakhmetovlz
Sun, 19 Jun 2011 17:21:54 +0400
changeset 857292b7aea7e3
parent 84 f247a56bde48
child 86 22bad86100ac
(no commit message)
src/main/java/ru/alphatech/icfpc/policy/OneArgumentCardsPolicy.java
src/main/java/ru/alphatech/icfpc/policy/ZombiePolicy.java
     1.1 --- a/src/main/java/ru/alphatech/icfpc/policy/OneArgumentCardsPolicy.java	Sun Jun 19 17:13:33 2011 +0400
     1.2 +++ b/src/main/java/ru/alphatech/icfpc/policy/OneArgumentCardsPolicy.java	Sun Jun 19 17:21:54 2011 +0400
     1.3 @@ -35,10 +35,11 @@
     1.4  	private int targetSlotIndex = -1;
     1.5  	
     1.6  	
     1.7 -	public OneArgumentCardsPolicy(TYPE type, int processingSlot, int target) {
     1.8 +	public OneArgumentCardsPolicy(TYPE type, int processingSlot, int target, int registerIndex) {
     1.9  		this.type = type;
    1.10  		this.processingSlotIndex = processingSlot;
    1.11  		this.targetSlotIndex = target;
    1.12 +		this.registerIndex = registerIndex;
    1.13  	}
    1.14  	
    1.15  	public ICard getCard(){
    1.16 @@ -73,7 +74,7 @@
    1.17  	public ArrayList<Batch> getBatches() {
    1.18  		ArrayList<Batch> retArray = new ArrayList<Batch>();
    1.19  		
    1.20 -		retArray.addAll(numberIntoSlotField(Run.getRegisterByIndex(0), targetSlotIndex));
    1.21 +		retArray.addAll(numberIntoSlotField(Run.getRegisterByIndex(registerIndex), targetSlotIndex));
    1.22  		
    1.23  		Slot processingSlot = Run.getProponent().getSlot(processingSlotIndex);
    1.24  		IValue slotValue = processingSlot.getValue();
     2.1 --- a/src/main/java/ru/alphatech/icfpc/policy/ZombiePolicy.java	Sun Jun 19 17:13:33 2011 +0400
     2.2 +++ b/src/main/java/ru/alphatech/icfpc/policy/ZombiePolicy.java	Sun Jun 19 17:21:54 2011 +0400
     2.3 @@ -9,7 +9,6 @@
     2.4  
     2.5  	@Override
     2.6  	public ArrayList<Batch> getBatches() {
     2.7 -		// TODO Auto-generated method stub
     2.8  		return null;
     2.9  	}
    2.10