Package road

Class MacaoPage

Methods

The class MacaoPage is not a class itself, but it is used to document all the global properties and methods of the package core/road.js.

Method Summary
void addRoadType(String typeName, Function constructor)
     Call this method to add a new road type, which you have implemented.
MacaoRoad createRoad(String roadType, integer gridLeft, integer gridTop, integer orientation, optional String roadName)
     Call this method to add a new road element to your page.
MacaoRoad getRoadAt(integer gridX, integer gridY)
     Call this method to get a road element at a specified position in the road grid.
MacaoRoad getRoadByName(String roadName)
     Call this method, to get a road element by name.
integer getRoadCellSize()
     Call this method to get the size of a road grid cell in pixels.
void linkRoads()
     Call this method to link all road elements of the page.
void removeRoad(MacaoRoad road)
     Call this method to remove a road element from the page.
void setRoadMetrics(integer roadLeft, integer roadTop, integer cellSize)
     Call this method to define the position of the road grid and the cell size of a grid cell.

Method Details
void addRoadType(String typeName, Function constructor)

MacaoRoad createRoad(String roadType, integer gridLeft, integer gridTop, integer orientation, optional String roadName)

MacaoRoad getRoadAt(integer gridX, integer gridY)

MacaoRoad getRoadByName(String roadName)

integer getRoadCellSize()

void linkRoads()

void removeRoad(MacaoRoad road)

void setRoadMetrics(integer roadLeft, integer roadTop, integer cellSize)