The road package is implemented in the file core/road.js. A compressed version of the package is available in the file core/compressed/road.js. The package is needed in every main content page that has to display a road map. It is not needed in controllers- and inventory pages. Load this package after the dynamic.js package.
Add a road to your page, to create a net, which can be used by cars and other vehicles and characters. The road creates the nodes and connections of a MacaoNet. You may also create a MacaoRoadGrid, which displays the images of the road.
See the class description of MacaoRoadGrid on how to add a road to your page and how to use the Road Editor. See the class description of MacaoRoad, on how to implement your own road elements.
Class Summary | |
---|---|
MacaoPage |
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. |
MacaoRoad |
The class MacaoRoad is the super class for all classes, which are implementing road types. |
MacaoRoadGrid |
Add a road to your page, to create a net, which can be used by cars, other vehicles and characters. The road creates the nodes and connections of a MacaoNet. You may also create a MacaoRoadGrid, which displays the images of the road. |