nmmo.core.observation module#
- class nmmo.core.observation.BasicObs(values, id_col)#
Bases:
object
- id(i)#
- index(val)#
- property len#
- class nmmo.core.observation.InventoryObs(values, id_col)#
Bases:
BasicObs
- id(i)#
- index(val)#
- property len#
- class nmmo.core.observation.Observation(config, current_tick: int, agent_id: int, tiles, entities, inventory, market)#
Bases:
object
- agent()#
- entity(entity_id)#
- tile(r_delta, c_delta)#
Return the array object corresponding to a nearby tile
- Args:
r_delta: row offset from current agent c_delta: col offset from current agent
- Returns:
Vector corresponding to the specified tile
- to_gym()#
Convert the observation to a format that can be used by OpenAI Gym