levelz.block¶
Classes¶
Represents a Block in a Level. |
|
Utility Object for representing a Level Block and its Coordinate. |
Module Contents¶
- class levelz.block.Block(name: str, properties: dict[str, object] = {})¶
Represents a Block in a Level.
- _name: str = ''¶
- _properties: dict[str, object]¶
- property name¶
- Returns the name of the Block.
- property properties¶
- Returns an immutable copy of the properties for the Block.
- __str__()¶
- __eq__(other)¶
- class levelz.block.LevelObject(block: Block | str, coordinate: levelz.coord.Coordinate | list[int | float])¶
Utility Object for representing a Level Block and its Coordinate.
- _coordinate: levelz.coord.Coordinate¶
- property block¶
- Returns the Block of the LevelObject.
- property coordinate¶
- Returns the Coordinate of the LevelObject.
- __str__()¶
- __eq__(other)¶