Crossfire Server, Trunk
combat_chicken Namespace Reference

Functions

def find_food (chicken, x, y)
 
def has_floor (x, y, name)
 
def move_chicken ()
 

Variables

dictionary eat = { 'orc\'s livers' : 5, 'orc\'s hearts' : 6, 'goblin\'s livers' : 1, 'goblin\'s hearts' : 2 }
 
string key_attacked = 'chicken_attacked'
 
string key_food = 'chicken_food'
 
string key_target = 'chicken_target'
 
string stay_on_floor = 'small_stones'
 

Function Documentation

◆ find_food()

def combat_chicken.find_food (   chicken,
  x,
  y 
)

Definition at line 29 of file combat_chicken.py.

Referenced by move_chicken().

+ Here is the caller graph for this function:

◆ has_floor()

def combat_chicken.has_floor (   x,
  y,
  name 
)

Definition at line 20 of file combat_chicken.py.

Referenced by move_chicken().

+ Here is the caller graph for this function:

◆ move_chicken()

def combat_chicken.move_chicken ( )

Definition at line 39 of file combat_chicken.py.

References find_food(), CFMove.get_object_to(), has_floor(), make_face_from_files.int, and make_face_from_files.str.

+ Here is the call graph for this function:

Variable Documentation

◆ eat

dictionary combat_chicken.eat = { 'orc\'s livers' : 5, 'orc\'s hearts' : 6, 'goblin\'s livers' : 1, 'goblin\'s hearts' : 2 }

Definition at line 17 of file combat_chicken.py.

◆ key_attacked

string combat_chicken.key_attacked = 'chicken_attacked'

Definition at line 14 of file combat_chicken.py.

◆ key_food

string combat_chicken.key_food = 'chicken_food'

Definition at line 13 of file combat_chicken.py.

◆ key_target

string combat_chicken.key_target = 'chicken_target'

Definition at line 12 of file combat_chicken.py.

◆ stay_on_floor

string combat_chicken.stay_on_floor = 'small_stones'

Definition at line 15 of file combat_chicken.py.