Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

src/calls.c File Reference


Detailed Description

Interface for calling bytecode-interpretted functions referenced in the data file.

Each function here corresponds to a function type for interpretted code.

Definition in file calls.c.

#include "crogue.h"

Go to the source code of this file.

Functions

void call_stepfunc (filelink f, uint x, uint y)
void call_genericfunc (filelink f)
void call_throwhitfunc (filelink f, int monst)
int call_usefunc (filelink f, int which_item)
int call_attackfunc (filelink f, uint monst, uint damage, sint target)


Function Documentation

int call_attackfunc filelink  f,
uint  monst,
uint  damage,
sint  target
 

Definition at line 86 of file calls.c.

References world::constfileoffset, deref_file_ptr_partial(), isNull, filelink::offset, PTR_INTERPCALL, run_program(), sint, filelink::type, uint, and w.

Referenced by monst_attack_monst(), and monst_attack_plr().

void call_genericfunc filelink  f  ) 
 

Definition at line 46 of file calls.c.

References world::constfileoffset, deref_file_ptr_partial(), isNull, filelink::offset, PTR_INTERPCALL, run_program(), filelink::type, and w.

Referenced by cast_spell(), enter_map(), gen_map(), and learn_spell().

void call_stepfunc filelink  f,
uint  x,
uint  y
 

Definition at line 29 of file calls.c.

References world::constfileoffset, deref_file_ptr_partial(), isNull, filelink::offset, PTR_INTERPCALL, run_program(), filelink::type, uint, and w.

Referenced by plr_moveto(), and plr_walk().

void call_throwhitfunc filelink  f,
int  monst
 

Definition at line 58 of file calls.c.

References world::constfileoffset, deref_file_ptr_partial(), isNull, filelink::offset, PTR_INTERPCALL, run_program(), filelink::type, and w.

Referenced by thrown_item_effect().

int call_usefunc filelink  f,
int  which_item
 

Definition at line 72 of file calls.c.

References world::constfileoffset, deref_file_ptr_partial(), isNull, filelink::offset, PTR_INTERPCALL, run_program(), filelink::type, and w.

Referenced by do_wear_item(), timepass(), and use_item().


Generated on Thu May 20 13:12:12 2004 for CalcRogue by doxygen 1.3.6