Target#
- class curiosity_gym.core.objects.Target(position: tuple[int, int], color: int = 0, state: int = 0)#
Grid object representing a task objective of the environment.
Is used to specify a target location that an agent shoud reach to gain a reward. Can also be used in combination with other objects to define more complex task objectives.
Methods
Return a tuple that identifies the grid object and its state in the enviroment.
Interact with agent.
Determine whether grid object is harmful to the agent.
Target grid objects are always walkable.
Render grid object in PyGame.
Reset attributes of the grid object to their starting values.
Simulate how grid object would change if a given action were taken.
Compute grid object changes after single timestep.
Attributes
id_mapDictionary for all ids and their corresponding subclasses.
identifierUnique id number for each subclass.