historic_bruno
b4503bb61e
Changes random maps to XZ coordinates, matching the engine. More documentation for rmgen library. This was SVN commit r9271.
20 lines
405 B
JavaScript
20 lines
405 B
JavaScript
///////////////////////////////////////////////////////////////////////////
|
|
// Area
|
|
//
|
|
// Object representing a group of points/tiles
|
|
//
|
|
// points: Array of Point objects
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
function Area(points, id)
|
|
{
|
|
this.points = (points !== undefined ? points : []);
|
|
this.id = id;
|
|
}
|
|
|
|
Area.prototype.getID = function()
|
|
{
|
|
return this.id;
|
|
}
|