equal
deleted
inserted
replaced
3 * بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِِ |
3 * بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِِ |
4 * Time: 19.06.2011 18:55:25 |
4 * Time: 19.06.2011 18:55:25 |
5 ***********************************************/ |
5 ***********************************************/ |
6 package ru.alphatech.icfpc.cards; |
6 package ru.alphatech.icfpc.cards; |
7 |
7 |
|
8 //import java.util.ArrayList; |
|
9 |
8 import ru.alphatech.icfpc.game.ICFPCException; |
10 import ru.alphatech.icfpc.game.ICFPCException; |
9 import ru.alphatech.icfpc.game.Run; |
11 import ru.alphatech.icfpc.game.Run; |
10 |
12 |
11 |
13 |
12 public abstract class AbstractCard implements ICard |
14 public abstract class AbstractCard implements ICard |
13 { |
15 { |
|
16 // private ArrayList<ICard> hierarchy = new ArrayList<ICard>(); |
|
17 |
14 @Override |
18 @Override |
15 public void incAndTest() |
19 public void incAndTest() |
16 { |
20 { |
17 int callcount = Run.incCallCount(); |
21 int callcount = Run.incCallCount(); |
18 |
22 |
19 if(callcount > 1000) |
23 if(callcount > 1000) |
20 { |
24 { |
21 throw new ICFPCException(); |
25 throw new ICFPCException(); |
22 } |
26 } |
23 } |
27 } |
|
28 |
|
29 |
24 } |
30 } |