Class ROT.Map.Feature.Corridor
Extends
ROT.Map.Feature.
Corridor
Defined in: <rot.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
ROT.Map.Feature.Corridor(startX, startY, endX, endY)
|
Method Attributes | Method Name and Description |
---|---|
create(digCallback)
|
|
createPriorityWalls(priorityWallCallback)
|
|
<static> |
ROT.Map.Feature.Corridor.createRandomAt(x, y, dx, dy, options)
|
debug()
|
|
isValid(isWallCallback, canBeDugCallback)
|
Class Detail
ROT.Map.Feature.Corridor(startX, startY, endX, endY)
- Parameters:
- {int} startX
- {int} startY
- {int} endX
- {int} endY
Method Detail
create(digCallback)
- Parameters:
- {function} digCallback
- Dig callback with a signature (x, y, value). Values: 0 = empty.
createPriorityWalls(priorityWallCallback)
- Parameters:
- priorityWallCallback
<static>
ROT.Map.Feature.Corridor.createRandomAt(x, y, dx, dy, options)
- Parameters:
- x
- y
- dx
- dy
- options
debug()
isValid(isWallCallback, canBeDugCallback)
- Parameters:
- isWallCallback
- canBeDugCallback