1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.cb.jset.client.model;
21
22 import org.cb.jset.CardProperties;
23 import org.cb.jset.CardSet;
24 import org.cb.jset.BoardException;
25
26 /***
27 * Interface that SetGameClientBoard implementations must inherit from.
28 *
29 * @author jerome@coffeebreaks.org - last modified by $LastModifiedBy$
30 * @version $Id: SetGameClientBoard.java 119 2004-04-14 23:20:09Z jerome $
31 */
32 public interface SetGameClientBoard
33 {
34 /***
35 * @return the number of cards on the board.
36 */
37 int getNbCards();
38 /***
39 * Add the specified cards onto the board.
40 * @param cards the cards to add.
41 * @throws NullPointerException if <code>cards</code> is <code>null</code> or if an element in the array is <code>null</code>.
42 */
43 void addCards(CardProperties[] cards);
44 /***
45 * Remove the specified matching set from the board.
46 * @param set the set to remove
47 * @throws BoardException when something fails
48 */
49 void removeSet(CardSet set) throws BoardException;
50 }