Functions | Variables

do.c File Reference

#include "hack.h"
#include "lev.h"
Include dependency graph for do.c:

Functions

STATIC_PTR int FDECL (drop,(struct obj *))
STATIC_PTR int NDECL (wipeoff)
STATIC_DCL int FDECL (menu_drop,(int))
STATIC_DCL int NDECL (currentlevel_rewrite)
STATIC_DCL void NDECL (final_level)
int dodrop ()
boolean boulder_hits_pool (struct obj *otmp, int rx, int ry, boolean pushing)
boolean flooreffects (struct obj *obj, int x, int y, const char *verb)
void doaltarobj (struct obj *obj)
boolean canletgo (struct obj *obj, const char *word)
STATIC_PTR int drop (struct obj *obj)
void dropx (struct obj *obj)
void dropy (struct obj *obj)
void obj_no_longer_held (struct obj *obj)
int doddrop ()
STATIC_OVL int menu_drop (int retry)
int dodown ()
int doup ()
STATIC_OVL int currentlevel_rewrite ()
void goto_level (d_level *newlevel, boolean at_stairs, boolean falling, boolean portal)
STATIC_OVL void final_level ()
void schedule_goto (d_level *tolev, boolean at_stairs, boolean falling, int portal_flag, const char *pre_msg, const char *post_msg)
void deferred_goto ()
boolean revive_corpse (struct obj *corpse)
void revive_mon (genericptr_t arg, long timeout)
int donull ()
STATIC_PTR int wipeoff ()
int dowipe ()
void set_wounded_legs (long side, int timex)
void heal_legs ()

Variables

static NEARDATA const char drop_types []
static NEARDATA boolean at_ladder = FALSE
d_level save_dlevel = {0, 0}
static char * dfr_pre_msg = 0
static char * dfr_post_msg = 0

Function Documentation

boolean boulder_hits_pool ( struct obj otmp,
int  rx,
int  ry,
boolean  pushing 
)
boolean canletgo ( struct obj obj,
const char *  word 
)

References body_part(), FALSE, HAND, LEASH, LOADSTONE, pline(), plur, something, TRUE, W_AMUL, W_ARMOR, W_RING, and W_TOOL.

Referenced by drop(), litter(), and throw_obj().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int currentlevel_rewrite (  )

References BUFSZ, close(), COUNT_SAVE, create_levelfile(), delete_levelfile(), ledger_no(), mark_synch, pline(), savelev(), u, and you::uz.

Referenced by goto_level().

Here is the call graph for this function:

Here is the caller graph for this function:

void deferred_goto (  )

References assign_level(), deltrap(), dfr_post_msg, goto_level(), newsym(), on_level(), pline(), t_at(), u, you::utolev, you::utotype, you::ux, you::uy, and you::uz.

Referenced by level_tele(), moveloop(), and movemon().

Here is the call graph for this function:

Here is the caller graph for this function:

void doaltarobj ( struct obj obj )

References an(), Blind, COIN_CLASS, doname(), Doname2(), u_conduct::gnostic, Hallucination, hcolor(), NH_AMBER, NH_BLACK, otense(), pline(), u, and you::uconduct.

Referenced by dropx(), and hitfloor().

Here is the call graph for this function:

Here is the caller graph for this function:

int doddrop (  )
int dodown (  )
int dodrop (  )

References drop(), getobj(), invent, reset_occupations(), SELL_DELIBERATE, SELL_NORMAL, sellobj_state(), SIZE, u, you::ugold, and you::ushops.

Here is the call graph for this function:

int donull (  )
int doup (  )

References monst::data, FALSE, is_animal, LADDER, ledger_no(), levl, Monnam(), near_capacity(), next_to_u(), pline(), prev_level(), SLT_ENCUMBER, sstairs, STAIRS, stairway::sx, stairway::sy, TRUE, u, stairway::up, you::ustuck, you::ux, you::uy, you::uz, xupladder, xupstair, yn, yupladder, and yupstair.

Referenced by peffects().

Here is the call graph for this function:

Here is the caller graph for this function:

int dowipe (  )

References body_part(), FACE, NEARDATA, set_occupation(), Sprintf, u, you::ucreamed, and wipeoff().

Here is the call graph for this function:

STATIC_PTR int drop ( struct obj obj )
void dropx ( struct obj obj )
void dropy ( struct obj obj )
STATIC_DCL int FDECL ( menu_drop  ,
(int)   
)
STATIC_PTR int FDECL ( drop  ,
(struct obj *)   
)
STATIC_OVL void final_level (  )
boolean flooreffects ( struct obj obj,
int  x,
int  y,
const char *  verb 
)
void goto_level ( d_level newlevel,
boolean  at_stairs,
boolean  falling,
boolean  portal 
)

References ALL_MAP, assign_level(), astral_level, at_dgn_entrance(), ballfall(), bclose(), Blind, prop::blocked, bufon(), BUFSZ, carried, check_special_room(), close(), com_pager(), Conflict, currentlevel_rewrite(), monst::data, DEADMONSTER, delete_levelfile(), depth(), mvitals::died, display_nhwindow, distu, dndest, d_level::dnum, docrt(), done(), drag_down(), dunlev(), dunlev_reached, dunlevs_in_dungeon(), you::dz, earth_level, enexto(), ESCAPED, FALSE, fill_pit(), final_level(), linfo::flags, flags, flush_screen(), Flying, fmon, forget_map(), forget_traps(), FORGOTTEN, FREE_SAVE, freeinv(), ftrap, Fumbling, getlev(), hackpid, Hallucination, dest_area::hx, dest_area::hy, impact_drop(), In_endgame, In_hell(), in_out_region(), In_quest(), In_V_tower(), In_W_tower(), index, Inhell, initrack(), Is_juiblex_level, Is_knox, Is_rogue_level, Is_stronghold, IS_STWALL, Is_valley, Is_waterlevel, keepdogs(), kill_genocided_monsters(), KILLED_BY, killer, ledger_no(), level_info, Levitation, levl, LFILE_EXISTS, losedogs(), losehp(), LR_DOWNTELE, LR_UPTELE, dest_area::lx, dest_area::ly, m_at, MAGIC_PORTAL, maxledgerno(), minit(), mklev(), mnexto(), movebubbles(), near_capacity(), dest_area::nhx, dest_area::nhy, dest_area::nlx, dest_area::nly, monst::nmon, NON_PM, trap::ntrap, obj_delivery(), occupied(), ok_to_quest(), on_level(), On_W_tower_level(), onquest(), open_levelfile(), pickup(), place_lregion(), placebc(), pline(), PM_ARCHEOLOGIST, PM_CROESUS, PM_ROGUE, Punished, qstart_level, quest_status, recalc_mapseen(), recbranch_mapseen(), reset_rndmonst(), resurrect(), rloc(), rn1, rn2(), rnd(), Role_if, run_timers(), savelev(), seetrap(), selftouch(), setuqwep(), setuswapwep(), setuwep(), Sprintf, STEED, TELEPAT, TRICKED, TRUE, trap::tx, trap::ty, u, u_on_dnstairs(), u_on_newpos(), u_on_sstairs(), u_on_upstairs(), uarmh, uball, you::uevent, you::uhave, UNENCUMBERED, unplacebc(), update_mlstmv(), updest, you::uprops, uquiver, you::ustuck, uswapwep, you::uswldtim, you::utolev, you::utotype, you::utrap, uwep, you::ux, you::uy, you::uz, you::uz0, vision_full_recalc, vision_recalc(), vision_reset(), VISITED, WIN_MESSAGE, WRITE_SAVE, nhcoord::x, trap::x, xdnladder, xupladder, nhcoord::y, trap::y, ydnladder, yname(), youmonst, and yupladder.

Referenced by arti_invoke(), deferred_goto(), digactualhole(), goto_hell(), next_level(), peffects(), and prev_level().

Here is the call graph for this function:

Here is the caller graph for this function:

void heal_legs (  )

References A_DEX, ATEMP, body_part(), BOTH_SIDES, flag::botl, encumber_msg(), EWounded_legs, flags, HWounded_legs, LEG, makeplural(), u, and Wounded_legs.

Referenced by dosit(), fix_worst_trouble(), fpostfx(), nh_timeout(), and peffects().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int menu_drop ( int  retry )
STATIC_DCL void NDECL ( final_level   )
STATIC_DCL int NDECL ( currentlevel_rewrite   )
STATIC_PTR int NDECL ( wipeoff   )
void obj_no_longer_held ( struct obj obj )

References obj::cobj, CRYSKNIFE, Is_container, obj::nobj, rn2(), STATUE, and WORM_TOOTH.

Referenced by add_to_container(), drop_upon_death(), mon_arrive(), monstone(), place_object(), throwit(), and use_whip().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean revive_corpse ( struct obj corpse )
void revive_mon ( genericptr_t  arg,
long  timeout 
)

References obj::age, obj::corpsenm, is_rider, mons, monstermoves, revive_corpse(), ROT_CORPSE, start_timer(), and TIMER_OBJECT.

Here is the call graph for this function:

void schedule_goto ( d_level tolev,
boolean  at_stairs,
boolean  falling,
int  portal_flag,
const char *  pre_msg,
const char *  post_msg 
)

References assign_level(), dfr_post_msg, u, you::utolev, and you::utotype.

Referenced by domagicportal(), expulsion(), fall_through(), and level_tele().

Here is the call graph for this function:

Here is the caller graph for this function:

void set_wounded_legs ( long  side,
int  timex 
)

References A_DEX, ATEMP, flag::botl, encumber_msg(), EWounded_legs, flags, HWounded_legs, TIMEOUT, and Wounded_legs.

Referenced by dig(), dokick(), dotrap(), drop_ball(), hitmu(), and jump().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_PTR int wipeoff (  )

References Blinded, body_part(), FACE, make_blinded(), pline(), TRUE, u, and you::ucreamed.

Referenced by dowipe().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

NEARDATA boolean at_ladder = FALSE [static]
char * dfr_post_msg = 0

Referenced by deferred_goto(), and schedule_goto().

char* dfr_pre_msg = 0 [static]
NEARDATA const char drop_types[] [static]
Initial value:
d_level save_dlevel = {0, 0}

Referenced by no_bones_level().