1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package net.sf.magicproject.event.context;
23
24 import net.sf.magicproject.clickable.targetable.card.MCard;
25
26 /***
27 * @author <a href="mailto:fabdouglas@users.sourceforge.net">Fabrice Daugan </a>
28 * @since 0.54
29 */
30 public interface ContextEventListener {
31
32 /***
33 * Verify the timestamp of the specified card
34 *
35 * @param card
36 * the concerned object.
37 * @return true if the timestamp is correct.
38 */
39 boolean checkTimeStamp(MCard card);
40
41 /***
42 * Decrement the reference counter for the current timestamp of this card.
43 */
44 void removeTimestamp();
45
46 /***
47 * Return the card source of the event attached to this context.
48 *
49 * @return the card source of the event attached to this context.
50 */
51 MCard getEventSource();
52
53 /***
54 * The zone attched to this context.
55 * @return zone attched to this context.
56 */
57 int getZoneContext();
58
59 }