Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/rmgen/RandomMap.js
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | RandomMap.prototype.getEntityID = function() | ||||
return this.entityCount++; | return this.entityCount++; | ||||
}; | }; | ||||
RandomMap.prototype.isCircularMap = function() | RandomMap.prototype.isCircularMap = function() | ||||
{ | { | ||||
return !!g_MapSettings.CircularMap; | return !!g_MapSettings.CircularMap; | ||||
}; | }; | ||||
RandomMap.prototype.wantEvenPlayerSpacing = function() | |||||
{ | |||||
return !!g_MapSettings.EvenPlayerSpacing; | |||||
}; | |||||
RandomMap.prototype.getSize = function() | RandomMap.prototype.getSize = function() | ||||
{ | { | ||||
return this.size; | return this.size; | ||||
}; | }; | ||||
RandomMap.prototype.getArea = function(size = this.size) | RandomMap.prototype.getArea = function(size = this.size) | ||||
{ | { | ||||
return this.isCircularMap ? diskArea(size / 2) : size * size; | return this.isCircularMap ? diskArea(size / 2) : size * size; | ||||
▲ Show 20 Lines • Show All 356 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator