This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
JRummikub/src/jrummikub/model/Table.java

61 lines
1.3 KiB
Java
Raw Normal View History

package jrummikub.model;
/** Class administering the {@link Stone}s on the game-Table */
public class Table {
private StoneSet[] sets;
private Position[] positions;
// Constructor
public Table gameTable = new Table();
/**
* Removes {@link Stone} from the Table and returns it
*
* @param position
* {@link Position} of the selected {@link Stone}
*/
public Stone pickUp(Position position) {
}
/**
* Removes a {@link StoneSet} from the Table and returns it
*
* @param position
* {@link Position} of the selected {@link StoneSet}
*/
public StoneSet pickUpSet(Position position) {
}
/**
* Removes a part of a {@link StoneSet} from the Table and returns it
*
* @param from
* Start {@link Position} of the range
* @param to
* End {@link Position} of the range
*/
public StoneSet pickUpRange(Position from, Position to) {
}
/**
* Adds {@link StoneSet} to Table
*
* @param position
* Specifies {@link Position} to put the {@link StoneSet}
* @param stones
* The {@link StoneSet} to add to the Table
*/
public void drop(Position position, StoneSet stones) {
}
/** Tests the Table for rule conflicts by checking all the {@link StoneSets} */
public boolean isValid() {
}
}