"""Tile module for Yendoria.This module defines the Tile class which represents individual tileson the game map, including their visual and gameplay properties."""from..utils.constantsimport(CHAR_FLOOR,CHAR_WALL,COLOR_DARK_GROUND,COLOR_DARK_WALL,COLOR_LIGHT_GROUND,COLOR_LIGHT_WALL,COLOR_WHITE,)
[docs]classTile:""" A tile on the game map with visual and gameplay properties. Attributes: walkable (bool): True if entities can walk through this tile transparent (bool): True if this tile doesn't block field of view dark (TileGraphic): Graphics to use when tile is not visible light (TileGraphic): Graphics to use when tile is visible """def__init__(self,walkable:bool,transparent:bool,dark:tuple[int,tuple[int,int,int],tuple[int,int,int]],light:tuple[int,tuple[int,int,int],tuple[int,int,int]],):self.walkable=walkableself.transparent=transparentself.dark=darkself.light=light