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 boolean
activeEdgesContains
(Edge edge) protected static boolean
activeTerminalsContains
(Node node) getColor()
int
int
int
abstract boolean
isOn()
static void
static void
void
-
Constructor Details
-
Segment
Basic constructor for theEdge
class- 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()
-