equal
deleted
inserted
replaced
|
1 package ru.alphatech.icfpc.policy; |
|
2 |
|
3 import java.util.ArrayList; |
|
4 |
|
5 import ru.alphatech.icfpc.game.Batch; |
|
6 import ru.alphatech.icfpc.game.Slot; |
|
7 |
|
8 |
|
9 public class AttackHelpDelayPolicy extends AttackHelpPolicy{ |
|
10 |
|
11 private int registerFor3thParam = 2; |
|
12 |
|
13 /** |
|
14 * Сохранить как функцию в ячейке |
|
15 * При этом последний аргумент будет ссылать на регистр |
|
16 * пользователь сам должен менят регистр когда ему это понадобиться |
|
17 * первые 2 параметра статичны |
|
18 * @param type |
|
19 * @param processingSlot |
|
20 * @param donor |
|
21 * @param target |
|
22 * @param registerFor3thParam - номер регистра (не слота) |
|
23 */ |
|
24 public AttackHelpDelayPolicy(TYPE type, int processingSlot, int donor, int target, int registerFor3thParam) { |
|
25 super(type, processingSlot, donor, target, -1); |
|
26 this.registerFor3thParam = registerFor3thParam; |
|
27 } |
|
28 |
|
29 protected ArrayList<Batch> registerChangingBatches(Slot processingSlot){ |
|
30 return new ArrayList<Batch>(); |
|
31 } |
|
32 |
|
33 protected int get3thRegisterIndex(){ |
|
34 return registerFor3thParam; |
|
35 } |
|
36 |
|
37 protected boolean execute(){ |
|
38 return false; |
|
39 } |
|
40 } |