MCPcopy Create free account
hub / github.com/NetHack/NetHack / add_room

Function add_room

src/mklev.c:303–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void
304add_room(coordxy lowx, coordxy lowy, coordxy hix, coordxy hiy,
305 boolean lit, schar rtype, boolean special)
306{
307 struct mkroom *croom;
308
309#ifdef DEBUG
310 if (svn.nroom >= MAXNROFROOMS)
311 panic("level has too many rooms");
312#endif /*DEBUG*/
313 croom = &svr.rooms[svn.nroom];
314 do_room_or_subroom(croom, lowx, lowy, hix, hiy, lit, rtype, special,
315 (boolean) TRUE);
316 croom++;
317 croom->hx = -1;
318 svn.nroom++;
319}
320
321void
322add_subroom(struct mkroom *proom,

Callers 5

join_mapFunction · 0.85
makerogueroomsFunction · 0.85
makelevelFunction · 0.85
create_roomFunction · 0.85
lspo_regionFunction · 0.85

Calls 2

do_room_or_subroomFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected