All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.refcodes.checkerboard.Checkerboard Maven / Gradle / Ivy

Go to download

Artifact for providing some easy means to visualize (state of) board games or (state of) cellular automatons.

There is a newer version: 1.1.1
Show newest version
package org.refcodes.checkerboard;

import java.util.Map;

import org.refcodes.component.Component;
import org.refcodes.graphical.GridDimension.GridDimensionBuilder;
import org.refcodes.graphical.GridDimension.GridDimensionProperty;
import org.refcodes.graphical.GridModeAccessor.GridModeBuilder;
import org.refcodes.graphical.GridModeAccessor.GridModeProperty;
import org.refcodes.graphical.Position;
import org.refcodes.observer.Observable;

public interface Checkerboard extends Players, Observable>, GridDimensionProperty, GridDimensionBuilder>, GridModeProperty, GridModeBuilder>, Component {

	boolean hasAtPosition( Position aPos ) throws IndexOutOfBoundsException;

	boolean hasAtPosition( int aPosX, int aPosY ) throws IndexOutOfBoundsException;

	Player atPosition( Position aPos ) throws IndexOutOfBoundsException;

	Player atPosition( int aPosX, int aPosY ) throws IndexOutOfBoundsException;

	Map> getRow( int aRow ) throws IndexOutOfBoundsException;

	Map> getColumn( int aColumn ) throws IndexOutOfBoundsException;

	boolean hasAtTopOf( Position aPos ) throws IndexOutOfBoundsException;

	Player atTopOf( Position aPos ) throws IndexOutOfBoundsException;

	boolean hasAtTopRightOf( Position aPos ) throws IndexOutOfBoundsException;

	Player atTopRightOf( Position aPos ) throws IndexOutOfBoundsException;

	boolean hasAtRightOf( Position aPos ) throws IndexOutOfBoundsException;

	Player atRightOf( Position aPos ) throws IndexOutOfBoundsException;

	boolean hasAtBottomRightOf( Position aPos ) throws IndexOutOfBoundsException;

	Player atBottomRightOf( Position aPos ) throws IndexOutOfBoundsException;

	boolean hasAtBottomOf( Position aPos ) throws IndexOutOfBoundsException;

	Player atBottomOf( Position aPos ) throws IndexOutOfBoundsException;

	boolean hasAtBottomLeftOf( Position aPos ) throws IndexOutOfBoundsException;

	Player atBottomLeftOf( Position aPos ) throws IndexOutOfBoundsException;

	boolean hasAtLeftOf( Position aPos ) throws IndexOutOfBoundsException;

	Player atLeftOf( Position aPos ) throws IndexOutOfBoundsException;

	boolean hasAtTopLeftOf( Position aPos ) throws IndexOutOfBoundsException;

	Player atTopLeftOf( Position aPos ) throws IndexOutOfBoundsException;
}