Class Segment
java.lang.Object
ch.ladestation.connectncharge.pui.Component
ch.ladestation.connectncharge.model.game.gamelogic.Segment
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanactiveEdgesContains(Edge edge) protected static booleanactiveTerminalsContains(Node node) getColor()intintintabstract booleanisOn()static voidstatic voidvoid
-
Constructor Details
-
Segment
Basic constructor for theEdgeclass- Parameters:
segmentIndex-startIndex- the start pixel of the edge.endIndex- the end pixel of the edgecolor- the color this segment will be visualized with
-
-
Method Details
-
setActiveEdgesRef
-
setActiveTerminalsRef
-
activeTerminalsContains
-
activeEdgesContains
-
getStartIndex
public int getStartIndex() -
getEndIndex
public int getEndIndex() -
getColor
-
setColor
-
isOn
public abstract boolean isOn() -
getSegmentIndex
public int getSegmentIndex()
-