20 '''Those represents the x/y offsets to move to a specific direction.'''
21 dir_x = [ 0, 0, 1, 1, 1, 0, -1, -1, -1 ]
22 dir_y = [ 0, -1, -1, 0, 1, 1, 1, 0, -1 ]
25 '''This tries to move obj to the (x, y) location.
27 * 0: object is on the spot
28 * 1: object moved towards the goal
29 * 2: object's movement was blocked.
32 return obj.MoveTo(x, y)