Crossfire Server, Trunk
|
Functions | |
def | get_object_to (obj, x, y) |
Variables | |
list | dir_x = [ 0, 0, 1, 1, 1, 0, -1, -1, -1 ] |
list | dir_y = [ 0, -1, -1, 0, 1, 1, 1, 0, -1 ] |
def CFMove.get_object_to | ( | obj, | |
x, | |||
y | |||
) |
This tries to move obj to the (x, y) location. Return value is: * 0: object is on the spot * 1: object moved towards the goal * 2: object's movement was blocked.
Definition at line 24 of file CFMove.py.
Referenced by combat_chicken.move_chicken(), farnass.move_cook(), lursendis.move_gourmet(), and rolanda.move_to_chair().