mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-08 10:31:35 +02:00
Machines
This commit is contained in:
marl_factory_grid
__init__.py
reload_agent.pysetup.pyalgorithms
default_config.yamlenvironment
modules
quickstart.pyutils
@ -1,6 +1,5 @@
|
||||
from typing import List, Union
|
||||
|
||||
from marl_factory_grid.environment import constants as c
|
||||
from marl_factory_grid.environment.actions import Action
|
||||
from marl_factory_grid.environment.entity.entity import Entity
|
||||
from marl_factory_grid.utils.render import RenderEntity
|
||||
@ -8,6 +7,8 @@ from marl_factory_grid.utils import renderer
|
||||
from marl_factory_grid.utils.helpers import is_move
|
||||
from marl_factory_grid.utils.results import ActionResult, Result
|
||||
|
||||
from marl_factory_grid.environment import constants as c
|
||||
|
||||
|
||||
class Agent(Entity):
|
||||
|
||||
@ -24,7 +25,7 @@ class Agent(Entity):
|
||||
return self._observations
|
||||
|
||||
@property
|
||||
def can_collide(self):
|
||||
def var_can_collide(self):
|
||||
return True
|
||||
|
||||
def step_result(self):
|
||||
|
Reference in New Issue
Block a user