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

dll/dll.c File Reference


Detailed Description

Miscellaneous functions in the DLL.

Functions which either (a) need to be accessible through the data file call table or (b) just wouldn't fit in the main program.

Definition in file dll.c.

#include "crogue.h"
#include "dll.h"
#include "import.h"

Go to the source code of this file.

Functions

const void ** dll_load (const void *f)
void no_op (void)
void cause_confusion (void)
int tool_holysymbol (void)
void spell_shield (void)
void spell_confusion (void)
void spell_gain_strength (void)
void spell_heal (void)
void spell_adrenaline (void)
void spell_adrenaline_low (void)
void spell_adrenaline_expire (void)
void spell_adrenaline_high_effect (void)
void spell_adrenaline_low_effect (void)
void potion_hit_heal (int monst)
void potion_hit_extra_heal (int monst)
void potion_hit_full_heal (int monst)
void potion_hit_sickness (int monst)
void potion_hit_confuse (int monst)
void read_tutorial_sign (uint x, uint y)
void auto_follow_connection (uint x, uint y)
void force_follow_connection (uint x, uint y)
void light_room (room r)
void place_shop (room r, int portal_x, int portal_y)
void place_fountain (int x, int y)
void dll_fill_room (room *r)

Variables

const import_functions * dll_body_functions
const stat_timer_desc spell_shield_dv_timer
const stat_timer_desc spell_shield_pv_timer
const stat_timer_desc spell_gain_strength_timer
const stat_timer_desc spell_gain_strength_timer_to
const stat_timer_desc spell_gain_strength_timer_wi
const stat_timer_desc spell_heal_timer
const func_timer_desc adrenaline_high_timer
const func_timer_desc adrenaline_low_timer


Function Documentation

void auto_follow_connection uint  x,
uint  y
 

Definition at line 407 of file dll.c.

References deref_file_ptr(), follow_connection(), message(), mapdesc::name, OPTION_AUTO_PROMPT, OPTION_AUTO_YES, OPTION_AUTOFOLLOW, world::options, prompt(), TILESPEC, and w.

void cause_confusion void   )  [static]
 

Definition at line 230 of file dll.c.

References confuse_monster(), isNull, world::m, message(), monst_is_peaceful(), MONSTERS_MAX, monster::type, and w.

Referenced by spell_confusion().

void dll_fill_room room r  ) 
 

Definition at line 517 of file dll.c.

References room::bottom, room::left, world::level, light_room(), MAPDESC_CURRENT, place_fountain(), place_shop(), RANGE, room::right, world::t, TILEDESC, room::top, tile::type, and w.

Referenced by fill_room().

const void** dll_load const void *  f  ) 
 

Definition at line 48 of file dll.c.

References dll_body_functions, and dll_exports.

Referenced by link_data_file().

void force_follow_connection uint  x,
uint  y
 

Definition at line 430 of file dll.c.

References tile::flags, follow_connection(), world::plr, world::t, TFLAG_OCCUPIED, w, player::x, and player::y.

void light_room room  r  )  [static]
 

Definition at line 440 of file dll.c.

References room::bottom, tile::flags, illuminate(), room::left, room::right, world::t, TFLAG_INTRINSIC_LIGHT, room::top, and w.

Referenced by dll_fill_room(), and place_shop().

void no_op void   ) 
 

Definition at line 54 of file dll.c.

void place_fountain int  x,
int  y
[static]
 

Definition at line 510 of file dll.c.

References NUM_FOUNTAIN_TYPES, RANGE, tile::special, world::t, tile::type, and w.

Referenced by dll_fill_room().

void place_shop room  r,
int  portal_x,
int  portal_y
[static]
 

Definition at line 451 of file dll.c.

References addmonster(), room::bottom, world::desc, item::flags, shopdesc::generate_item, ITEMFLAG_UNPAID, room::left, light_room(), lrand(), world_descriptor::numshoptypes, place_item(), randitem(), room::right, world::shopdescs, shopdesc::shopkeeper, tile::special, world::t, room::top, tile::type, and w.

Referenced by dll_fill_room().

void potion_hit_confuse int  monst  ) 
 

Definition at line 272 of file dll.c.

References confuse_monster().

void potion_hit_extra_heal int  monst  ) 
 

Definition at line 251 of file dll.c.

References message(), monst_heal(), monstname(), and RANGE.

void potion_hit_full_heal int  monst  ) 
 

Definition at line 258 of file dll.c.

References message(), monst_heal(), and monstname().

void potion_hit_heal int  monst  ) 
 

Definition at line 244 of file dll.c.

References message(), monst_heal(), monstname(), and RANGE.

void potion_hit_sickness int  monst  ) 
 

Definition at line 265 of file dll.c.

References message(), monst_takedamage(), and monstname().

void read_tutorial_sign uint  x,
uint  y
 

Definition at line 279 of file dll.c.

References get_keyname(), KEY_ACT_MENU, KEY_CAST, KEY_CLOSEDOOR, KEY_DROP, KEY_FIRE, KEY_OPENDOOR, KEY_RUN_SOUTH, KEY_SEARCH, KEY_STATS, KEY_TAKEOFF, KEY_THROW, KEY_USE, KEY_WEAR, TILESPEC, and UI_Dialog_Default().

void spell_adrenaline void   ) 
 

Definition at line 184 of file dll.c.

References add_timer(), adrenaline_high_timer, and message().

void spell_adrenaline_expire void   ) 
 

Definition at line 198 of file dll.c.

References message().

void spell_adrenaline_high_effect void   ) 
 

Definition at line 204 of file dll.c.

References apply_stat_mod_desc(), STAT_DEXTERITY, STAT_DV, STAT_SPEED, STAT_STRENGTH, and STATMOD_ADD.

void spell_adrenaline_low void   ) 
 

Definition at line 191 of file dll.c.

References add_timer(), adrenaline_low_timer, and message().

void spell_adrenaline_low_effect void   ) 
 

Definition at line 217 of file dll.c.

References apply_stat_mod_desc(), STAT_DV, STAT_SPEED, STAT_STRENGTH, and STATMOD_ADD.

void spell_confusion void   ) 
 

Definition at line 152 of file dll.c.

References cause_confusion(), player::extrinsic, player::hps, message(), world::plr, plr_takedamage(), STAT_COMPONENT_DAGGER, STAT_COMPONENT_GLOVES, STAT_COMPONENTS, STAT_FLAG_NUMB, STAT_FLAGS, and w.

void spell_gain_strength void   ) 
 

Definition at line 168 of file dll.c.

References add_timer(), message(), spell_gain_strength_timer, spell_gain_strength_timer_to, and spell_gain_strength_timer_wi.

void spell_heal void   ) 
 

Definition at line 177 of file dll.c.

References add_timer(), message(), and spell_heal_timer.

void spell_shield void   ) 
 

Definition at line 144 of file dll.c.

References add_timer(), message(), spell_shield_dv_timer, and spell_shield_pv_timer.

int tool_holysymbol void   ) 
 

Definition at line 116 of file dll.c.

References MDESC, message(), monstbytile(), MONSTFLAG_VAMPIRIC, world::plr, scare_monster_force(), timepass(), w, player::x, and player::y.


Variable Documentation

const func_timer_desc adrenaline_high_timer [static]
 

Initial value:

Definition at line 101 of file dll.c.

Referenced by spell_adrenaline().

const func_timer_desc adrenaline_low_timer [static]
 

Initial value:

Definition at line 108 of file dll.c.

Referenced by spell_adrenaline_low().

const import_functions* dll_body_functions
 

Definition at line 44 of file dll.c.

Referenced by dll_load().

const stat_timer_desc spell_gain_strength_timer [static]
 

Initial value:

 {
        TIMER_STAT,
        {STATMOD_ADD, STAT_STRENGTH, 8},
        gettext("Your strength returns to normal.")
    }

Definition at line 73 of file dll.c.

Referenced by spell_gain_strength().

const stat_timer_desc spell_gain_strength_timer_to [static]
 

Initial value:

Definition at line 80 of file dll.c.

Referenced by spell_gain_strength().

const stat_timer_desc spell_gain_strength_timer_wi [static]
 

Initial value:

Definition at line 87 of file dll.c.

Referenced by spell_gain_strength().

const stat_timer_desc spell_heal_timer [static]
 

Initial value:

 {
        TIMER_STAT,
        {STATMOD_ADD, STAT_REGEN, 2},
        gettext("You stop regenerating.")
    }

Definition at line 94 of file dll.c.

Referenced by spell_heal().

const stat_timer_desc spell_shield_dv_timer [static]
 

Initial value:

 {
        TIMER_STAT,
        {STATMOD_ADD, STAT_DV, 8},
        gettext("You are no longer protected.")
    }

Definition at line 59 of file dll.c.

Referenced by spell_shield().

const stat_timer_desc spell_shield_pv_timer [static]
 

Initial value:

 {
        TIMER_STAT,
        {STATMOD_ADD, STAT_PV, 4},
        NULL
    }

Definition at line 66 of file dll.c.

Referenced by spell_shield().


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