Rooms Module

class Rooms.Rooms[source]

Bases: object

Collection of room.

add(room)[source]

Add a room to collection.

Parameters:room – room class.
combine_roads(roads)[source]

Combine room and road. All room checks.

When has door, the room records each direction road id. :param roads: List of road.

delete(id)[source]

Get a room from collection.

Parameters:id – unique key of the room.
get(id)[source]

Get a room from collection.

Parameters:id – unique key of the room.
Return type:Room class
Returns:Return room. if it does not exist, return None.
get_all()[source]

Get all rooms from collection.

Return type:List
Returns:List of Room.
get_copy_all()[source]

Get all copy of rooms from collection. When performing a destructive operation , use this.

Return type:List
Returns:List of Room.

Previous topic

RoomSizeGenerator Module

Next topic

Tile Module

This Page