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.clickable.ability.Ability;
22 import net.sf.magicproject.event.context.ContextEventListener;
23
24 /***
25 * A standard action is an action that can be simply be played with a given
26 * context.
27 *
28 * @author <a href="mailto:fabdouglas@users.sourceforge.net">Fabrice Daugan </a>
29 * @since 0.90
30 */
31 public interface StandardAction {
32
33 /***
34 * Generate event associated to this action. Only one or several events are
35 * generated and may be collected by event listeners. Then play this action
36 *
37 * @param ability
38 * is the ability owning this test. The card component of this
39 * ability should correspond to the card owning this test too.
40 * @param context
41 * is the context attached to this action.
42 * @return true if the stack can be resolved just after this call.
43 */
44 boolean play(ContextEventListener context, Ability ability);
45
46 }