IRON
1.0
|
Public Member Functions | |
def | __init__ (self, PlacementTile|None tile) |
None | place (self, Tile tile) |
PlacementTile|None | tile (self) |
Private Attributes | |
_tile | |
Placeable is a base class of an object that might be Placed by a Placer.
def iron.placeable.Placeable.__init__ | ( | self, | |
PlacementTile | None | tile | ||
) |
Initialize a Placeable object. Args: tile (PlacementTile): A placeable object has a tile. This may be None during construction.
None iron.placeable.Placeable.place | ( | self, | |
Tile | tile | ||
) |
Place the object by assigning the object to a Tile. Args: tile (Tile): The placement tile. Raises: AlreadyPlacedError: If the object's tile is already set to a Tile object.
Reimplemented in iron.worker.Worker.
PlacementTile | None iron.placeable.Placeable.tile | ( | self | ) |
Return the tile of the placeable object. Returns: PlacementTile: The current placement of the object.
|
private |