mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-05-22 14:56:43 +02:00
20 lines
523 B
Python
20 lines
523 B
Python
from marl_factory_grid.environment import constants as c
|
|
from marl_factory_grid.environment.entity.entity import Entity
|
|
from marl_factory_grid.utils.utility_classes import RenderEntity
|
|
|
|
|
|
class Wall(Entity):
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
"""
|
|
A class representing a wall entity in the environment.
|
|
"""
|
|
super().__init__(*args, **kwargs)
|
|
|
|
@property
|
|
def encoding(self):
|
|
return c.VALUE_OCCUPIED_CELL
|
|
|
|
def render(self):
|
|
return RenderEntity(c.WALL, self.pos)
|