1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.cb.jset.server;
21
22 import org.cb.jset.CardProperties;
23 import org.cb.jset.CardSet;
24
25 import java.rmi.Remote;
26 import java.rmi.RemoteException;
27
28 /***
29 * Interface that remote Board listeners must implement.
30 * <p>
31 * @author jerome@coffeebreaks.org - last modified by $LastChangedBy: jerome $
32 * @version $Id: RemoteSetGameBoardListener.java 118 2004-04-14 23:17:27Z jerome $
33 */
34 public interface RemoteSetGameBoardListener extends Remote
35 {
36 /***
37 * Called to notify that the specified cards were added to the board.
38 * @param cards the cards that were added to the board.
39 * @throws java.rmi.RemoteException upon communication related exception on this remote call
40 * @see org.cb.jset.SetGameBoardListener#cardsAdded(org.cb.jset.CardProperties[])
41 */
42 void cardsAdded(CardProperties[] cards) throws RemoteException;
43
44 /***
45 * Called to notify that the specified set was removed from the board.
46 * The set should be a {@link CardSet#isMatching() matching set}.
47 * @param set the set that was removed from the board
48 * @throws java.rmi.RemoteException upon communication related exception on this remote call
49 * @see org.cb.jset.SetGameBoardListener#setRemoved(org.cb.jset.CardSet)
50 */
51 void setRemoved(CardSet set) throws RemoteException;
52 }