jtge.util.grid.directiongroup
Class FlatHexagonDirectionGroup

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

public class FlatHexagonDirectionGroup
extends AbstractFlatHexagonDirectionGroup

An HexagonDirectionGroup to be used with Flat hexagon grid.

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

Constructor Summary
FlatHexagonDirectionGroup()
           
 
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

FlatHexagonDirectionGroup

public FlatHexagonDirectionGroup()
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.