Modding:generator API (0.9.9.7)

From DoomRL Wiki

Revision as of 17:21, 25 January 2012 by Game Hunter (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The generator holds all of the ever-present functions used to create the random maps in DoomRL. It also contains a variety of helper functions, many of them useful if not vital to the creation of intricate

API

Level Interface
Coord Generator.safe_empty_coord()
Coord Generator.standard_empty_coord()
void Generator.set_permanence(Area ar, boolean val, Cell tile)
void Generator.setup_ice_event()
void Generator.setup_perma_event()
void Generator.setup_alarm_event()
void Generator.setup_deadly_air_event()
void Generator.setup_nuke_event()
void Generator.setup_flood_event()
integer Generator.being_weight()
integer Generator.item_amount()
void Generator.restore_walls()
list Generator.cell_set(list list)
void Generator.horiz_river(Cell cell, integer width, boolean bridge)
void Generator.vert_river(Cell cell, integer width, boolean bridge, Coord pos)
void Generator.generate_rivers(boolean allow_horiz, boolean allow_more)
void Generator.drunkard_walk(Coord start, integer steps, Cell cell, CellList ignore, boolean break_on_edge)
void Generator.drunkard_walks(integer amount, integer steps, Cell cell, CellList ignore, boolean break_on_edge, Area drunk_area)
void Generator.contd_drunkard_walks(integer amount, integer steps, Cell cell, Cell edges1, Cell edges2, CellList ignore, boolean break_on_edge)
void Generator.plot_lines(Coord where, Area larea, boolean horiz, Cell cell, Cell block)
void Generator.maze_dungeon(Cell floor_cell, Cell wall_cell, integer granularity, integer tries, integer minl, integer maxl)
void Generator.warehouse_fill(Cell wall_cell, Area fill_area, integer box_size, integer amount)
void Generator.add_room()
boolean Generator.add_rooms()
Room Generator.get_room(integer min_size, integer max_x, integer max_y)
void Generator.generate_tiled()
void Generator.generate_warehouse_dungeon()
void Generator.generate_tiled_arena_dungeon()
void Generator.generate_city_dungeon()
void Generator.generate_maze_dungeon()
void Generator.generate_archi_dungeon()
void Generator.generate_caves_dungeon()
void Generator.generate_arena_dungeon()
void Generator.generate_fluids(Area drunk_area)
void Generator.generate_barrels()
void Generator.generate_stairs()
void Generator.generate_special_stairs()
void Generator.generate_lever_room()
void Generator.generate_teleport_room()
void Generator.generate_ammo_room()
void Generator.generate_basain()
void Generator.generate_warehouse_room()
void Generator.generate_vault()
void Generator.add_room_feature(boolean no_monsters)
void Generator.handle_rooms(boolean no_monsters)
void Generator.place_player()
void Generator.roll_event()
void Generator.reset()
Personal tools