jtge.util.grid.directiongroup
Class FlatShiftedHexagonDirectionGroup

java.lang.Object
  extended byjtge.util.grid.directiongroup.AbstractDirectionGroup
      extended byjtge.util.grid.directiongroup.AbstractFlatHexagonDirectionGroup
          extended byjtge.util.grid.directiongroup.FlatShiftedHexagonDirectionGroup
All Implemented Interfaces:
IDirectionGroup

public class FlatShiftedHexagonDirectionGroup
extends AbstractFlatHexagonDirectionGroup

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

Version:
$Id: FlatShiftedHexagonDirectionGroup.java,v 1.2 2005/09/09 22:36:05 mat007 Exp $
Author:
Jean-Laurent Fabre de Morlhon

Constructor Summary
FlatShiftedHexagonDirectionGroup()
           
 
Method Summary
protected  boolean shift(Coordinate coordinate)
          Test if a given coordinate must be shifted.
 
Methods inherited from class jtge.util.grid.directiongroup.AbstractFlatHexagonDirectionGroup
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

FlatShiftedHexagonDirectionGroup

public FlatShiftedHexagonDirectionGroup()
Method Detail

shift

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

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


Copyright © 2003-2005 . All Rights Reserved.