org.vizzini.game.boardgame.chess
Class SliderTokenSupport

java.lang.Object
  extended by org.vizzini.game.boardgame.chess.SliderTokenSupport

public class SliderTokenSupport
extends Object

Provides convenience methods for slider tokens.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Method Summary
static SliderTokenSupport getInstance()
          Return the singleton instance.
 void markBiaxialPositions(IChessEnvironment board, BitSet bitSet, IntegerPosition position)
          Mark all possible biaxial positions from the given position in the given bitset.
 void markTriaxialPositions(IChessEnvironment board, BitSet bitSet, IntegerPosition position)
          Mark all possible triaxial positions from the given position in the given bitset.
 void markUniaxialPositions(IChessEnvironment board, BitSet bitSet, IntegerPosition position)
          Mark all possible uniaxial positions from the given position in the given bitset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SliderTokenSupport getInstance()
Return the singleton instance.

Since:
v0.3

markBiaxialPositions

public void markBiaxialPositions(IChessEnvironment board,
                                 BitSet bitSet,
                                 IntegerPosition position)
Mark all possible biaxial positions from the given position in the given bitset.

Parameters:
board - Chess environment.
bitSet - Bitset.
position - Token position.
Since:
v0.3

markTriaxialPositions

public void markTriaxialPositions(IChessEnvironment board,
                                  BitSet bitSet,
                                  IntegerPosition position)
Mark all possible triaxial positions from the given position in the given bitset.

Parameters:
board - Chess environment.
bitSet - Bitset.
position - Token position.
Since:
v0.3

markUniaxialPositions

public void markUniaxialPositions(IChessEnvironment board,
                                  BitSet bitSet,
                                  IntegerPosition position)
Mark all possible uniaxial positions from the given position in the given bitset.

Parameters:
board - Chess environment.
bitSet - Bitset.
position - Token position.
Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02