historic_bruno
b4503bb61e
Changes random maps to XZ coordinates, matching the engine. More documentation for rmgen library. This was SVN commit r9271.
27 lines
663 B
JavaScript
27 lines
663 B
JavaScript
/////////////////////////////////////////////////////////////////////
|
|
// PointXZ
|
|
//
|
|
// Class for representing 2D point in tile coordinates (X,Z)
|
|
//
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
function PointXZ(x, z)
|
|
{
|
|
this.x = (x !== undefined ? x : 0);
|
|
this.z = (z !== undefined ? z : 0);
|
|
}
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
// Point3D
|
|
//
|
|
// Class for representing generic 3D point
|
|
//
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
function Point3D(x, y, z)
|
|
{
|
|
this.x = (x !== undefined ? x : 0);
|
|
this.y = (y !== undefined ? y : 0);
|
|
this.z = (z !== undefined ? z : 0);
|
|
}
|