Module ...
Generator interface that can use rooms
Functions
_M:canDoor (x, y) | Can we create a door (will it lead anywhere) |
_M:makePod (x, y, radius, room_id, data, floor, wall) | Easy way to make an irregular shapped room |
_M:markTunnel (x, y, xdir, ydir, id) | Marks a tunnel as a tunnel and the space behind it |
_M:randDir (sx, sy) | Random tunnel dir |
_M:roomAlloc (room, id, lev, old_lev, add_check) | Make up a room |
_M:roomGen (room, id, lev, old_lev) | Generates a room |
_M:roomPlace (room, id, x, y) | Place a room |
_M:tunnel (x1, y1, x2, y2, id, virtual) | Tunnel from x1,y1 to x2,y2 |
_M:tunnelDir (x1, y1, x2, y2) | Find the direction in which to tunnel |
Functions
- _M:canDoor (x, y)
-
Can we create a door (will it lead anywhere)
Parameters
- x:
- y:
- _M:makePod (x, y, radius, room_id, data, floor, wall)
-
Easy way to make an irregular shapped room
Parameters
- x:
- y:
- radius:
- room_id:
- data:
- floor:
- wall:
- _M:markTunnel (x, y, xdir, ydir, id)
-
Marks a tunnel as a tunnel and the space behind it
Parameters
- x:
- y:
- xdir:
- ydir:
- id:
- _M:randDir (sx, sy)
-
Random tunnel dir
Parameters
- sx:
- sy:
- _M:roomAlloc (room, id, lev, old_lev, add_check)
-
Make up a room
Parameters
- room:
- id:
- lev:
- old_lev:
- add_check:
- _M:roomGen (room, id, lev, old_lev)
-
Generates a room
Parameters
- room:
- id:
- lev:
- old_lev:
- _M:roomPlace (room, id, x, y)
-
Place a room
Parameters
- room:
- id:
- x:
- y:
- _M:tunnel (x1, y1, x2, y2, id, virtual)
-
Tunnel from x1,y1 to x2,y2
Parameters
- x1:
- y1:
- x2:
- y2:
- id:
- virtual:
- _M:tunnelDir (x1, y1, x2, y2)
-
Find the direction in which to tunnel
Parameters
- x1:
- y1:
- x2:
- y2: