Parse a YAML specification of a location into this object.

def parse_yaml(self, y):
        '''Parse a YAML specification of a location into this object.'''
        self.x = int(y['x'])
        self.y = int(y['y'])
        self.height = int(y['height'])
        self.width = int(y['width'])
        self.direction = dir.from_string(y['direction'])
        return self