Crossfire Server, Trunk
roll-o-matic Namespace Reference

Functions

def abs_dir (d)
 
def do_handle ()
 
def do_shipwreck (me)
 
def find_floor (x, y)
 
def find_player ()
 
def handle_apply ()
 
def handle_move ()
 
def handle_say ()
 
def has_floor (x, y, name)
 
def is_floor (ob)
 
def start_move (want_dir)
 
def stop ()
 
def try_move (check_directions, want_dir)
 

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 ]
 
 evt = Crossfire.WhatIsEvent()
 
string key_direction = 'rom_dir'
 
string key_follow = 'rom_follow'
 
 me = Crossfire.WhoAmI()
 
 params = Crossfire.ScriptParameters()
 
 pl = Crossfire.WhoIsActivator()
 
bool ship_mode = False
 

Function Documentation

◆ abs_dir()

def roll-o-matic.abs_dir (   d)

Definition at line 71 of file roll-o-matic.py.

Referenced by try_move().

+ Here is the caller graph for this function:

◆ do_handle()

def roll-o-matic.do_handle ( )

Definition at line 172 of file roll-o-matic.py.

References handle_apply(), handle_move(), and handle_say().

+ Here is the call graph for this function:

◆ do_shipwreck()

def roll-o-matic.do_shipwreck (   me)

Definition at line 105 of file roll-o-matic.py.

References stop().

Referenced by handle_move().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_floor()

def roll-o-matic.find_floor (   x,
  y 
)
Find all objects satisfying is_floor() at the given location.

Definition at line 48 of file roll-o-matic.py.

References is_floor().

Referenced by has_floor(), and start_move().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_player()

def roll-o-matic.find_player ( )

Definition at line 56 of file roll-o-matic.py.

Referenced by handle_move().

+ Here is the caller graph for this function:

◆ handle_apply()

def roll-o-matic.handle_apply ( )

Definition at line 162 of file roll-o-matic.py.

References start_move(), stop(), and try_move().

Referenced by do_handle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handle_move()

def roll-o-matic.handle_move ( )

Definition at line 108 of file roll-o-matic.py.

References do_shipwreck(), find_player(), make_face_from_files.int, and try_move().

Referenced by do_handle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handle_say()

def roll-o-matic.handle_say ( )

Definition at line 143 of file roll-o-matic.py.

References start_move(), and stop().

Referenced by do_handle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has_floor()

def roll-o-matic.has_floor (   x,
  y,
  name 
)
Check whether one floor at the given location matches the given 'name'.

Definition at line 64 of file roll-o-matic.py.

References find_floor().

Referenced by try_move().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_floor()

def roll-o-matic.is_floor (   ob)

Definition at line 42 of file roll-o-matic.py.

Referenced by find_floor().

+ Here is the caller graph for this function:

◆ start_move()

def roll-o-matic.start_move (   want_dir)

Definition at line 131 of file roll-o-matic.py.

References find_floor(), guildoracle.list, and make_face_from_files.str.

Referenced by handle_apply(), and handle_say().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stop()

def roll-o-matic.stop ( )

◆ try_move()

def roll-o-matic.try_move (   check_directions,
  want_dir 
)

Definition at line 83 of file roll-o-matic.py.

References abs_dir(), has_floor(), stop(), and make_face_from_files.str.

Referenced by handle_apply(), and handle_move().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ dir_x

list roll-o-matic.dir_x = [ 0, 0, 1, 1, 1, 0, -1, -1, -1 ]

Definition at line 37 of file roll-o-matic.py.

◆ dir_y

list roll-o-matic.dir_y = [ 0, -1, -1, 0, 1, 1, 1, 0, -1 ]

Definition at line 38 of file roll-o-matic.py.

◆ evt

roll-o-matic.evt = Crossfire.WhatIsEvent()

Definition at line 190 of file roll-o-matic.py.

Referenced by get_npc().

◆ key_direction

string roll-o-matic.key_direction = 'rom_dir'

Definition at line 34 of file roll-o-matic.py.

◆ key_follow

string roll-o-matic.key_follow = 'rom_follow'

Definition at line 35 of file roll-o-matic.py.

◆ me

roll-o-matic.me = Crossfire.WhoAmI()

Definition at line 191 of file roll-o-matic.py.

◆ params

roll-o-matic.params = Crossfire.ScriptParameters()

Definition at line 193 of file roll-o-matic.py.

◆ pl

roll-o-matic.pl = Crossfire.WhoIsActivator()

Definition at line 192 of file roll-o-matic.py.

◆ ship_mode

bool roll-o-matic.ship_mode = False

Definition at line 40 of file roll-o-matic.py.