mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-06 09:31:35 +02:00
Item debugging and New Entities
This commit is contained in:
@ -93,6 +93,10 @@ class Register:
|
||||
|
||||
class EntityRegister(Register):
|
||||
|
||||
@property
|
||||
def positions(self):
|
||||
return [agent.pos for agent in self]
|
||||
|
||||
def __init__(self):
|
||||
super(EntityRegister, self).__init__()
|
||||
self._tiles = dict()
|
||||
@ -150,7 +154,7 @@ class FloorTiles(EntityRegister):
|
||||
return tiles
|
||||
|
||||
|
||||
class Agents(Register):
|
||||
class Agents(EntityRegister):
|
||||
|
||||
_accepted_objects = Agent
|
||||
|
||||
|
Reference in New Issue
Block a user