public class Road
extends java.lang.Object
Constructor and Description |
---|
Road(playn.core.GroupLayer graphLayer)
Constructor of the Road
|
Modifier and Type | Method and Description |
---|---|
playn.core.ImageLayer |
getLayer() |
java.lang.Boolean |
isPlaced() |
boolean |
isVisible() |
void |
paint()
paints the road image and applies all the transformations
|
void |
paintVisibility(boolean visible)
sets the visibiliy(transparency level) of the Road image according to the given vibility flag
|
void |
placeRoad(Tuple2f pos1,
Tuple2f pos2)
places the positions of the road and set the placed flag to true
|
void |
setVisible(boolean visible)
Set the visibility flag to true
|
public Road(playn.core.GroupLayer graphLayer)
graphLayer
- - the GroupLayer of the graphpublic boolean isVisible()
public void setVisible(boolean visible)
visible
- - the boolean flagpublic void paintVisibility(boolean visible)
visible
- - the boolean flagpublic void placeRoad(Tuple2f pos1, Tuple2f pos2)
pos1
- - the coordinates of node1pos2
- - the coordinates of node2public void paint()
public java.lang.Boolean isPlaced()
public playn.core.ImageLayer getLayer()