equal
deleted
inserted
replaced
33 private int processingSlotIndex = -1; |
33 private int processingSlotIndex = -1; |
34 private int registerIndex = -1; |
34 private int registerIndex = -1; |
35 private int targetSlotIndex = -1; |
35 private int targetSlotIndex = -1; |
36 |
36 |
37 |
37 |
38 public OneArgumentCardsPolicy(TYPE type, int processingSlot, int target) { |
38 public OneArgumentCardsPolicy(TYPE type, int processingSlot, int target, int registerIndex) { |
39 this.type = type; |
39 this.type = type; |
40 this.processingSlotIndex = processingSlot; |
40 this.processingSlotIndex = processingSlot; |
41 this.targetSlotIndex = target; |
41 this.targetSlotIndex = target; |
|
42 this.registerIndex = registerIndex; |
42 } |
43 } |
43 |
44 |
44 public ICard getCard(){ |
45 public ICard getCard(){ |
45 switch (type) { |
46 switch (type) { |
46 case DEC: |
47 case DEC: |
71 |
72 |
72 @Override |
73 @Override |
73 public ArrayList<Batch> getBatches() { |
74 public ArrayList<Batch> getBatches() { |
74 ArrayList<Batch> retArray = new ArrayList<Batch>(); |
75 ArrayList<Batch> retArray = new ArrayList<Batch>(); |
75 |
76 |
76 retArray.addAll(numberIntoSlotField(Run.getRegisterByIndex(0), targetSlotIndex)); |
77 retArray.addAll(numberIntoSlotField(Run.getRegisterByIndex(registerIndex), targetSlotIndex)); |
77 |
78 |
78 Slot processingSlot = Run.getProponent().getSlot(processingSlotIndex); |
79 Slot processingSlot = Run.getProponent().getSlot(processingSlotIndex); |
79 IValue slotValue = processingSlot.getValue(); |
80 IValue slotValue = processingSlot.getValue(); |
80 |
81 |
81 if(slotValue instanceof Value){ |
82 if(slotValue instanceof Value){ |