Door Module

class Door.Door(x, y, direction)[source]

Bases: Tile.Tile

A door in Room. Door know the direction of way.

EAST = 'east'
NORTH = 'north'
SOUTH = 'south'
WEST = 'west'
is_horizontal()[source]

Whether the direction of the road or horizontal direction.

Return type:Boolean
Returns:Return True, the direction is east or west. Otherwise False.
is_vertical()[source]

Whether the direction of the road or vertical direction.

Return type:Boolean
Returns:Return True, the direction is north or south. Otherwise False.

Previous topic

Welcome to src’s documentation!

Next topic

Frame Module

This Page