nmmo.core.map module#

class nmmo.core.map.Map(config, realm)#

Bases: object

Map object representing a list of tiles

Also tracks a sparse list of tile updates

harvest(r, c, deplete=True)#

Called by actions that harvest a resource tile

is_valid_pos(row, col)#

Check if a position is valid

property packet#

Packet of degenerate resource states

property repr#

Flat matrix of tile material indices

reset(map_id)#

Reuse the current tile objects to load a new map

step()#

Evaluate updatable tiles