Crossfire Server, Trunk
CFMove Namespace Reference

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 ]
 

Function Documentation

◆ get_object_to()

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().

+ Here is the caller graph for this function:

Variable Documentation

◆ dir_x

list CFMove.dir_x = [ 0, 0, 1, 1, 1, 0, -1, -1, -1 ]

Definition at line 21 of file CFMove.py.

◆ dir_y

list CFMove.dir_y = [ 0, -1, -1, 0, 1, 1, 1, 0, -1 ]

Definition at line 22 of file CFMove.py.