1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package net.sf.magicproject.action.handler;
20
21 import net.sf.magicproject.action.context.ActionContextWrapper;
22 import net.sf.magicproject.clickable.ability.Ability;
23 import net.sf.magicproject.event.context.ContextEventListener;
24
25 /***
26 * @author <a href="mailto:fabdouglas@users.sourceforge.net">Fabrice Daugan </a>
27 * @since 0.86
28 */
29 public interface Replayable {
30
31 /***
32 * Generate event associated to this action. Only one or several events are
33 * generated and may be collected by event listeners. Then play this action
34 *
35 * @param actionContext
36 * the context containing data saved by this action during the
37 * 'choose" proceess.
38 * @param ability
39 * is the ability owning this test. The card component of this
40 * ability should correspond to the card owning this test too.
41 * @param context
42 * is the context attached to this action.
43 * @return true if the stack can be resolved just after this call.
44 */
45 boolean replay(ActionContextWrapper actionContext,
46 ContextEventListener context, Ability ability);
47
48 }