Class Hexagonal

java.lang.Object
application.model.rules.misc.turmites.Neighbourhood
application.model.rules.misc.turmites.Hexagonal

public class Hexagonal
extends Neighbourhood
Implements turmites on the hexagonal neighbourhood
  • Constructor Summary

    Constructors 
    Constructor Description
    Hexagonal()  
  • Method Summary

    Modifier and Type Method Description
    int[] getActions()
    Gets the actions the turmite can take
    Coordinate[] getNeighbourhood()
    Gets the neighbourhood of the turmite
    int getNewDirection​(int action, int turmiteDirection)
    Gets the new direction of the turmite
    int getOppositeDirection​(int direction)
    Gets direction opposite to the direction passed in
    Tiling getTiling()
    Gets the tiling the neighbourhood applies to

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait