Roads Module

class Roads.Roads[source]

Bases: object

Collections of Road.

add(road)[source]

Add a road to collection.

Parameters:tile – tile class.
get(id)[source]

Get a road from collection.

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

Get all roads from collection.

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

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

Return type:List
Returns:List of Road.

Previous topic

Road Module

Next topic

Room Module

This Page