git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@229 72836036-5685-4462-b002-a69064685172
32 lines
No EOL
727 B
Java
32 lines
No EOL
727 B
Java
package jrummikub.model;
|
|
|
|
/**
|
|
* Interface for the {@link Table} model
|
|
*/
|
|
public interface ITable extends IStoneTray<StoneSet> {
|
|
|
|
/**
|
|
* Removes {@link Stone} from the Table
|
|
*
|
|
* @param stone
|
|
* stone to pick up
|
|
*/
|
|
public void pickUpStone(Stone stone);
|
|
|
|
/**
|
|
* Tests the Table for rule conflicts by checking all the {@link StoneSet}
|
|
*
|
|
* @return whether all sets on the table are valid
|
|
*/
|
|
public boolean isValid();
|
|
|
|
/**
|
|
* Finds the {@link StoneSet} containing the given {@link Stone}
|
|
*
|
|
* @param stone
|
|
* stone whose set we're searching
|
|
* @return the set containing the stone or null if no set was found
|
|
*/
|
|
StoneSet findStoneSet(Stone stone);
|
|
|
|
} |