Constructor
new module:common/game-map/Corridor(x, y, width, height, mapParams)
Constructor is private.
See Room or GameMap.getRect for instances of Corridor.
Parameters:
Name |
Type |
Description |
x |
|
|
y |
|
|
width |
|
|
height |
|
|
mapParams |
|
|
Properties:
Name |
Type |
Description |
x |
number
|
The x coordinate for the corridor to start |
y |
number
|
The y coordinate for the corridor to start |
width |
number
|
The width of the corridor |
height |
number
|
The height of the corridor |
weight |
number
|
The weight to use for graph algorithms |
type |
string
|
Always corridor |
- Source: