'Changes this room to show the wilderness map from other coordinates.
Args:
new_coordinates (tuple): coordinates as tuple of (x, y)
obj (Object): the object that moved into this room and caused the
coordinates to change'

def set_active_coordinates(self, new_coordinates, obj):

    rooms = self.wilderness.db.rooms
    del rooms[self.coordinates]
    self.ndb.active_coordinates = new_coordinates
    rooms[self.coordinates] = self
    for item in self.contents:
        if ((not item.destination) or (item.destination != item.location)):
            item.location = None
    for item in self.wilderness.get_objs_at_coordinates(new_coordinates):
        item.location = self
    for exit in self.exits:
        if (exit.destination != self):
            continue
        (x, y) = get_new_coordinates(new_coordinates, exit.key)
        valid = self.wilderness.is_valid_coordinates((x, y))
        if valid:
            exit.locks.add('traverse:true();view:true()')
        else:
            exit.locks.add('traverse:false();view:false()')
    self.wilderness.mapprovider.at_prepare_room(new_coordinates, obj, self)
