jtge.util.grid.directiongroup
Class PeakShiftedHexagonDirectionGroup

java.lang.Object
  extended byjtge.util.grid.directiongroup.AbstractDirectionGroup
      extended byjtge.util.grid.directiongroup.AbstractPeakHexagonDirectionGroup
          extended byjtge.util.grid.directiongroup.PeakShiftedHexagonDirectionGroup
All Implemented Interfaces:
IDirectionGroup

public class PeakShiftedHexagonDirectionGroup
extends AbstractPeakHexagonDirectionGroup

An HexagonDirectionGroup to be used with peak-shifted hexagon grid.

Version:
$Id: PeakShiftedHexagonDirectionGroup.java,v 1.1 2005/09/09 18:24:28 mat007 Exp $
Author:
Jean-Laurent Fabre de Morlhon

Constructor Summary
PeakShiftedHexagonDirectionGroup()
           
 
Method Summary
protected  boolean shift(Coordinate coordinate)
          Test if a given coordinate must be shifted.
 
Methods inherited from class jtge.util.grid.directiongroup.AbstractPeakHexagonDirectionGroup
transform, transform, transform, transform, transform, transform, transform, transform
 
Methods inherited from class jtge.util.grid.directiongroup.AbstractDirectionGroup
add, getNames, getShortNames, iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeakShiftedHexagonDirectionGroup

public PeakShiftedHexagonDirectionGroup()
Method Detail

shift

protected final boolean shift(Coordinate coordinate)
Test if a given coordinate must be shifted.

Specified by:
shift in class AbstractPeakHexagonDirectionGroup
Parameters:
coordinate - the coordinate
Returns:
whether the coordinate must be shifted or not


Copyright © 2003-2005 . All Rights Reserved.