Class AreaGraph.AreaNode

java.lang.Object
ch.epfl.cs107.play.areagame.AreaGraph.AreaNode
Enclosing class:
AreaGraph

protected class AreaGraph.AreaNode extends Object
  • Constructor Details

    • AreaNode

      protected AreaNode(DiscreteCoordinates coordinates, boolean hasLeftEdge, boolean hasUpEdge, boolean hasRightEdge, boolean hasDownEdge)
      Default AreaNode Constructor
      Parameters:
      coordinates - (DiscreteCoordinate): Position in the graph of the node to add, used as key for the map, not null
      hasLeftEdge - (boolean): indicate if directed edge to the left direction exists
      hasUpEdge - (boolean): indicate if directed edge to the up direction exists
      hasRightEdge - (boolean): indicate if directed edge to the right direction exists
      hasDownEdge - (boolean): indicate if directed edge to the down direction exists
  • Method Details

    • setSignal

      public void setSignal(Logic signal)
    • isActive

      public boolean isActive()