1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package net.sf.magicproject.token;
22
23 /***
24 * The available zone identifiants, and also special codes attached to the state
25 * in the zone.
26 *
27 * @author <a href="mailto:fabdouglas@users.sourceforge.net">Fabrice Daugan </a>
28 */
29 public interface IdZones {
30
31 /***
32 * The play zone
33 */
34 int PLAY = 0x00;
35
36 /***
37 * The hand zone
38 */
39 int HAND = 0x01;
40
41 /***
42 * The first available additional zone.
43 */
44 int FIRST_ADDITIONAL_ZONE = 0x02;
45
46 /***
47 * The last available additional zone.
48 */
49 int LAST_ADDITIONAL_ZONE = 0x08;
50
51 /***
52 * The side zone
53 */
54 int SIDE = 0x09;
55
56 /***
57 * The stack zone
58 */
59 int STACK = 0x0A;
60
61 /***
62 * The delayed buffer zone
63 */
64 int DELAYED = 0x0B;
65
66 /***
67 * The triggered buffer zone
68 */
69 int TRIGGERED = 0x0C;
70
71 /***
72 * Nb zones
73 */
74 int NB_ZONE = TRIGGERED+1;
75
76 /***
77 * Completly destructed
78 */
79 int NOWHERE = 0x0D;
80
81 /***
82 * The zone is determined during the runtime depending on the value on the
83 * context. Cannot be used outside an action in a replacement or triggered
84 * ability.
85 */
86 int CONTEXT = 0x0E;
87
88 /***
89 * No care zone
90 */
91 int ANYWHERE = 0x0F;
92
93 /***
94 * The must be tapped in play constraint
95 */
96 int PLAY_TAPPED = 0x10;
97
98 /***
99 * The must be untapped in play constraint
100 */
101 int PLAY_UNTAPPED = 0x20;
102
103 /***
104 * The zones name associated to zone names
105 */
106 String[] ZONE_NAMES = { "play", "hand", "side", "stack", "delayed buffer",
107 "triggered buffer", "nowhere", "playANDtapped", "playANDuntapped",
108 "anywhere", "context" };
109
110 /***
111 * The zones name associated to zone values (index)
112 */
113 int[] ZONE_VALUES = { PLAY, HAND, SIDE, STACK, DELAYED, TRIGGERED, NOWHERE,
114 PLAY_TAPPED, PLAY_UNTAPPED, ANYWHERE, CONTEXT };
115
116 }