Package ch.epfl.cs107.play.areagame
Class AreaGraph.AreaNode
java.lang.Object
ch.epfl.cs107.play.areagame.AreaGraph.AreaNode
- Enclosing class:
AreaGraph
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAreaNode(DiscreteCoordinates coordinates, boolean hasLeftEdge, boolean hasUpEdge, boolean hasRightEdge, boolean hasDownEdge) Default AreaNode Constructor -
Method Summary
-
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 nullhasLeftEdge- (boolean): indicate if directed edge to the left direction existshasUpEdge- (boolean): indicate if directed edge to the up direction existshasRightEdge- (boolean): indicate if directed edge to the right direction existshasDownEdge- (boolean): indicate if directed edge to the down direction exists
-
-
Method Details
-
setSignal
-
isActive
public boolean isActive()
-