ORG.LANGBAND.ENGINE full listing

Name

ORG.LANGBAND.ENGINE full listing -- All funcallable objects

Package Content

Methods

%ADJUST-SCREEN-SIZE
 (%ADJUST-SCREEN-SIZE WIDTH HEIGHT) [function]

%ALT-SEL-INPUT
 (%ALT-SEL-INPUT ALT-LEN) [function]
Description 

INTERNAL FUNCTION. Might change! Reads a character via READ-ONE-CHARACTER and acts on the result: Q - calls QUIT-GAME& S - returns NIL ESC - Picks random value and returns it (a number) * - As ESC ENTER - Returns 'CURRENT (ie the currently selected value) SPACE - As ENTER [a-z] - Checks if the value is legal, returns number if ok, returns 'BAD-VALUE if not legal

Called By 

INTERACTIVE-ALT-SEL

Calls 

CHAR-CODE, FORMAT, QUIT-GAME&, RANDOM, READ-ONE-CHARACTER and WARN

Location 

util.lisp

%ASSIGN-DEBIAN-DIRS
 (%ASSIGN-DEBIAN-DIRS) [function]
Called By 

GAME-INIT&

Location 

init.lisp

%ASSIGN-WIN-DIRS
 (%ASSIGN-WIN-DIRS) [function]
Calls 

CONCATENATE, LBSYS/ENSURE-DIR-NAME, LBSYS/GET-CURRENT-DIRECTORY and NAMESTRING

Location 

init.lisp

%CALC-PERCHANCE
 (%CALC-PERCHANCE CHANCE THE-AC) [function]
Calls 

INT-/

Location 

combat.lisp

%CREATE-NEW-CHARACTER
 (%CREATE-NEW-CHARACTER WANTED-VARIANT) [function]
Description 

Handles creation of a new character in given variant.

Called By 

PLAY-GAME&

Calls 

%LOAD-WINDOW-TEXTURES, ACTIVATE-OBJECT, ERROR, GET-SYSTEM-TYPE, INTERACTIVE-CREATION-OF-PLAYER, LOAD-VARIANT&, MAKE-INSTANCE, ON-NEW-PLAYER and WARN

Location 

loop.lisp

%CREATE-OBJ-FROM-SPEC
 (%CREATE-OBJ-FROM-SPEC VARIANT SPEC) [function]
Description 

Creates an object from a spec by guessing wildly.

Calls 

APPLY-MAGIC!, CREATE-AOBJ-FROM-ID, CREATE-AOBJ-FROM-KIND-NUM and WARN

Location 

birth.lisp

%CREATE-VINFO-HACK
 (%CREATE-VINFO-HACK) [function]
Description 

A function that creates and inits a vinfo-hack.

Called By 

VINFO-INIT&

Calls 

(SETF VINFO-HACK.NUM-SLOPES), (SETF VINFO-HACK.SLOPES), (SETF VINFO-HACK.SLOPES-MAX), (SETF VINFO-HACK.SLOPES-MIN), MAKE-ARRAY and MAKE-VINFO-HACK

Location 

view.lisp

%DISTRIBUTE-DECOR!
 (%DISTRIBUTE-DECOR! DUNGEON DECOR) [function]
Called By 

%FILED-DUNGEON

Calls 

DUNGEON.HEIGHT, DUNGEON.WIDTH, ERROR, LEGAL-COORD?, LOCATION-X, LOCATION-Y, PLACE-DOOR!, PLACE-TRAP! and REVERSE

Location 

load.lisp

%DISTRIBUTE-MONSTERS!
 (%DISTRIBUTE-MONSTERS! DUNGEON OBJS) [function]
Called By 

%FILED-DUNGEON

Calls 

COORD.MONSTERS, DUNGEON.HEIGHT, DUNGEON.TABLE, DUNGEON.WIDTH, ERROR, LEGAL-COORD?, LOCATION-X and LOCATION-Y

Location 

load.lisp

%EQUIP-STACKING
 (%EQUIP-STACKING TABLE) [function]

%EXECUTE-TRAP
 (%EXECUTE-TRAP THE-TRAP DUNGEON X Y) [function]
Calls 

DECOR-OPERATION, DECOR.TYPE, DISTURBANCE, FUNCALL, FUNCTIONP, TRAP.EFFECT, TRAP.ID and WARN

Location 

generate.lisp

%FILED-CONTAINED-ITEMS
 (%FILED-CONTAINED-ITEMS &KEY CUR-SIZE MAX-SIZE OBJS) [function]
Description 

returns a container for items or nil.

Calls 

ITEMS.CUR-SIZE and MAKE-CONTAINER

Location 

load.lisp

%FILED-DOOR
 (%FILED-DOOR &KEY TYPE LOC-X LOC-Y FLAGS) [function]
Description 

returns an active-door or nil.

Calls 

(SETF DECOR.VISIBLE?), (SETF DOOR.BROKEN?), (SETF DOOR.CLOSED?), (SETF LOCATION-X), (SETF LOCATION-Y), BIT-FLAG-SET?, GET-DOOR and WARN

Location 

load.lisp

%FILED-DUNGEON
 (%FILED-DUNGEON &KEY WIDTH HEIGHT DEPTH TABLE MONSTERS OBJECTS ROOMS DECOR) [function]
Description 

returns a dungeon-object or nil.

Calls 

%DISTRIBUTE-DECOR!, %DISTRIBUTE-MONSTERS!, %DISTRIBUTE-OBJECTS!, (SETF COORD-FLOOR), (SETF COORD.FLAGS), (SETF DUNGEON.MONSTERS), (SETF DUNGEON.ROOMS), CREATE-DUNGEON and WITH-DUNGEON

Location 

load.lisp

%FILED-LEVEL
 (%FILED-LEVEL &KEY ID RATING DEPTH DUNGEON) [function]
Calls 

(SETF LEVEL.DEPTH), (SETF LEVEL.DUNGEON), (SETF LEVEL.RATING), ERROR, FUNCALL, GET-LEVEL-BUILDER and LEVEL.ID

Location 

load.lisp

%FILED-MONSTER
 (%FILED-MONSTER &KEY KIND CUR-HP MAX-HP SPEED ENERGY MANA LOC-X LOC-Y ALIVE?) [function]
Description 

returns an active-monster object or nil.

Calls 

(SETF CREATURE-ALIVE?), (SETF CURRENT-HP), (SETF GET-CREATURE-ENERGY), (SETF GET-CREATURE-MANA), (SETF GET-CREATURE-SPEED), (SETF LOCATION-X), (SETF LOCATION-Y), (SETF MAXIMUM-HP) and PRODUCE-ACTIVE-MONSTER

Location 

load.lisp

%FILED-MONSTER-KIND
 (%FILED-MONSTER-KIND &KEY ID (ALREADY-DEAD :UNSPEC)) [function]
Calls 

(SETF MONSTER.ALREADY-DEAD), ERROR, GETHASH, VARIANT.MONSTERS and WARN

Location 

load.lisp

%FILED-OBJECT
 (%FILED-OBJECT &KEY KIND INSCR NUMBER (IDENTIFY :UNSPEC) GAME-VALUES CONTAINS EVENTS LOC-X LOC-Y) [function]
Description 

returns an active-object or nil.

Calls 

(SETF AOBJ.CONTAINS), (SETF AOBJ.EVENTS), (SETF AOBJ.IDENTIFY), (SETF AOBJ.INSCR), (SETF AOBJ.NUMBER), (SETF LOCATION-X), (SETF LOCATION-Y), ERROR, GET-OBJECT-KIND, PRODUCE-ACTIVE-OBJECT and WARN

Location 

load.lisp

%FILED-PLAYER
 (%FILED-PLAYER &KEY NAME RACE CLASS GENDER BASE-STATS CUR-STATMODS HP-TABLE EQUIPMENT TEMP-ATTRS MISC LOC-X LOC-Y VIEW-X VIEW-Y DEPTH MAX-DEPTH MAX-XP CUR-XP FRACTION-XP CUR-HP FRACTION-HP CUR-MANA FRACTION-MANA GOLD FOOD ENERGY) [function]
Description 

Returns a player object or nil.

Calls 

(SETF GET-CREATURE-INVENTORY), CALCULATE-CREATURE-BONUSES!, FILED-PLAYER-DATA, ITEM-TABLE-FIND, PRODUCE-PLAYER-OBJECT, UPDATE-MAX-HP! and UPDATE-XP-TABLE!

Location 

load.lisp

%FILED-PLAYER-MISC
 (%FILED-PLAYER-MISC &KEY AGE STATUS HEIGHT WEIGHT) [function]
Calls 

(SETF PLAYERMISC.AGE), (SETF PLAYERMISC.HEIGHT), (SETF PLAYERMISC.STATUS), (SETF PLAYERMISC.WEIGHT) and MAKE-INSTANCE

Location 

load.lisp

%FILED-ROOM
 (%FILED-ROOM &KEY TYPE LOC-X LOC-Y) [function]
Description 

returns an active-room or nil.

Calls 

(SETF LOCATION-X), (SETF LOCATION-Y), ERROR, FUNCALL, FUNCTIONP, GET-ROOM and MAKE-INSTANCE

Location 

load.lisp

%FILED-TRAP
 (%FILED-TRAP &KEY TYPE LOC-X LOC-Y) [function]
Description 

returns an active-trap or nil.

Calls 

CREATE-SIMPLE-TRAP, GETHASH, VARIANT.TRAPS and WARN

Location 

load.lisp

%FILED-VARIANT
 (%FILED-VARIANT &KEY ENGINE-NUM-VERSION ID VARIANT-NUM-VERSION TURN INFORMATION) [function]
Calls 

(SETF GET-INFORMATION), (SETF VARIANT.TURN), ACTIVATE-OBJECT, ERROR, GET-ID, LOAD-VARIANT&, MAKE-CONDITION, SIGNAL and WARN

Location 

load.lisp

%FILED-WORN-ITEMS
 (%FILED-WORN-ITEMS &KEY OBJS) [function]
Description 

returns a worn-items object or nil.

Calls 

MAKE-EQUIPMENT-SLOTS

Location 

load.lisp

%GET-EQUIP-KEYS
 (%GET-EQUIP-KEYS OBJ KEY) [function]
Calls 

%GET-SLOT-NUMBERS-FROM-KEY, %GET-SLOT-NUMBERS-FROM-OBJ, A2I, VARIANT.WORN-ITEM-SLOTS and WARN

Location 

equipment.lisp

%GET-HUNGERLVL
 (%GET-HUNGERLVL SATIATION) [function]
Description 

Returns (lvl colour description init-msg).

Called By 

MODIFY-SATIATION!

Location 

player.lisp

%GET-NAME-INPUT!
 (%GET-NAME-INPUT! THE-PLAYER) [function]
Calls 

(SETF PLAYER.NAME) and GET-STRING-INPUT

Location 

birth.lisp

%LOAD-SAVED-GAME
 (%LOAD-SAVED-GAME FNAME) [function]
Description 

Will assign values to *variant*, *player* and *level if it can.

Called By 

PLAY-GAME&

Calls 

%LOAD-WINDOW-TEXTURES, FORMAT, LOAD-A-SAVED-GAME, PATHNAME, PATHNAME-TYPE, PAUSE-LAST-LINE!, SAVEPROBLEM.DESC and WARN

Location 

loop.lisp

%LOAD-WINDOW-TEXTURES
 (%LOAD-WINDOW-TEXTURES VARIANT) [function]
Called By 

%CREATE-NEW-CHARACTER and %LOAD-SAVED-GAME

Location 

loop.lisp

%MAKE-LEVEL-ARRAY
 (%MAKE-LEVEL-ARRAY VAR-OBJ) [function]
Calls 

MAKE-ARRAY and VARIANT.MAX-CHARLEVEL

Location 

player.lisp

%MOUSE-CLICKED
 (%MOUSE-CLICKED BUTTON X Y) [function]
Description 

Figures out what window it happened in and calls handle-mouse-click

Called By 

GET-AND-PROCESS-COMMAND!

Calls 

GET-SYSTEM-TYPE, HANDLE-MOUSE-CLICK, WARN, WINDOW.X-OFFSET and WINDOW.Y-OFFSET

Location 

loop.lisp

%PARSE-TREASURE-SPEC
 (%PARSE-TREASURE-SPEC SPEC) [function]
Description 

Parses the spec and returns data in a good format.

Calls 

(SETF DROP.QUALITY), (SETF DROP.TYPE), ERROR, MAKE-INSTANCE and PARSE-DICE

Location 

monster.lisp

%PRETTY-DATE-LINE
 (%PRETTY-DATE-LINE UNIV-TIME) [function]
Description 

Returns a pretty printed date-line.

Calls 

DECODE-UNIVERSAL-TIME and FORMAT

Location 

death.lisp

%PRINT-IMAGELIST
 (%PRINT-IMAGELIST) [function]

%PRINT-SHOP-MESSAGE!
 (%PRINT-SHOP-MESSAGE! STR) [function]
Called By 

%STORE-BUY-ITEM and %STORE-SELL-ITEM

Calls 

PRINT-MESSAGE!

Location 

stores.lisp

%QUERY-FOR-GENDER
 (%QUERY-FOR-GENDER VARIANT PLAYER SETTINGS) [function]
Calls 

(SETF PLAYER.GENDER), GET-GENDER-NAME, INTERACTIVE-ALT-SEL, MAPCAR, PRINT-TEXT!, PUT-COLOURED-STR!, SETTING-LOOKUP, VARIANT.GENDERS and WARN

Location 

birth.lisp

%QUERY-FOR-RACE
 (%QUERY-FOR-RACE VARIANT PLAYER SETTINGS &KEY (RACE-NAME "Race")) [function]
Calls 
Location 

birth.lisp

%READ-BIN-FIXED-STR
 (%READ-BIN-FIXED-STR LEN STR) [function]
Calls 

COERCE

Location 

load.lisp

%RETRIEVE-DOOR
 (%RETRIEVE-DOOR VARIANT KEY OPERATION X Y) [function]
Called By 

PLACE-RANDOM-DOOR!

Calls 

(SETF DECOR.VISIBLE?), (SETF LOCATION-X), (SETF LOCATION-Y), DECOR-OPERATION, GET-DOOR and WARN

Location 

generate.lisp

%ROOM-HAS-LIGHT?
 (%ROOM-HAS-LIGHT? ROOM DUNGEON &OPTIONAL (CHANCE 25)) [function]
Description 

Checks if a given room should have initial light.

Calls 

DUNGEON.DEPTH and RANDINT

Location 

util.lisp

%SAVE-OBJ
 (%SAVE-OBJ OBJ FNAME) [function]
Calls 

PRINT

Location 

save.lisp

%SHOP-INPUT-LOOP
 (%SHOP-INPUT-LOOP PLAYER LEVEL STORE) [function]
Calls 

%STORE-BUY-ITEM, %STORE-SELL-ITEM, DISPLAY-HOUSE, FLUSH-MESSAGES!, PUT-COLOURED-LINE!, READ-ONE-CHARACTER, SET-CURSOR-TO, UPDATE-INVENTORY-ROW and WARN

Location 

stores.lisp

%SHOW-HELP-FILE
 (%SHOW-HELP-FILE FNAME) [function]
Calls 

CLEAR-WINDOW, GET-FRAME-HEIGHT and PAUSE-LAST-LINE!

Location 

print.lisp

%SORT-HSCORES
 (%SORT-HSCORES HLIST) [function]
Calls 

STABLE-SORT

Location 

death.lisp

%SWITCH-IN-WINDOW
 (%SWITCH-IN-WINDOW WIN) [function]
Called By 

SWITCH-TO-REGULAR-FRAMESET&

Calls 

ACTIVATE-WINDOW, IS-WINDOW?, NON-NEGATIVE-INTEGER?, PAINT-WINDOW and WINDOW.DISABLED?

Location 

global.lisp

%WRITE-FIXED-STR
 (%WRITE-FIXED-STR STR SIZE OUT) [function]
Calls 

MAKE-STRING

Location 

save.lisp

A
 (A &OPTIONAL (UI "sdl") &KEY (GFX NIL) (SIZE :|800X600|) (FULL-SCREEN NIL)) [function]
Called By 

B, C, D and E

Calls 

FIND-PACKAGE, GAME-INIT& and STRING-EQUAL

Location 

init.lisp

A2I
 (A2I CHAR) [function]
Description 

Returns the number corresponding to the char given, where #a is 0.

Called By 

%GET-EQUIP-KEYS, INTERACTIVE-BOOK-SELECTION, INTERACTIVE-SPELL-SELECTION and SELECT-ITEM-FROM-STORE

Calls 

CHAR-CODE

Location 

base.lisp

ACCEPTABLE-OWNER?
 (ACCEPTABLE-OWNER? HOUSE &OPTIONAL (OWNER NIL)) [function]
Description 

Returns t or nil.

Calls 

HOUSE.OWNER

Location 

building.lisp

ACTIVATE-WINDOW
 (ACTIVATE-WINDOW WIN) [function]
Called By 

%SWITCH-IN-WINDOW, INVOKE-IN-DIALOGUE, SWITCH-MAP-MODE and SWITCH-TO-FULL-FRAME&

Calls 

(SETF WINDOW.VISIBLE?), GET-WINDOW and WINDOW.DISABLED?

Location 

window.lisp

ADD-MAGIC-TO-ITEM!
 (ADD-MAGIC-TO-ITEM! VARIANT ITEM DEPTH QUALITY) [generic]
Description 

Adds magical properties to an item.

Location 

generics.lisp

ADD-MAGIC-TO-ITEM!
 (ADD-MAGIC-TO-ITEM! (VARIANT VARIANT) ITEM DEPTH QUALITY) [method]

ADD-MONSTER-KNOWLEDGE-FLAG!
 (ADD-MONSTER-KNOWLEDGE-FLAG! PLAYER MONSTER FLAG) [function]
Called By 

DETECT-EVIL-MONSTERS! and DETECT-INVISIBLE!

Calls 

GET-MONSTER-KNOWLEDGE and MONSTER.FLAGS

Location 

player.lisp

ADD-OBJECT-KNOWLEDGE-FLAG!
 (ADD-OBJECT-KNOWLEDGE-FLAG! PLAYER OBJECT FLAG) [function]
Calls 

GET-OBJECT-KNOWLEDGE and OBJECT.FLAGS

Location 

player.lisp

ADD-OBJECT-TO-ARRAY!
 (ADD-OBJECT-TO-ARRAY! ARR CUR-SIZE MAX-SIZE AOBJ) [function]
Description 

Adds an object to array. Returns T if succesful and NIL if unsuccesful.

Calls 

(SETF AREF) and LANG-WARN

Location 

base.lisp

ADD-OLD-TILE!
 (ADD-OLD-TILE! DUNGEON X Y) [function]
Description 

Add a tile to the list of tiles that need refreshing.

Called By 

TAG-TILES-NEAR

Calls 

(SETF COORD.REPAINT) and DUNGEON.TABLE

Location 

util.lisp

ADD-OWNER-TO-STORE-TYPE!
 (ADD-OWNER-TO-STORE-TYPE! OWNER STORE-TYPE-ID &OPTIONAL (VAR-OBJ *VARIANT*)) [function]
Description 

The OWNER argument should be an owner, the STORE-TYPE-ID should be an exisiting id.

Called By 

DEFINE-STORE-OWNER

Calls 

GET-HOUSE, OWNER.ID, STORE.POSSIBLE-OWNERS and WARN

Location 

stores.lisp

ADD-ROOM-TO-DUNGEON!
 (ADD-ROOM-TO-DUNGEON! DUNGEON ROOM) [function]
Called By 

CONSTRUCT-ROOM!

Calls 

DUNGEON.ROOMS

Location 

dungeon.lisp

ADD-STAT-BONUS
 (ADD-STAT-BONUS BASE AMOUNT) [function]
Description 

Returns a numeric value with base incremented with amount

Calls 

ABS

Location 

player.lisp

ADJUST-VIEWPORT!
 (ADJUST-VIEWPORT! DUNGEON PLAYER VX VY) [function]
Description 

maybe let variants override this one to avoid the town-hack below?

Called By 

VERIFY-VIEWPORT

Calls 

(SETF PLAYER.VIEW-X), (SETF PLAYER.VIEW-Y), ASK-FOR-REDRAW!, DUNGEON.DEPTH, DUNGEON.HEIGHT, DUNGEON.WIDTH, GET-FRAME-HEIGHT, GET-FRAME-WIDTH, PLAYER.VIEW-X and PLAYER.VIEW-Y

Location 

dungeon.lisp

ADVANCE-MESSAGE-SYS!
 (ADVANCE-MESSAGE-SYS! (HANDLER MESSAGE-HANDLER-MORE)) [method]
 (ADVANCE-MESSAGE-SYS! (HANDLER MESSAGE-HANDLER-FLOW)) [method]

ALL-FUNS
 (ALL-FUNS PCK) [function]
Calls 

DO-SYMBOLS, FBOUNDP, FIND-PACKAGE, SORT and SYMBOL-PACKAGE

Location 

sys.lisp

ALLOC-LOCATIONS
 (ALLOC-LOCATIONS OBJECT) [generic]
Description 

Returns a list of conses (area . chance).

Called By 

INITIALISE-MONSTER-KIND!

Location 

generics.lisp

(SETF ALLOC-LOCATIONS)
 ((SETF ALLOC-LOCATIONS) VALUE OBJECT) [generic]
Description 

Returns a list of conses (area . chance).

Location 

generics.lisp

ALLOC.DEPTH
 (ALLOC.DEPTH (OBJ ALLOC-ENTRY)) [function]

(SETF ALLOC.DEPTH)
 ((SETF ALLOC.DEPTH) (OBJ ALLOC-ENTRY)) [function]

ALLOC.INDEX
 (ALLOC.INDEX (OBJ ALLOC-ENTRY)) [function]

(SETF ALLOC.INDEX)
 ((SETF ALLOC.INDEX) (OBJ ALLOC-ENTRY)) [function]

ALLOC.OBJ
 (ALLOC.OBJ (OBJ ALLOC-ENTRY)) [function]

(SETF ALLOC.OBJ)
 ((SETF ALLOC.OBJ) (OBJ ALLOC-ENTRY)) [function]

ALLOC.PROB1
 (ALLOC.PROB1 (OBJ ALLOC-ENTRY)) [function]

(SETF ALLOC.PROB1)
 ((SETF ALLOC.PROB1) (OBJ ALLOC-ENTRY)) [function]

ALLOC.PROB2
 (ALLOC.PROB2 (OBJ ALLOC-ENTRY)) [function]

(SETF ALLOC.PROB2)
 ((SETF ALLOC.PROB2) (OBJ ALLOC-ENTRY)) [function]

ALLOC.PROB3
 (ALLOC.PROB3 (OBJ ALLOC-ENTRY)) [function]

(SETF ALLOC.PROB3)
 ((SETF ALLOC.PROB3) (OBJ ALLOC-ENTRY)) [function]

ALLOCATE-MONSTER!
 (ALLOCATE-MONSTER! VARIANT DUNGEON PLAYER DISTANCE SLEEPING) [generic]
Description 

Allocates a monster in the given dungeon.

Called By 

ACTIVATE-OBJECT

Location 

generics.lisp

ALLOCATE-MONSTER!
 (ALLOCATE-MONSTER! (VARIANT VARIANT) (DUNGEON DUNGEON) PLAYER DISTANCE SLEEPING) [method]
Calls 

DUNGEON.HEIGHT, DUNGEON.WIDTH, LOCATION-X, LOCATION-Y and PLACE-MONSTER!

Location 

allocate.lisp

ALLOCATE-OBJECT!
 (ALLOCATE-OBJECT! VARIANT DUNGEON SET TYPE NUMBER) [generic]
Description 

Allocates an object in the dungeon?

Location 

generics.lisp

ALLOCATE-OBJECT!
 (ALLOCATE-OBJECT! (VARIANT VARIANT) (DUNGEON DUNGEON) SET TYPE NUMBER) [method]
Calls 

DUNGEON.HEIGHT, DUNGEON.WIDTH, PLACE-GOLD!, PLACE-OBJECT!, PLACE-RANDOM-TRAP! and PLACE-RUBBLE!

Location 

generate.lisp

ALLOCATE-OBJECT-IN-STORE!
 (ALLOCATE-OBJECT-IN-STORE! VARIANT THE-STORE) [function]
Description 

Tries to generate and add an object to the given store.

Calls 

ITEM-TABLE-ADD!, STORE-GENERATE-OBJECT and STORE.ITEMS

Location 

stores.lisp

ALLOCATE-STAIRS!
 (ALLOCATE-STAIRS! DUNGEON DIR HOW-MANY WALLS) [function]
Description 

Allocates stairs in the given dungeon.

Calls 

(SETF CAVE-FLOOR), CAN-PLACE?, DUNGEON.HEIGHT, DUNGEON.WIDTH, GET-FLOOR-TYPE, NEXT-TO-WALLS and RANDOM

Location 

generate.lisp

ANIM.CHANGE-INTERVAL
 (ANIM.CHANGE-INTERVAL (OBJ ANIMATION)) [function]
Called By 

INIT-ANIMATION! and POSSIBLY-INCREMENT-ANIMATION!

Location 

classes.lisp

(SETF ANIM.CHANGE-INTERVAL)
 ((SETF ANIM.CHANGE-INTERVAL) (OBJ ANIMATION)) [function]

ANIM.CURRENT
 (ANIM.CURRENT (OBJ ANIMATION)) [function]
Called By 

GET-ANIMATED-SPRITE and POSSIBLY-INCREMENT-ANIMATION!

Location 

classes.lisp

(SETF ANIM.CURRENT)
 ((SETF ANIM.CURRENT) (OBJ ANIMATION)) [function]
Called By 

POSSIBLY-INCREMENT-ANIMATION!

Location 

classes.lisp

ANIM.ID
 (ANIM.ID (OBJ ANIMATION)) [function]

(SETF ANIM.ID)
 ((SETF ANIM.ID) (OBJ ANIMATION)) [function]

ANIM.NEXT-CHANGE
 (ANIM.NEXT-CHANGE (OBJ ANIMATION)) [function]
Called By 

POSSIBLY-INCREMENT-ANIMATION!

Location 

classes.lisp

(SETF ANIM.NEXT-CHANGE)
 ((SETF ANIM.NEXT-CHANGE) (OBJ ANIMATION)) [function]
Called By 

INIT-ANIMATION!

Location 

classes.lisp

ANIM.NUMBER
 (ANIM.NUMBER (OBJ ANIMATION)) [function]
Called By 

POSSIBLY-INCREMENT-ANIMATION!

Location 

classes.lisp

(SETF ANIM.NUMBER)
 ((SETF ANIM.NUMBER) (OBJ ANIMATION)) [function]
Called By 

MAKE-WALK-MOVEMENT

Location 

classes.lisp

ANIM.PATH
 (ANIM.PATH (OBJ ANIMATION)) [function]
Called By 

GET-ANIMATED-SPRITE

Location 

classes.lisp

(SETF ANIM.PATH)
 ((SETF ANIM.PATH) (OBJ ANIMATION)) [function]
Called By 

MAKE-WALK-MOVEMENT

Location 

classes.lisp

ANIMATION-P
 (ANIMATION-P OBJ) [predicate]

ANY-REDRAWS?
 (ANY-REDRAWS? CREATURE) [function]
Description 

Checks if any redraws are wanted.

Called By 

HANDLE-STUFF, REDRAW-STUFF and RUN-LEVEL!

Calls 

MAPHASH

Location 

base.lisp

ANY-UPDATES?
 (ANY-UPDATES? CREATURE) [function]
Description 

Checks if any updates are wanted.

Called By 

HANDLE-STUFF, RUN-LEVEL! and UPDATE-STUFF

Calls 

MAPHASH

Location 

base.lisp

APPLY-EFFECT-TO-AREA
 (APPLY-EFFECT-TO-AREA DUNGEON LEFT-X LEFT-Y W H EFFECT) [function]
Called By 

DETECT-DOORS!, DETECT-EVIL-MONSTERS!, DETECT-GOLD!, DETECT-INVISIBLE!, DETECT-MONSTERS!, DETECT-NORMAL-OBJECTS!, DETECT-STAIRS! and DETECT-TRAPS!

Calls 

DUNGEON.TABLE

Location 

project.lisp

APPLY-EFFECT-TO-CIRCLE
 (APPLY-EFFECT-TO-CIRCLE DUNGEON CENTRE-X CENTRE-Y RADIUS EFFECT) [function]
Calls 

DUNGEON.TABLE

Location 

project.lisp

APPLY-EVENT
 (APPLY-EVENT EVENT-TYPE EVENT-LIST ARG-LIST) [function]
Description 

Iterates through event-list and funcalls any events with given arg-list if any events match.

Calls 

APPLY, EVENT.FUNCTION, EVENT.STATE and EVENT.TYPE

Location 

global.lisp

APPLY-FILTERS-ON-OBJ
 (APPLY-FILTERS-ON-OBJ TYPE VAR-OBJ OBJ) [function]
Called By 

DEFINE-EGO-ITEM, DEFINE-MONSTER-KIND and DEFINE-OBJECT-KIND

Calls 

FUNCALL, GETHASH and VARIANT.FILTERS

Location 

global.lisp

APPLY-MAGIC!
 (APPLY-MAGIC! VARIANT OBJ BASE-LEVEL &KEY GOOD-P GREAT-P ALLOW-ARTIFACT) [generic]
Description 

Applies certain magic to a bare item.

Called By 

%CREATE-OBJ-FROM-SPEC and STORE-GENERATE-OBJECT

Location 

generics.lisp

APPLY-MAGIC!
 (APPLY-MAGIC! (VARIANT VARIANT) OBJ BASE-LEVEL &KEY GOOD-P GREAT-P (ALLOW-ARTIFACT T)) [method]
Calls 

ADD-MAGIC-TO-ITEM!, INT-/ and RANDOM

Location 

generate.lisp

APPLY-POSSIBLE-COORD-TRIGGER
 (APPLY-POSSIBLE-COORD-TRIGGER DUNGEON X Y) [function]
Description 

This is a hack.. fix me later..

Called By 

MOVE-PLAYER!

Calls 

APPLY, CAVE-DECOR, DECOR.EVENTS, EVENT.FUNCTION, EVENT.STATE, FUNCALL, GET-COORD-TRIGGER and IS-EVENT?

Location 

dungeon.lisp

APPLY-PROJECTION-EFFECT!
 (APPLY-PROJECTION-EFFECT! VARIANT SOURCE PATH-ARRAY &KEY EXPLOSION-AREA FLAG DISTANCE DAMAGE EFFECT) [generic]
Description 

Tries to apply projection effect to the path-array and possibly to explosion-area.

Location 

generics.lisp

APPLY-PROJECTION-EFFECT!
 (APPLY-PROJECTION-EFFECT! (VARIANT VARIANT) SOURCE PATH-ARRAY &KEY (EXPLOSION-AREA NIL) (FLAG 0) (DISTANCE 0) (DAMAGE 0) (EFFECT NIL)) [method]

APPLY-USUAL-EFFECTS-ON-USED-OBJECT!
 (APPLY-USUAL-EFFECTS-ON-USED-OBJECT! DUNGEON PLAYER OBJ) [generic]
Description 

Not quite sure here yet.. should be sewn into the USE-protocol.

Called By 

INTERACTIVE-USE-ITEM!

Location 

generics.lisp

APPLY-USUAL-EFFECTS-ON-USED-OBJECT!
 (APPLY-USUAL-EFFECTS-ON-USED-OBJECT! (VARIANT VARIANT) CREATURE (OBJ ACTIVE-OBJECT)) [method]

ARRANGE-GAME-EXIT&
 (ARRANGE-GAME-EXIT& VARIANT PLAYER) [generic]
Description 

Organises complete funeral for the dead player.

Called By 

PLAY-GAME&

Location 

generics.lisp

ATTACK-EFFECT
 (ATTACK-EFFECT ARGUMENTS) [macro]

ATTACK-LOCATION!
 (ATTACK-LOCATION! DUNGEON PLAYER X Y) [function]
Description 

attacks a given location..

Called By 

MOVE-PLAYER!

Calls 

ATTACK-TARGET! and CAVE-MONSTERS

Location 

combat.lisp

ATTEMPT-MULTI-CREATION!
 (ATTEMPT-MULTI-CREATION! VARIANT OBJ DEPTH) [generic]
Description 

Attempt to create multiple objects (ie increase number).

Location 

generics.lisp

B
 (B &OPTIONAL (UI "gcu")) [function]
Calls 

A

Location 

init.lisp

BALANCE-BID
 (BALANCE-BID STRATEGY CREATURE BID) [function]
Description 

Balances a bid-number from 0 to 10.

Calls 

(SETF FACTOR.OFFENSIVE) and FACTOR.OFFENSIVE

Location 

ai.lisp

BASH-DOOR!
 (BASH-DOOR! DUNGEON X Y) [function]
Description 

hackish, fix me later..

Calls 

CAVE-DECOR, DECOR-OPERATION, IS-CLOSED-DOOR?, LIGHT-SPOT!, RANDOM and WARN

Location 

actions.lisp

BASIC-FRAME-SHOWN?
 (BASIC-FRAME-SHOWN? VARIANT) [function]
Description 

Checks if the basic frame is shown.

Called By 

ON-MOVE-TO-COORD, PRINT-BASIC-FRAME, PRINT-CUT, PRINT-MANA-POINTS, PRINT-STUN and RUN-LEVEL!

Calls 

IS-FRAME-SHOWN?

Location 

global.lisp

BIT-FLAG-AND
 (BIT-FLAG-AND POS1 POS2) [macro]

BIT-FLAG-REMOVE!
 (BIT-FLAG-REMOVE! LOC FLAG) [macro]
Description 

Same as 'loc &= ~(flag)', and uses LOGANDC2.

Called By 

(SETF COORD-FLOOR), FLOORIFY-COORD!, FORGET-VIEW!, LIGHT-ROOM! and VAN/TOWN-ILLUMINATE!

Location 

base.lisp

BUILD-HOUSE!
 (BUILD-HOUSE! LEVEL HOUSE TOPLEFT-X TOPLEFT-Y) [generic]
Description 

Builds a house on the given level at given coord.

Called By 

GENERATE-LEVEL!

Location 

generics.lisp

BUILD-HOUSE!
 (BUILD-HOUSE! LEVEL (HOUSE HOUSE) TOPLEFT-X TOPLEFT-Y &KEY (DOOR-FEATURE NIL) (DOOR-TRIGGER NIL)) [method]
Calls 
Location 

building.lisp

BUILD-STAT-TABLE-FROM-SYMLIST
 (BUILD-STAT-TABLE-FROM-SYMLIST VARIANT SYMLIST) [function]
Calls 

(SETF SVREF) and MAKE-STAT-ARRAY

Location 

global.lisp

BUILD-TUNNEL!
 (BUILD-TUNNEL! VARIANT DUNGEON X1 Y1 X2 Y2) [function]
Description 

builds a tunnel

Calls 

(SETF CAVE-FLOOR), CORRECT-DIRECTION, DUN-DATA.TUNNELS, DUN-DATA.WALLS, GET-FLOOR-TYPE, PLACE-RANDOM-DOOR! and RANDOM

Location 

generate.lisp

C
 (C &KEY (UI "sdl") (SIZE :|800X600|) (FULL-SCREEN NIL)) [function]
Calls 

A

Location 

init.lisp

CALCULATE-CREATURE-BONUSES!
 (CALCULATE-CREATURE-BONUSES! VARIANT CREATURE) [generic]
Description 

Does a full walk-through of the creature and updates any and all bonuses.

Called By 

%FILED-PLAYER

Location 

generics.lisp

CALCULATE-CREATURE-HIT-POINTS!
 (CALCULATE-CREATURE-HIT-POINTS! VARIANT CREATURE) [generic]
Description 

Does a walk-through of the creature and recalculates hit-points.

Location 

generics.lisp

CALCULATE-CREATURE-HIT-POINTS!
 (CALCULATE-CREATURE-HIT-POINTS! (VARIANT VARIANT) (PLAYER PLAYER)) [method]

CALCULATE-CREATURE-LIGHT-RADIUS!
 (CALCULATE-CREATURE-LIGHT-RADIUS! VARIANT CREATURE) [generic]
Description 

Does a walk-through of the creature and updates the light-radius.

Location 

generics.lisp

CALCULATE-CREATURE-LIGHT-RADIUS!
 (CALCULATE-CREATURE-LIGHT-RADIUS! (VARIANT VARIANT) (PLAYER PLAYER)) [method]
Calls 

(SETF GET-LIGHT-RADIUS), ASK-FOR-UPDATE!, ERROR, GET-LIGHT-RADIUS, ITEM-TABLE-ITERATE! and PLAYER.EQUIPMENT

Location 

player.lisp

CALCULATE-SCORE
 (CALCULATE-SCORE VARIANT PLAYER) [generic]
Description 

Calculates the score for the player based on the variant's scoring-system.

Location 

generics.lisp

CALCULATE-SCORE
 (CALCULATE-SCORE VARIANT PLAYER) [method]
Calls 

PLAYER.DEPTH and PLAYER.MAXIMUM-XP

Location 

util.lisp

CAN-CREATURE-DROP?
 (CAN-CREATURE-DROP? VARIANT CREATURE) [generic]
Description 

Checks if the creature can drop anything on death.

Location 

generics.lisp

CAN-CREATURE-DROP?
 (CAN-CREATURE-DROP? (VARIANT VARIANT) (MON ACTIVE-MONSTER)) [method]
Calls 

AMON.KIND and MONSTER.TREASURES

Location 

util.lisp

CAN-MELEE-ATTACK?
 (CAN-MELEE-ATTACK? VARIANT SOURCE TARGET) [generic]
Description 

Can the source do a melee attack on target? Returns T if it can, if it returns a string that means that an attack cannot be made and the string describes why.

Called By 

MOVE-PLAYER!

Location 

generics.lisp

CAN-MELEE-ATTACK?
 (CAN-MELEE-ATTACK? (VARIANT VARIANT) SOURCE TARGET) [method]

CAN-PLACE?
 (CAN-PLACE? DUNGEON X Y TYPE &OPTIONAL ALLOW-EXISTING) [function]
Called By 

ALLOCATE-STAIRS!, NEW-PLAYER-SPOT! and TELEPORT-CREATURE!

Calls 

BIT-FLAG-SET?, CAVE-COORD, COORD.DECOR, COORD.FLOOR, COORD.MONSTERS, COORD.OBJECTS and FLOOR.FLAGS

Location 

dungeon.lisp

CAREFUL-RUN-OK?
 (CAREFUL-RUN-OK? DUNGEON PLAYER X Y) [function]
Description 

Helper function to determine if a square might be legal to move to. This function differs from run_ok() in that unseen squares are considered illegal, instead of legal. This function is called from run_in_room(), which should be conservative in deciding the player is in a room.

Calls 

CAVE-FLOOR-BOLD? and LEGAL-COORD?

Location 

actions.lisp

CARRIES-OBJECT?
 (CARRIES-OBJECT? CREATURE OBJ) [function]
Description 

Checks if a creature carries an object with a certain id.

Called By 

TRIGGER-SPECIAL-ABILITY

Calls 

AOBJ.CONTAINS, GET-CREATURE-INVENTORY and ITEMS.OBJS

Location 

object.lisp

(SETF CAVE-DECOR)
 ((SETF CAVE-DECOR) VAL DUNGEON X Y) [function]
Called By 

DISARM-TRAP! and FLOORIFY-COORD!

Calls 

(SETF COORD.DECOR), DUNGEON.TABLE and WARN

Location 

dungeon.lisp

CAVE-EMPTY-BOLD?
 (CAVE-EMPTY-BOLD? DUNGEON X Y) [function]
Calls 

CAVE-FLOOR-BOLD? and CAVE-MONSTERS

Location 

dungeon.lisp

(SETF CAVE-FLAGS)
 ((SETF CAVE-FLAGS) VAL DUNGEON X Y) [function]
Called By 

FORGET-VIEW! and LIGHT-ROOM!

Calls 

(SETF COORD.FLAGS) and DUNGEON.TABLE

Location 

dungeon.lisp

CAVE-FLOOR
 (CAVE-FLOOR DUNGEON X Y) [function]
Called By 

HANDLE-MOUSE-CLICK, NEXT-TO-WALLS, POSSIBLE-DOORWAY?, TRY-DOOR! and USE-STAIR!

Calls 

CAVE-COORD and COORD.FLOOR

Location 

dungeon.lisp

(SETF CAVE-FLOOR)
 ((SETF CAVE-FLOOR) VAL DUNGEON X Y) [function]
Called By 

ALLOCATE-STAIRS!, BUILD-TUNNEL! and FLOORIFY-COORD!

Calls 

(SETF COORD-FLOOR), DUNGEON.ACTIVE, DUNGEON.TABLE, LIGHT-SPOT! and NOTE-SPOT!

Location 

dungeon.lisp

CAVE-FLOOR-BOLD?
 (CAVE-FLOOR-BOLD? DUNGEON X Y) [function]
Called By 

CAREFUL-RUN-OK?, CAVE-EMPTY-BOLD?, LIGHT-ROOM!, MOVE-OK?, MOVE-PLAYER!, PROJECT-PATH, PROJECTABLE?, RUN-OK? and SHOOT-A-MISSILE

Calls 

BIT-FLAG-SET? and CAVE-FLAGS

Location 

dungeon.lisp

CAVE-ICKY?
 (CAVE-ICKY? DUNGEON X Y) [function]
Called By 

NEW-PLAYER-SPOT! and TELEPORT-CREATURE!

Calls 

BIT-FLAG-SET? and CAVE-FLAGS

Location 

dungeon.lisp

CAVE-IS-ROOM?
 (CAVE-IS-ROOM? DUNGEON X Y) [function]
Called By 

TRY-DOOR!

Calls 

BIT-FLAG-SET? and CAVE-FLAGS

Location 

dungeon.lisp

(SETF CAVE-MONSTERS)
 ((SETF CAVE-MONSTERS) VAL DUNGEON X Y) [function]
Called By 

PLACE-SINGLE-MONSTER!, REMOVE-MONSTER-FROM-DUNGEON! and SWAP-MONSTERS!

Calls 

(SETF COORD.MONSTERS) and DUNGEON.TABLE

Location 

dungeon.lisp

(SETF CAVE-OBJECTS)
 ((SETF CAVE-OBJECTS) VAL DUNGEON X Y) [function]
Called By 

%DESTROY-FLOOR-OBJ, GET-ENSURED-FLOOR-TABLE, LET-FLOOR-CARRY! and PICK-UP-FROM-FLOOR!

Calls 

(SETF COORD.OBJECTS) and DUNGEON.TABLE

Location 

dungeon.lisp

CENTRE-STRING
 (CENTRE-STRING STR MAX-LEN) [function]
Description 

Tries to return a centred version of the string.

Called By 

PRINT-TOMB

Calls 

FORMAT

Location 

base.lisp

CHARIFY-NUMBER
 (CHARIFY-NUMBER NUM) [macro]

CHECK-FOR-HITS
 (CHECK-FOR-HITS) [function]

CHECK-KEYPRESS
 (CHECK-KEYPRESS TABLE KEY) [function]
Description 

checks a keypress vs the given table

Called By 

GET-AND-PROCESS-COMMAND!

Calls 

FIND-KEY-OPERATION and GETHASH

Location 

global.lisp

CLEAN-COORD!
 (CLEAN-COORD! COORD) [function]
Description 

Cleans the given coordinate.

Called By 

CLEAN-DUNGEON! and FILL-DUNGEON-WITH-FLOOR!

Calls 

(SETF COORD-FLOOR), (SETF COORD.DECOR), (SETF COORD.FLAGS), (SETF COORD.MONSTERS), (SETF COORD.OBJECTS) and GET-FLOOR-TYPE

Location 

dungeon.lisp

CLEAN-DUNGEON!
 (CLEAN-DUNGEON! DUNGEON) [function]
Description 

Clears all flags and everything from the dungeon.

Called By 

CREATE-DUNGEON

Calls 

(SETF DUNGEON.MONSTERS), (SETF DUNGEON.ROOMS), (SETF DUNGEON.TRIGGERS), CLEAN-COORD! and WITH-DUNGEON

Location 

dungeon.lisp

CLEAR-COORD
 (CLEAR-COORD WIN X Y) [function]
Description 

Clears the coord of any values. Does not force repaint

Called By 

DRAW-TO-MAP

Calls 

(SETF AREF), WINDOW.DATA and WINDOW.FLAGMAP

Location 

window.lisp

CLEAR-OLD-TILES!
 (CLEAR-OLD-TILES! WIN DUNGEON PLAYER) [function]
Description 

Clears up tiles that may or may not have had an update.

Called By 

RUN-LEVEL!

Calls 

(SETF COORD.REPAINT), COORD.REPAINT, DRAW-TO-MAP, DUNGEON.HEIGHT, DUNGEON.TABLE, DUNGEON.WIDTH, GET-FRAME-HEIGHT, GET-FRAME-WIDTH, PAINT-COORD, PLAYER.VIEW-X and PLAYER.VIEW-Y

Location 

util.lisp

CLEAR-ROW
 (CLEAR-ROW WIN X Y &OPTIONAL (LEN +MAX-WINCOL+) &OPTIONAL (LAYER -1)) [function]
Description 

x,y are start coordinates for clearn, when LEN is given it refers to length cleared from x,y LEN will be chopped if it exceeds boundaries.

Called By 

ADVANCE-MESSAGE-SYS!, PAUSE-AT-LINE!, PRINT-NOTE! and PUT-COLOURED-LINE!

Calls 

ERROR, FLUSH-COORDS, MIN, ORG.LANGBAND.FFI:C-CLEAR-COORDS!, WINDOW.DATA, WINDOW.FLAGMAP, WINDOW.ID, WINDOW.NUM-ID, WINDOW.TILE-HEIGHT, WINDOW.TILE-WIDTH and WINDOW.WIDTH

Location 

window.lisp

CLEAR-WINDOW
 (CLEAR-WINDOW THE-WIN &OPTIONAL (LAYER -1)) [function]
Description 

Tries to clear the window. If layer is negative, all layers are cleared, otherwise a specific layer can be cleared.

Called By 

%SHOW-HELP-FILE, ADVANCE-MESSAGE-SYS!, DISPLAY-HELP-TOPICS, DISPLAY-HOUSE, INVOKE-IN-DIALOGUE, PRINT-ATTACK-GRAPH, PRINT-ATTACK-TABLE, SHOW-MESSAGES, SWITCH-MAP-MODE, UPDATE-INVENTORY-ROW and VISIT-HOUSE

Calls 

ERROR, ORG.LANGBAND.FFI:C-CLEAR-COORDS!, PAINT-WINDOW, WINDOW.DATA, WINDOW.FLAGMAP, WINDOW.HEIGHT, WINDOW.ID, WINDOW.NUM-ID, WINDOW.PIXEL-HEIGHT, WINDOW.PIXEL-WIDTH and WINDOW.WIDTH

Location 

window.lisp

CLEAR-WINDOW-FROM
 (CLEAR-WINDOW-FROM WIN ROW &OPTIONAL (LAYER -1)) [function]
Description 

Clears window from given row and downwards. can be made more efficient.

Called By 

DISPLAY-MONSTER-RECALL, INTERACTIVE-SAVEFILE-SELECT and INTERACTIVE-VARIANT-SELECT

Location 

window.lisp

CLOSE-DOOR!
 (CLOSE-DOOR! DUNGEON X Y) [function]
Description 

hackish, fix me later..

Calls 

CAVE-DECOR, DECOR-OPERATION, IS-OPEN-DOOR?, LIGHT-SPOT! and PLAY-SOUND

Location 

actions.lisp

CMB-DESCRIBE-DEATH
 (CMB-DESCRIBE-DEATH ATTACKER TARGET) [generic]
Description 

Describe death-blow.

Called By 

ATTACK-TARGET!

Location 

generics.lisp

CMB-DESCRIBE-DEATH
 (CMB-DESCRIBE-DEATH ATTACKER TARGET) [method]
Calls 

FORMAT-MESSAGE!, GET-CREATURE-DESC, GET-CREATURE-NAME and PLAY-SOUND

Location 

combat.lisp

CMB-MONSTER-ATTACK!
 (CMB-MONSTER-ATTACK! DUNGEON PLAYER MON THE-X THE-Y) [function]
Description 

The monster attacks the player at (the-x,the-y).

Calls 

ATTACK-TARGET!, CREATURE-ALIVE? and MONSTER.ATTACKS

Location 

combat.lisp

COLOUR-AREA
 (COLOUR-AREA WIN COLOUR-IDX COL ROW WID HGT) [function]
Called By 

COLOUR-WINDOW

Location 

util.lisp

COLOUR-WINDOW
 (COLOUR-WINDOW WIN COLOUR-IDX) [function]
Description 

Tries to colour the window with a background from the background tilefile.

Calls 

COLOUR-AREA, WINDOW.HEIGHT and WINDOW.WIDTH

Location 

util.lisp

COMMON-MAKE-OVERLAPPING-ROOM
 (COMMON-MAKE-OVERLAPPING-ROOM) [function]
Description 

constructor for the overlapping room.

Calls 

MAKE-INSTANCE

Location 

util.lisp

COMMON-MAKE-SIMPLE-ROOM
 (COMMON-MAKE-SIMPLE-ROOM) [function]
Description 

constructor for the simple room.

Calls 

MAKE-INSTANCE

Location 

util.lisp

COMPILE-IN-ENVIRONMENT
 (COMPILE-IN-ENVIRONMENT FUNC) [function]
Calls 

FUNCALL

Location 

base.lisp

CONCAT-PNAMES
 (CONCAT-PNAMES) [macro]
Description 

concatenates strings or symbols and returns an interned symbol which can be passed to e.g defun (as name of function).

Called By 

DEFINE-OBJECT-TYPE

Calls 

GENSYM and GET-SYMCASE-FUN

Location 

base.lisp

CONSTRUCT-ROOM!
 (CONSTRUCT-ROOM! ROOM-TYPE DUNGEON PLAYER BX0 BY0) [function]
Description 

Constructs and returns an active-room.

Calls 

ADD-ROOM-TO-DUNGEON!, BUILD-ROOM!, DUN-DATA.COL-ROOMS, DUN-DATA.ROOM-CENTRES, DUN-DATA.ROOM-MAP, DUN-DATA.ROW-ROOMS, INT-/, MAKE-INSTANCE, ROOM-TYPE.SIZE-MOD and WARN

Location 

dungeon.lisp

(SETF COORD-FLOOR)
 ((SETF COORD-FLOOR) VAL COORD) [function]
Description 

this is an evil hack.

Called By 

%FILED-DUNGEON, (SETF CAVE-FLOOR), CLEAN-COORD!, FILL-DUNGEON-WITH-FLOOR!, KILL-TARGET! and PROCESS-SINGLE-MONSTER!

Calls 

(SETF COORD.FLOOR), BIT-FLAG-ADD!, BIT-FLAG-REMOVE!, BIT-FLAG-SET?, COORD.FLAGS, FLOOR.FLAGS, GETHASH and VARIANT.FLOOR-TYPES

Location 

dungeon.lisp

COORD.DECOR
 (COORD.DECOR (OBJ DUNGEON-COORD)) [function]
Called By 

CAN-PLACE?, CAVE-DECOR, DETECT-DOORS!, DETECT-TRAPS! and DRAW-TO-MAP

Location 

classes.lisp

(SETF COORD.DECOR)
 ((SETF COORD.DECOR) (OBJ DUNGEON-COORD)) [function]
Called By 

(SETF CAVE-DECOR) and CLEAN-COORD!

Location 

classes.lisp

COORD.FLAGS
 (COORD.FLAGS (OBJ DUNGEON-COORD)) [function]
Called By 

(SETF COORD-FLOOR), CAVE-FLAGS, DETECT-DOORS!, DETECT-STAIRS!, DETECT-TRAPS!, DRAW-TO-MAP, NOTE-SPOT! and VAN/TOWN-ILLUMINATE!

Location 

classes.lisp

(SETF COORD.FLAGS)
 ((SETF COORD.FLAGS) (OBJ DUNGEON-COORD)) [function]
Called By 

%FILED-DUNGEON, (SETF CAVE-FLAGS) and CLEAN-COORD!

Location 

classes.lisp

COORD.FLOOR
 (COORD.FLOOR (OBJ DUNGEON-COORD)) [function]
Called By 

ACTIVATE-OBJECT, CAN-PLACE?, CAVE-FLOOR, DETECT-STAIRS!, DRAW-TO-MAP, KILL-TARGET!, NOTE-SPOT!, PROCESS-SINGLE-MONSTER! and VAN/TOWN-ILLUMINATE!

Location 

classes.lisp

(SETF COORD.FLOOR)
 ((SETF COORD.FLOOR) (OBJ DUNGEON-COORD)) [function]
Called By 

(SETF COORD-FLOOR)

Location 

classes.lisp

COORD.MONSTERS
 (COORD.MONSTERS (OBJ DUNGEON-COORD)) [function]
Called By 

%DISTRIBUTE-MONSTERS!, CAN-PLACE?, CAVE-MONSTERS, DETECT-EVIL-MONSTERS!, DETECT-INVISIBLE!, DETECT-MONSTERS! and DRAW-TO-MAP

Location 

classes.lisp

(SETF COORD.MONSTERS)
 ((SETF COORD.MONSTERS) (OBJ DUNGEON-COORD)) [function]
Called By 

(SETF CAVE-MONSTERS) and CLEAN-COORD!

Location 

classes.lisp

COORD.OBJECTS
 (COORD.OBJECTS (OBJ DUNGEON-COORD)) [function]
Called By 

%DISTRIBUTE-OBJECTS!, CAN-PLACE?, CAVE-OBJECTS, DETECT-GOLD! and DETECT-NORMAL-OBJECTS!

Location 

classes.lisp

(SETF COORD.OBJECTS)
 ((SETF COORD.OBJECTS) (OBJ DUNGEON-COORD)) [function]
Called By 

%DISTRIBUTE-OBJECTS!, (SETF CAVE-OBJECTS) and CLEAN-COORD!

Location 

classes.lisp

COORD.REPAINT
 (COORD.REPAINT (OBJ DUNGEON-COORD)) [function]
Called By 

CLEAR-OLD-TILES!

Location 

classes.lisp

(SETF COORD.REPAINT)
 ((SETF COORD.REPAINT) (OBJ DUNGEON-COORD)) [function]
Called By 

ADD-OLD-TILE! and CLEAR-OLD-TILES!

Location 

classes.lisp

COPY-ACTIVE-OBJECT
 (COPY-ACTIVE-OBJECT VARIANT OBJ &OPTIONAL TARGET) [generic]
Description 

Returns a copy of the given active-object. If target is given and is an active-object, values will be copied from OBJ to TARGET.

Called By 

%STORE-BUY-ITEM

Location 

generics.lisp

COPY-ACTIVE-OBJECT
 (COPY-ACTIVE-OBJECT (VARIANT VARIANT) (OBJ ACTIVE-OBJECT) &OPTIONAL (TARGET NIL)) [method]
Calls 

(SETF SLOT-VALUE), PRODUCE-ACTIVE-OBJECT and SLOT-VALUE

Location 

object.lisp

COPY-ANIMATION
 (COPY-ANIMATION (OBJ ANIMATION)) [function]

COPY-HASH-TABLE
 (COPY-HASH-TABLE HTBL) [function]
Description 

Tries to return a copy of the hash-table. Some values might be shared.

Called By 

DEFINE-SETTINGS

Calls 

(SETF GETHASH), HASH-TABLE-TEST, MAKE-HASH-TABLE and MAPHASH

Location 

global.lisp

COPY-PLAYER-ABILITIES
 (COPY-PLAYER-ABILITIES VARIANT PLAYER-ABILITIES) [generic]
Description 

Copies and returns a player-ability object.

Location 

generics.lisp

COPY-PLAYER-ABILITIES
 (COPY-PLAYER-ABILITIES (VARIANT VARIANT) (AB PLAYER-ABILITIES)) [method]
Calls 

FILL-PLAYER-ABILITIES! and MAKE-INSTANCE

Location 

player.lisp

CORRECT-DIRECTION
 (CORRECT-DIRECTION X1 Y1 X2 Y2) [function]
Description 

Returns two values, first the x-dir, then the y-dir

Called By 

BUILD-TUNNEL!

Calls 

RANDOM

Location 

generate.lisp

CREATE-ALLOC-TABLE-MONSTERS
 (CREATE-ALLOC-TABLE-MONSTERS VARIANT MON-TABLE) [generic]
Description 

Returns an allocation table for the given monster-table.

Location 

generics.lisp

CREATE-ALLOC-TABLE-MONSTERS
 (CREATE-ALLOC-TABLE-MONSTERS (VARIANT VARIANT) MON-TABLE) [method]
Calls 

CREATE-BASIC-ALLOCATION-TABLE

Location 

allocate.lisp

CREATE-ALLOC-TABLE-OBJECTS
 (CREATE-ALLOC-TABLE-OBJECTS VARIANT OBJ-TABLE) [generic]
Description 

Returns an allocation table for the given object-table.

Location 

generics.lisp

CREATE-ALLOC-TABLE-OBJECTS
 (CREATE-ALLOC-TABLE-OBJECTS (VARIANT VARIANT) OBJ-TABLE) [method]
Calls 

CREATE-BASIC-ALLOCATION-TABLE

Location 

allocate.lisp

CREATE-AOBJ-FROM-ID
 (CREATE-AOBJ-FROM-ID ID &KEY (AMOUNT 1) (VARIANT *VARIANT*)) [function]
Description 

Creates an active object from object-kind identified by id. Amount specifies how many objects the active-object is, e.g for arrows. Uses *VARIANT*.

Called By 

%CREATE-OBJ-FROM-SPEC, CREATE-AOBJ-FROM-KIND-NUM, ENSURE-MONSTER-HAS-BACKPACK!, EQUIP-CHARACTER!, INTERACTIVE-REFILL-ITEM!, PRODUCE-PLAYER-OBJECT and SHOOT-A-MISSILE

Calls 

CREATE-AOBJ-FROM-KIND and GET-OBJECT-KIND

Location 

object.lisp

CREATE-AOBJ-FROM-KIND
 (CREATE-AOBJ-FROM-KIND KIND &KEY (AMOUNT 1) (VARIANT *VARIANT*)) [function]
Description 

Creates an aobj from a given kind. Uses *VARIANT*.

Called By 

CREATE-AOBJ-FROM-ID, CREATE-GOLD and INTERACTIVE-REFILL-ITEM!

Calls 
Location 

object.lisp

CREATE-AOBJ-FROM-KIND-NUM
 (CREATE-AOBJ-FROM-KIND-NUM NUM &KEY (AMOUNT 1) (VARIANT *VARIANT*)) [function]
Description 

This is a hackish function which is backward compatible with k-info.txt numbers. NUM is the numeric id.

Called By 

%CREATE-OBJ-FROM-SPEC

Calls 

CREATE-AOBJ-FROM-ID

Location 

object.lisp

CREATE-APPROPRIATE-LEVEL
 (CREATE-APPROPRIATE-LEVEL VARIANT OLD-LEVEL PLAYER DEPTH) [generic]
Description 

Returns an appropriate level for the given variant and player.

Called By 

GAME-LOOP& and PLAY-GAME&

Location 

generics.lisp

CREATE-BASIC-ALLOCATION-TABLE
 (CREATE-BASIC-ALLOCATION-TABLE VARIANT OBJ-TABLE) [function]
Description 

Creates and returns a basic allocation table for the given objects in a table.

Calls 

MAKE-ARRAY, SORT and VARIANT.MAX-DEPTH

Location 

allocate.lisp

CREATE-DUNGEON
 (CREATE-DUNGEON WIDTH HEIGHT &KEY ITS-DEPTH) [function]
Description 

Creates and returns a dungeon of specified size

Called By 

%FILED-DUNGEON, GENERATE-LEVEL! and READ-MAP

Calls 

(SETF AREF), (SETF DUNGEON.ACTION-QUEUE), (SETF DUNGEON.DEPTH), (SETF DUNGEON.TABLE), CLEAN-DUNGEON!, MAKE-ARRAY, MAKE-DUNGEON, MAKE-DUNGEON-COORD and ORG.LANGBAND.DATASTRUCTURES:MAKE-PQ

Location 

dungeon.lisp

CREATE-GOLD
 (CREATE-GOLD VARIANT DUNGEON &KEY ORIGINATOR) [generic]
Description 

Creates gold in the dungeon.

Location 

generics.lisp

CREATE-GOLD
 (CREATE-GOLD (VARIANT VARIANT) (DUNGEON DUNGEON) &KEY ORIGINATOR) [method]
Calls 

ERROR

Location 

generate.lisp

CREATE-OBJECT
 (CREATE-OBJECT VARIANT DUNGEON GOOD-P GREAT-P) [generic]
Description 

Creates an object and puts it in the dungeon.

Location 

generics.lisp

CREATE-OBJECT
 (CREATE-OBJECT (VARIANT VARIANT) (DUNGEON DUNGEON) GOOD-P GREAT-P) [method]
Calls 

APPLY-MAGIC!, ATTEMPT-MULTI-CREATION!, DUNGEON.DEPTH and GET-ACTIVE-OBJECT-BY-LEVEL

Location 

generate.lisp

CREATE-SIMPLE-TRAP
 (CREATE-SIMPLE-TRAP TYPE X Y) [function]
Called By 

%FILED-TRAP

Calls 

DECOR.EVENTS, MAKE-COORD-EVENT and MAKE-INSTANCE

Location 

generate.lisp

CREATE-WINDOW
 (CREATE-WINDOW ID NUM-ID WIDTH HEIGHT) [function]
Calls 

ESTABLISH-DATA-IN-WINDOW and MAKE-INSTANCE

Location 

window.lisp

CREATURE-ALIVE?
 (CREATURE-ALIVE? CREATURE) [generic]
Description 

Returns T if the creature is alive, NIL if not.

Location 

generics.lisp

(SETF CREATURE-ALIVE?)
 ((SETF CREATURE-ALIVE?) VALUE CREATURE) [generic]
Description 

Alters the creature's 'alive'-status.

Called By 

%FILED-MONSTER, REMOVE-MONSTER-FROM-DUNGEON! and RUN-LEVEL!

Location 

generics.lisp

(SETF CREATURE-ALIVE?)
 ((SETF CREATURE-ALIVE?) VALUE (CRT PLAYER)) [method]
Calls 

(SETF PLAYER.LEAVING?) and (SETF SLOT-VALUE)

Location 

player.lisp

CREATURE-DROP!
 (CREATURE-DROP! VARIANT CREATUE DUNGEON) [generic]
Description 

Makes the dead creature drop items on death.

Location 

generics.lisp

D
 (D &OPTIONAL (UI "sdl")) [function]
Calls 

A

Location 

init.lisp

DEACTIVATE-WINDOW
 (DEACTIVATE-WINDOW WIN) [function]
Called By 

INVOKE-IN-DIALOGUE, SWITCH-MAP-MODE and SWITCH-TO-REGULAR-FRAMESET&

Calls 

(SETF WINDOW.VISIBLE?), GET-WINDOW and WINDOW.DISABLED?

Location 

window.lisp

DEDUCT-HP!
 (DEDUCT-HP! TARGET AMOUNT) [function]
Called By 

FINALISE-VISUAL-EVENT, MELEE-INFLICT-DAMAGE!, MISSILE-INFLICT-DAMAGE! and MISSILE-INFLICT-DAMAGE!

Calls 

CURRENT-HP

Location 

combat.lisp

DEF-EXPORTCONST
 (DEF-EXPORTCONST NAME INIT &OPTIONAL DOC) [macro]
Description 

Define a typed constant.

Location 

base.lisp

DEFAULT-SETTING
 (DEFAULT-SETTING ID) [function]
Called By 

PLAY-GAME&

Calls 

GETHASH

Location 

global.lisp

(SETF DEFAULT-SETTING)
 ((SETF DEFAULT-SETTING) VALUE ID) [function]
Calls 

(SETF GETHASH)

Location 

global.lisp

DEFCONST
 (DEFCONST NAME TYPE INIT DOC) [macro]
Description 

Define a typed constant.

Location 

base.lisp

DEFCUSTOM
 (DEFCUSTOM NAME TYPE INIT DOC) [macro]
Description 

Define a typed variable.

Location 

base.lisp

DEFINE-ATTACK-DESCRIPTION
 (DEFINE-ATTACK-DESCRIPTION SYMBOL DESC) [function]
Description 

Adds a legit attack-description.

Calls 

(SETF GET-ATTACK-DESCRIPTION), ERROR-CONDITION and NONBOOLSYM?

Location 

combat.lisp

DEFINE-BASIC-FLAVOUR
 (DEFINE-BASIC-FLAVOUR TYPE NAME &KEY GFX-SYM TEXT-SYM) [function]
Description 

Defines a basic flavour..

Calls 

ESTABLISH-FLAVOUR&, FIND-FLAVOUR-TYPE and WARN

Location 

object.lisp

DEFINE-CHARACTER-CLASS
 (DEFINE-CHARACTER-CLASS ID NAME) [function]
Description 

Defines and establishes a class.

Calls 

APPLY, ILLEGAL-DATA.DESC, ILLEGAL-DATA.ID, INITIALISE-CHARACTER-CLASS!, REGISTER-CLASS&, SIGNAL-CONDITION, VERIFY-ID and WARN

Location 

character.lisp

DEFINE-CHARACTER-RACE
 (DEFINE-CHARACTER-RACE ID NAME) [function]
Description 

defines a race and updates global race-list. Both id and symbol will be in the global race-table for easy access.

Calls 

APPLY, ILLEGAL-DATA.DESC, ILLEGAL-DATA.ID, INITIALISE-CHARACTER-RACE!, REGISTER-RACE&, SIGNAL-CONDITION, VERIFY-ID and WARN

Location 

character.lisp

DEFINE-CHARACTER-STAT
 (DEFINE-CHARACTER-STAT SYMBOL NAME &KEY ABBREVIATION BIT-FLAG NUMBER DATA POSITIVE-DESC NEGATIVE-DESC) [function]
Description 

Defines and registers a stat with the current variant.

Calls 
Location 

global.lisp

DEFINE-DOOR-TYPE
 (DEFINE-DOOR-TYPE ID NAME &KEY TEXT-SYM GFX-SYM NUMERIC-ID EFFECT MIN-DEPTH MAX-DEPTH RARITY CAVE-FLAGS-ON CAVE-FLAGS-OFF) [function]
Description 

Defines and registers a door-type.

Calls 

(SETF GETHASH), (SETF GFX-SYM), (SETF SLOT-VALUE), (SETF TEXT-SYM), ERROR, MAKE-INSTANCE, NON-NEGATIVE-INTEGER?, VARIANT.DOORS, VERIFY-ID and WARN

Location 

building.lisp

DEFINE-EFFECT
 (DEFINE-EFFECT SYMBOL NAME &KEY NUMBER BIT-FLAG) [function]
Calls 

MAKE-INSTANCE and VARIANT.EFFECTS

Location 

global.lisp

DEFINE-ELEMENT
 (DEFINE-ELEMENT SYMBOL NAME &KEY (BIT-FLAG 0) (NUMBER 0)) [function]
Calls 

MAKE-INSTANCE and VARIANT.ELEMENTS

Location 

global.lisp

DEFINE-FLAVOUR-TYPE
 (DEFINE-FLAVOUR-TYPE SYMBOL &KEY GENERATOR-FN GFX-SYM TEXT-SYM) [function]
Description 

Defines a flavour-type

Calls 

(SETF GETHASH), MAKE-INSTANCE, NON-NEGATIVE-INTEGER? and VARIANT.FLAVOUR-TYPES

Location 

object.lisp

DEFINE-FLOOR-TYPE
 (DEFINE-FLOOR-TYPE ID NAME &KEY MIMIC NUMERIC-ID FLAGS TEXT-SYM GFX-SYM) [function]
Description 

Defines a floor-type and registers it. The floor is returned.

Calls 

(SETF FLOOR.FLAGS), (SETF FLOOR.NUMERIC-ID), (SETF GET-FLOOR-TYPE), (SETF GFX-SYM), (SETF TEXT-SYM), ERROR, FLOOR.NUMERIC-ID, MAKE-INSTANCE, NON-NEGATIVE-INTEGER?, VERIFY-ID and WARN

Location 

global.lisp

DEFINE-HOUSE
 (DEFINE-HOUSE ID &KEY NAME (TYPE 'HOUSE) NUMBER OWNER (NO-ITEMS NIL)) [function]
Description 

defines a house and adds it to the appropriate table.

Calls 

(SETF HOUSE.ITEMS), ESTABLISH-HOUSE&, MAKE-CONTAINER and MAKE-INSTANCE

Location 

building.lisp

DEFINE-KEY-OPERATION
 (DEFINE-KEY-OPERATION KEY OPERATION) [function]
Description 

defines a key-operation which later can be bound.

Calls 

(SETF GETHASH)

Location 

global.lisp

DEFINE-KEY-TABLE
 (DEFINE-KEY-TABLE NAME) [function]
Description 

Returns a key-table.

Calls 

MAKE-HASH-TABLE

Location 

global.lisp

DEFINE-KEYPRESS
 (DEFINE-KEYPRESS KEY-TABLE WHERE KEY OPERATION) [function]
Description 

Defines a keypress and ties it to the appropriate operation.

Calls 

(SETF GETHASH), FIND-KEY-OPERATION, GETHASH, MAKE-INNER-KEY-TABLE and WARN

Location 

global.lisp

DEFINE-MONSTER-ATTACK
 (DEFINE-MONSTER-ATTACK KEY &KEY POWER HIT-EFFECT) [function]
Calls 

(SETF ATTACK-TYPE.HIT-EFFECT), (SETF ATTACK-TYPE.POWER), (SETF GETHASH), COMPILE, ERROR-CONDITION, FUNCTIONP, MAKE-INSTANCE and NON-NEGATIVE-INTEGER?

Location 

monster.lisp

DEFINE-MONSTER-KIND
 (DEFINE-MONSTER-KIND ID NAME &KEY TYPE) [function]
Description 

Defines a critter you might bump into when you least expect it. It uses the *VARIANT* object so it has to be properly initialised.

Calls 
Location 

monster.lisp

DEFINE-NORMAL-EVENT
 (DEFINE-NORMAL-EVENT DUMMY-ARG ID TYPE FUNCTION &KEY (VARIANT *VARIANT*)) [function]
Description 

establishes an event basically.

Calls 

MAKE-EVENT and REGISTER-EVENT&

Location 

global.lisp

DEFINE-OBJECT-KIND
 (DEFINE-OBJECT-KIND ID NAME &KEY THE-KIND) [function]
Description 

creates and establishes an object corresponding to parameters. It uses the *VARIANT* object so it has to be properly initialised.

Calls 

(SETF GETHASH), APPLY-FILTERS-ON-OBJ, GET-ID, GETHASH, ILLEGAL-DATA.DESC, ILLEGAL-DATA.ID, INITIALISE-OBJECT-KIND!, PRODUCE-OBJECT-KIND, VARIANT.OBJECTS and WARN

Location 

object.lisp

DEFINE-OBJECT-TYPE
 (DEFINE-OBJECT-TYPE NAME &KEY IS KEY KIND-SLOTS AOBJ-SLOTS) [macro]
Description 

Creates necessary objects and registers them.

Calls 

CONCAT-PNAMES

Location 

object.lisp

DEFINE-PRINTFIELD-HANDLER
 (DEFINE-PRINTFIELD-HANDLER KEY WINDOW HANDLER &KEY HOOK-ON-REDRAW) [function]
Calls 

(SETF FIELD-PRINTER.HANDLER), (SETF FIELD-PRINTER.WINDOW-KEY), (SETF GETHASH), FIELD-PRINTER-P, GETHASH, MAKE-FIELD-PRINTER and WARN

Location 

print.lisp

DEFINE-REDRAW-KEY
 (DEFINE-REDRAW-KEY KEY DESC) [macro]

DEFINE-ROOM
 (DEFINE-ROOM ID CONSTRUCTOR) [function]
Description 

First argument should be an integer.. fix this later..

Calls 

(SETF GETHASH), FUNCTIONP, SYMBOL-NAME and VARIANT.ROOM-BUILDERS

Location 

dungeon.lisp

DEFINE-SETTINGS
 (DEFINE-SETTINGS ID) [function]
Description 

Defines a settings object with an id.

Calls 

(SETF GETHASH), COPY-HASH-TABLE, GET-SETTINGS-OBJ, MAKE-HASH-TABLE and WARN

Location 

global.lisp

DEFINE-SOUND-EFFECT
 (DEFINE-SOUND-EFFECT KEY) [function]
Description 

Defines a sound. Returns nil when sound is not loaded.

Calls 

(SETF GETHASH), CONCATENATE, GETHASH, ORG.LANGBAND.FFI:C-LOAD-SOUND-EFFECT& and USING-SOUND?

Location 

sound.lisp

DEFINE-STORE
 (DEFINE-STORE ID &KEY (TYPE 'STORE) NAME NUMBER (SELLS NIL) (BUYS NIL) (OWNER :RANDOM) (NO-ITEMS NIL)) [function]
Description 

Creates a store object and adds it to the appropriate table(s).

Calls 

(SETF HOUSE.ITEMS), (SETF STORE.SELLS), (SETF STORE.WILL-BUY), ESTABLISH-HOUSE&, MAKE-CONTAINER, MAKE-INSTANCE and STORE.ITEM-LIMIT

Location 

stores.lisp

DEFINE-STORE-OWNER
 (DEFINE-STORE-OWNER &KEY STORE-TYPE ID NAME PURSE MAX-GREED MIN-GREED HAGGLE-NUM TOLERANCE RACE PICTURE SPECIAL-OWNER) [function]
Description 

creates an owner and adds him or her to appropriate tables

Calls 

(SETF OWNER.PICTURE), ADD-OWNER-TO-STORE-TYPE!, ESTABLISH-OWNER&, GET-CHAR-RACE, IMAGE-EXISTS?, MAKE-INSTANCE and WARN

Location 

stores.lisp

DEFINE-TRAP-TYPE
 (DEFINE-TRAP-TYPE ID NAME &KEY GFX-SYM TEXT-SYM EFFECT MIN-DEPTH MAX-DEPTH RARITY) [function]
Description 

Defines and registers a trap-type.

Calls 
Location 

global.lisp

DEFINE-UPDATE-KEY
 (DEFINE-UPDATE-KEY KEY DESC) [macro]

DEFINE-VISUAL-PROJECTILE
 (DEFINE-VISUAL-PROJECTILE ID &KEY GFX-PATH TEXT-PATH) [function]
Calls 

(SETF GETHASH), (SETF PROJECTILE.GFX-PATH), (SETF PROJECTILE.TEXT-PATH), ARRAYP, MAKE-INSTANCE and VERIFY-ID

Location 

global.lisp

DEFINE-VISUAL-STATE
 (DEFINE-VISUAL-STATE KEY PRIORITY &KEY DESC GFX-SYM) [function]
Description 

Defines and registers a visual state in the variant.

Calls 

(SETF GFX-SYM), (SETF VARIANT.VISUAL-STATES), (SETF VISUAL-STATE.DESC), (SETF VISUAL-STATE.KEY), (SETF VISUAL-STATE.PRIORITY), MAKE-INSTANCE, SORT and VARIANT.VISUAL-STATES

Location 

global.lisp

DEFSUBST
 (DEFSUBST NAME ARGLIST) [macro]
Description 

Declare an inline defun.

Location 

base.lisp

DELAY
 (DELAY MSECS) [function]
Description 

Delays given amount of msecs.

Called By 

DISPLAY-MOVING-OBJECT

Calls 

SLEEP

Location 

global.lisp

DELAYED-EXPR
 (DELAYED-EXPR (OBJ DELAYED)) [function]

(SETF DELAYED-EXPR)
 ((SETF DELAYED-EXPR) (OBJ DELAYED)) [function]

DELAYED-P
 (DELAYED-P OBJ) [predicate]

DELIVER-ELEMENTAL-DAMAGE!
 (DELIVER-ELEMENTAL-DAMAGE! VARIANT SOURCE TARGET ELEMENT DAMAGE) [generic]
Description 

Gives out decent elemental damage to a target.

Location 

generics.lisp

DISARM-TRAP!
 (DISARM-TRAP! DUNGEON X Y) [function]
Calls 

(SETF CAVE-DECOR), (SETF DUNGEON.DECOR), CAVE-DECOR, DELETE, DUNGEON.DECOR, LIGHT-SPOT!, PRINT-MESSAGE! and RANDOM

Location 

actions.lisp

DISPLAY-CREATURE
 (DISPLAY-CREATURE VARIANT CREATURE &KEY MODE) [generic]
Description 

Displays the creature to the UI.

Location 

generics.lisp

DISPLAY-CREATURE
 (DISPLAY-CREATURE (VARIANT VARIANT) (PLAYER PLAYER) &KEY MODE) [method]
Calls 

CLEAR-WINDOW, DISPLAY-PLAYER-EXTRA, DISPLAY-PLAYER-MISC, DISPLAY-PLAYER-SKILLS, DISPLAY-PLAYER-STATS and GET-SETTING

Location 

print.lisp

DISPLAY-HELP-TOPICS
 (DISPLAY-HELP-TOPICS VARIANT TITLE START-ROW) [function]
Description 

Displays help-topics to screen and asks for input on further help.

Calls 

CLEAR-WINDOW, GET-VALID-KEY, MAKE-STRING, PUT-COLOURED-STR!, READ-ONE-CHARACTER, SHOW-ENTRIES, SHOW-TITLE and VARIANT.HELP-TOPICS

Location 

print.lisp

DISPLAY-HIGH-SCORES
 (DISPLAY-HIGH-SCORES VARIANT HIGHSCORE-LIST &KEY CURRENT USE-TERM) [generic]
Description 

Displays high-scores in some way.

Location 

generics.lisp

DISPLAY-HIGH-SCORES
 (DISPLAY-HIGH-SCORES (VARIANT VARIANT) HIGHSCORE-LIST &KEY (CURRENT 0) (USE-TERM T)) [method]
Calls 

FORMAT, HS-ENTRY.CAUSE-OF-DEATH, HS-ENTRY.DEPTH, HS-ENTRY.NAME, HS-ENTRY.SCORE and PUT-COLOURED-LINE!

Location 

death.lisp

DISPLAY-HOUSE
 (DISPLAY-HOUSE PLAYER HOUSE &KEY OFFSET) [generic]
Description 

Displays the house in some appropriate way. Offset is used e.g when printing list of items.

Called By 

%SHOP-INPUT-LOOP

Location 

generics.lisp

DISPLAY-MOVING-OBJECT
 (DISPLAY-MOVING-OBJECT DUNGEON X Y TEXT-SYM GFX-SYM) [function]
Description 

Prints the OBJ-CHAR with OBJ-ATTR at given coordinates with proper delay.

Calls 

(SETF WINDOW-COORD), DELAY, GET-RELATIVE-COORDS, LIGHT-SPOT!, PAINT-COORD, REFRESH-WINDOW and WINDOW.GFX-TILES?

Location 

project.lisp

DISPLAY-PLAYER-COMBAT-RATINGS
 (DISPLAY-PLAYER-COMBAT-RATINGS VARIANT PLAYER TERM SETTINGS) [generic]
Description 

Display combat info about the player for the character sheet.

Location 

generics.lisp

DISPLAY-PLAYER-EXTRA
 (DISPLAY-PLAYER-EXTRA VARIANT PLAYER TERM SETTINGS) [generic]
Description 

Display extra info about the player for the character sheet.

Location 

generics.lisp

DISPLAY-PLAYER-SKILLS
 (DISPLAY-PLAYER-SKILLS VARIANT PLAYER TERM SETTINGS) [generic]
Description 

Display skills for the player for the character sheet.

Location 

generics.lisp

DISPLAY-PLAYER-SKILLS
 (DISPLAY-PLAYER-SKILLS (VARIANT VARIANT) (PLAYER PLAYER) TERM SETTINGS) [method]
Calls 

OUTPUT-STRING! and SETTING-LOOKUP

Location 

print.lisp

DISPLAY-TARGET
 (DISPLAY-TARGET DUNGEON TARGET) [function]
Called By 

HANDLE-MOUSE-CLICK and INTERACTIVE-TARGETING!

Calls 

IS-LEGAL-TARGET?, PUT-CURSOR-RELATIVE!, TARGET.X and TARGET.Y

Location 

actions.lisp

DISPLAY-VISUAL-STATES
 (DISPLAY-VISUAL-STATES VARIANT) [function]
Description 

Tries to display the necessary visual states.

Called By 

PRINT-EXTRA-FRAME-CONTENT and REDRAW-STUFF

Calls 

(SETF WINDOW-COORD), GET-SYSTEM-TYPE, GFX-SYM, PAINT-WINDOW, VARIANT.VISUAL-STATES, VISUAL-STATE.ACTIVE, WINDOW.DISABLED?, WINDOW.HEIGHT, WINDOW.VISIBLE? and WINDOW.WIDTH

Location 

global.lisp

DISTANCE
 (DISTANCE X1 Y1 X2 Y2) [function]
Description 

returns a fixnum

Called By 

TELEPORT-CREATURE!, UPDATE-SLEEP-STATUS and VINFO-INIT&

Calls 

INT-/

Location 

dungeon.lisp

DISTRIBUTE-FLAVOURS!
 (DISTRIBUTE-FLAVOURS! VARIANT) [generic]
Description 

Tries to distribute flavours for the given objects.

Location 

generics.lisp

DISTRIBUTE-FLAVOURS!
 (DISTRIBUTE-FLAVOURS! (VAR-OBJ VARIANT)) [method]

DISTURBANCE
 (DISTURBANCE VARIANT PLAYER SOURCE LEVEL) [generic]
Description 

Notifies the player of a disturbance, the source of the disturbance and what level the disturbance is, e.g :minor, :major, ..

Called By 

%EXECUTE-TRAP, PROCESS-WORLD&, TRIGGER-SPECIAL-ABILITY, TRIGGER-SPECIAL-ABILITY, TRIGGER-SPECIAL-ABILITY and TRIGGER-SPECIAL-ABILITY

Location 

generics.lisp

DISTURBANCE
 (DISTURBANCE (VARIANT VARIANT) (PLAYER PLAYER) SOURCE LEVEL) [method]
Calls 

STOP-CREATURE-ACTIVITY

Location 

util.lisp

DO-PROJECTION
 (DO-PROJECTION SOURCE TARGET-X TARGET-Y FLAG &KEY EFFECT DAMAGE RADIUS RANGE PROJECTED-OBJECT SOUND) [generic]
Description 

Does a general projection.

Called By 

%SIMPLE-PROJECTION, LIGHT-AREA!, VAN-BREATH! and VAN-FIRE-BALL!

Location 

generics.lisp

DRAW-ACTIVE-OBJECTS
 (DRAW-ACTIVE-OBJECTS WIN DUNGEON PLAYER) [function]
Description 

Draws all active objects that are in the viewport.

Called By 

RUN-LEVEL!

Calls 
Location 

dungeon.lisp

DRAW-CREATURES
 (DRAW-CREATURES WIN DUNGEON PLAYER) [function]
Description 

Draws all creatures that are in the viewport.

Called By 

RUN-LEVEL!

Calls 
Location 

dungeon.lisp

DRAW-RELATIVE-EFFECT!
 (DRAW-RELATIVE-EFFECT! DUNGEON X Y TEXT-SYM GFX-SYM) [function]
Description 

Draws a relative effect on a coordinate, no extra delay or relighting.

Calls 

(SETF WINDOW-COORD), GET-RELATIVE-COORDS, PAINT-COORD and WINDOW.GFX-TILES?

Location 

project.lisp

DRAW-SCREEN-OBJ
 (DRAW-SCREEN-OBJ WIN OBJ VX VY SYM-FUN) [function]
Description 

Don't use this one!

Called By 

DRAW-ACTIVE-OBJECTS and DRAW-CREATURES

Calls 

DISPLAY-X, DISPLAY-Y, FUNCALL, LOCATION-X, LOCATION-Y, ORG.LANGBAND.FFI:C-TRANSPARENT-BLIT, WINDOW.NUM-ID, WINDOW.TILE-HEIGHT, WINDOW.TILE-WIDTH, X-OFFSET and Y-OFFSET

Location 

dungeon.lisp

DRAW-TO-MAP
 (DRAW-TO-MAP DUNGEON X Y TX TY) [function]
Description 

Returns two values, attr and char, use M-V-B to get the values.

Called By 

CLEAR-OLD-TILES! and LIGHT-SPOT!

Calls 
Location 

dungeon.lisp

DROP-NEAR-LOCATION!
 (DROP-NEAR-LOCATION! VARIANT DUNGEON OBJECT X Y) [generic]
Description 

Tries to drop an object at given locaton.

Called By 

INTERACTIVE-DROP-ITEM!, SHOOT-A-MISSILE and THROW-OBJECT

Location 

generics.lisp

DROP-NEAR-LOCATION!
 (DROP-NEAR-LOCATION! (VARIANT VARIANT) (DUNGEON DUNGEON) (OBJECT ACTIVE-OBJECT) X Y) [method]
Calls 

BIT-FLAG-SET?, CAVE-FLOOR, FLOOR.FLAGS, GET-ENSURED-FLOOR-TABLE, ITEM-TABLE-ADD! and POSS-DROP

Location 

util.lisp

DUMP-ALLOC-TABLE
 (DUMP-ALLOC-TABLE TABLE FNAME) [function]
Description 

Dumps an alloc-table to the given file.

Location 

dump.lisp

DUMP-FLOORS
 (DUMP-FLOORS OUT-FILE &OPTIONAL FLOOR-LIST) [function]
Calls 

COPY-LIST and SORT

Location 

dump.lisp

DUMP-OBJECTS
 (DUMP-OBJECTS OUT-FILE &OPTIONAL OBJECT-LIST) [function]
Calls 

GET-LOADABLE-FORM, GET-OBJECT-LIST, PPRINT, PRINT and TERPRI

Location 

dump.lisp

DUN-DATA.COL-ROOMS
 (DUN-DATA.COL-ROOMS (OBJ DUN-DATA)) [function]

(SETF DUN-DATA.COL-ROOMS)
 ((SETF DUN-DATA.COL-ROOMS) (OBJ DUN-DATA)) [function]

DUN-DATA.CROWDED
 (DUN-DATA.CROWDED (OBJ DUN-DATA)) [function]

(SETF DUN-DATA.CROWDED)
 ((SETF DUN-DATA.CROWDED) (OBJ DUN-DATA)) [function]

DUN-DATA.DOORS
 (DUN-DATA.DOORS (OBJ DUN-DATA)) [function]

(SETF DUN-DATA.DOORS)
 ((SETF DUN-DATA.DOORS) (OBJ DUN-DATA)) [function]

DUN-DATA.ROOM-CENTRES
 (DUN-DATA.ROOM-CENTRES (OBJ DUN-DATA)) [function]

(SETF DUN-DATA.ROOM-CENTRES)
 ((SETF DUN-DATA.ROOM-CENTRES) (OBJ DUN-DATA)) [function]

DUN-DATA.ROOM-MAP
 (DUN-DATA.ROOM-MAP (OBJ DUN-DATA)) [function]

(SETF DUN-DATA.ROOM-MAP)
 ((SETF DUN-DATA.ROOM-MAP) (OBJ DUN-DATA)) [function]

DUN-DATA.ROW-ROOMS
 (DUN-DATA.ROW-ROOMS (OBJ DUN-DATA)) [function]

(SETF DUN-DATA.ROW-ROOMS)
 ((SETF DUN-DATA.ROW-ROOMS) (OBJ DUN-DATA)) [function]

DUN-DATA.TUNNELS
 (DUN-DATA.TUNNELS (OBJ DUN-DATA)) [function]

(SETF DUN-DATA.TUNNELS)
 ((SETF DUN-DATA.TUNNELS) (OBJ DUN-DATA)) [function]

DUN-DATA.WALLS
 (DUN-DATA.WALLS (OBJ DUN-DATA)) [function]

(SETF DUN-DATA.WALLS)
 ((SETF DUN-DATA.WALLS) (OBJ DUN-DATA)) [function]

DUNGEON.ACTION-QUEUE
 (DUNGEON.ACTION-QUEUE (OBJ DUNGEON)) [function]

(SETF DUNGEON.ACTION-QUEUE)
 ((SETF DUNGEON.ACTION-QUEUE) (OBJ DUNGEON)) [function]
Called By 

CREATE-DUNGEON

Location 

classes.lisp

DUNGEON.ACTIVE
 (DUNGEON.ACTIVE (OBJ DUNGEON)) [function]

(SETF DUNGEON.ACTIVE)
 ((SETF DUNGEON.ACTIVE) (OBJ DUNGEON)) [function]

DUNGEON.DECOR
 (DUNGEON.DECOR (OBJ DUNGEON)) [function]

(SETF DUNGEON.DECOR)
 ((SETF DUNGEON.DECOR) (OBJ DUNGEON)) [function]
Called By 

DISARM-TRAP!

Location 

classes.lisp

DUNGEON.DEPTH
 (DUNGEON.DEPTH (OBJ DUNGEON)) [function]

(SETF DUNGEON.DEPTH)
 ((SETF DUNGEON.DEPTH) (OBJ DUNGEON)) [function]
Called By 

CREATE-DUNGEON

Location 

classes.lisp

DUNGEON.HEIGHT
 (DUNGEON.HEIGHT (OBJ DUNGEON)) [function]

(SETF DUNGEON.HEIGHT)
 ((SETF DUNGEON.HEIGHT) (OBJ DUNGEON)) [function]

DUNGEON.MONSTERS
 (DUNGEON.MONSTERS (OBJ DUNGEON)) [function]

(SETF DUNGEON.MONSTERS)
 ((SETF DUNGEON.MONSTERS) (OBJ DUNGEON)) [function]
Called By 

%FILED-DUNGEON, CLEAN-DUNGEON! and REMOVE-MONSTER-FROM-DUNGEON!

Location 

classes.lisp

DUNGEON.OBJECTS
 (DUNGEON.OBJECTS (OBJ DUNGEON)) [function]

(SETF DUNGEON.OBJECTS)
 ((SETF DUNGEON.OBJECTS) (OBJ DUNGEON)) [function]
Called By 

REMOVE-ITEM-FROM-DUNGEON!

Location 

classes.lisp

DUNGEON.ROOMS
 (DUNGEON.ROOMS (OBJ DUNGEON)) [function]

(SETF DUNGEON.ROOMS)
 ((SETF DUNGEON.ROOMS) (OBJ DUNGEON)) [function]
Called By 

%FILED-DUNGEON and CLEAN-DUNGEON!

Location 

classes.lisp

DUNGEON.TABLE
 (DUNGEON.TABLE (OBJ DUNGEON)) [function]

(SETF DUNGEON.TABLE)
 ((SETF DUNGEON.TABLE) (OBJ DUNGEON)) [function]
Called By 

CREATE-DUNGEON

Location 

classes.lisp

DUNGEON.TRIGGERS
 (DUNGEON.TRIGGERS (OBJ DUNGEON)) [function]

(SETF DUNGEON.TRIGGERS)
 ((SETF DUNGEON.TRIGGERS) (OBJ DUNGEON)) [function]
Called By 

CLEAN-DUNGEON!

Location 

classes.lisp

DUNGEON.WIDTH
 (DUNGEON.WIDTH (OBJ DUNGEON)) [function]

(SETF DUNGEON.WIDTH)
 ((SETF DUNGEON.WIDTH) (OBJ DUNGEON)) [function]

E
 (E &OPTIONAL (UI "sdl")) [function]
Calls 

A

Location 

init.lisp

EFFECT-ENTRY-ENERGY-USE
 (EFFECT-ENTRY-ENERGY-USE (OBJ EFFECT-ENTRY)) [function]

(SETF EFFECT-ENTRY-ENERGY-USE)
 ((SETF EFFECT-ENTRY-ENERGY-USE) (OBJ EFFECT-ENTRY)) [function]

EFFECT-ENTRY-FUN
 (EFFECT-ENTRY-FUN (OBJ EFFECT-ENTRY)) [function]

(SETF EFFECT-ENTRY-FUN)
 ((SETF EFFECT-ENTRY-FUN) (OBJ EFFECT-ENTRY)) [function]

EFFECT-ENTRY-P
 (EFFECT-ENTRY-P OBJ) [predicate]

EFFECT-ENTRY-TYPE
 (EFFECT-ENTRY-TYPE (OBJ EFFECT-ENTRY)) [function]

(SETF EFFECT-ENTRY-TYPE)
 ((SETF EFFECT-ENTRY-TYPE) (OBJ EFFECT-ENTRY)) [function]

ENERGY-FOR-SPEED
 (ENERGY-FOR-SPEED CRT) [function]
Called By 

PROCESS-WORLD&

Calls 

GET-CREATURE-SPEED

Location 

loop.lisp

ENGINE-ALLOWS-GFX-TILES?
 (ENGINE-ALLOWS-GFX-TILES?) [function]
Description 

Return T if the running program uses gfx-tiles?

Calls 

GET-SYSTEM-TYPE

Location 

global.lisp

EQUIP-CHARACTER!
 (EQUIP-CHARACTER! VARIANT PLAYER SETTINGS) [generic]
Description 

Equips character according to settings and variant.

Location 

generics.lisp

ESTABLISH-DATA-IN-WINDOW
 (ESTABLISH-DATA-IN-WINDOW WIN) [function]
Description 

Makes the datastructures internally.

Called By 

CREATE-WINDOW

Calls 

(SETF WINDOW.DATA), (SETF WINDOW.FLAGMAP), MAKE-ARRAY, WINDOW.HEIGHT and WINDOW.WIDTH

Location 

window.lisp

ESTABLISH-FLAVOUR&
 (ESTABLISH-FLAVOUR& FLAVOUR-TYPE NAME &KEY GFX-SYM TEXT-SYM) [function]
Called By 

DEFINE-BASIC-FLAVOUR

Calls 

(SETF GETHASH), (SETF GFX-SYM), (SETF TEXT-SYM), FLAVOUR-TYPE.TABLE, FLAVOUR-TYPE.UNUSED-FLAVOURS, MAKE-INSTANCE and NON-NEGATIVE-INTEGER?

Location 

object.lisp

ESTABLISH-HOUSE&
 (ESTABLISH-HOUSE& VAR-OBJ HOUSE &KEY (HOUSE-KEY NIL)) [function]
Description 

Establish a house as available type. Returns NIL on failure, and the house on success.

Called By 

DEFINE-HOUSE and DEFINE-STORE

Calls 

(SETF GETHASH), HOUSE.ID, IS-VARIANT? and VARIANT.HOUSE-TYPES

Location 

building.lisp

ESTABLISH-OWNER&
 (ESTABLISH-OWNER& VAR-OBJ OWNER) [function]
Description 

Establish an owner as available. Returns NIL on failure and owner on success.

Called By 

DEFINE-STORE-OWNER

Calls 

(SETF GETHASH), IS-VARIANT?, OWNER.ID and VARIANT.HOUSE-OWNERS

Location 

building.lisp

ESTABLISH-UI-THEME-SIZE-CALCULATIONS&
 (ESTABLISH-UI-THEME-SIZE-CALCULATIONS& THEME) [function]
Description 

Tells the C-side of wanted sizes for subwindows.

Called By 

UPDATE-TERM-SIZES!

Calls 
Location 

themes.lisp

EXECUTE-TURN-EVENTS!
 (EXECUTE-TURN-EVENTS! VAR-OBJ) [function]
Description 

Executes any turn-events.

Calls 

GETHASH, REMHASH, VARIANT.TURN, VARIANT.TURN-EVENTS and WARN

Location 

global.lisp

FETCH-THEME-VAR
 (FETCH-THEME-VAR THEME VAR-ARG) [function]
Description 

Tries to return a dynamic variable in the theme.

Called By 

HANDLE-UI-THEME-CALCULATION

Calls 

MAKE-DELAYED, POSSIBLE-EXPAND, THEME.WINDOWS, WINDOW.ID, WINDOW.PIXEL-HEIGHT, WINDOW.PIXEL-WIDTH, WINDOW.TILE-HEIGHT, WINDOW.TILE-WIDTH, WINDOW.X-OFFSET and WINDOW.Y-OFFSET

Location 

themes.lisp

FIELD-PRINTER-P
 (FIELD-PRINTER-P OBJ) [predicate]

FIELD-PRINTER.COL
 (FIELD-PRINTER.COL (OBJ FIELD-PRINTER)) [function]

(SETF FIELD-PRINTER.COL)
 ((SETF FIELD-PRINTER.COL) (OBJ FIELD-PRINTER)) [function]
Called By 

REGISTER-FIELD-ORDER

Location 

classes.lisp

FIELD-PRINTER.HANDLER
 (FIELD-PRINTER.HANDLER (OBJ FIELD-PRINTER)) [function]

(SETF FIELD-PRINTER.HANDLER)
 ((SETF FIELD-PRINTER.HANDLER) (OBJ FIELD-PRINTER)) [function]
Called By 

DEFINE-PRINTFIELD-HANDLER

Location 

classes.lisp

FIELD-PRINTER.KEY
 (FIELD-PRINTER.KEY (OBJ FIELD-PRINTER)) [function]

(SETF FIELD-PRINTER.KEY)
 ((SETF FIELD-PRINTER.KEY) (OBJ FIELD-PRINTER)) [function]

FIELD-PRINTER.ROW
 (FIELD-PRINTER.ROW (OBJ FIELD-PRINTER)) [function]

(SETF FIELD-PRINTER.ROW)
 ((SETF FIELD-PRINTER.ROW) (OBJ FIELD-PRINTER)) [function]
Called By 

REGISTER-FIELD-ORDER

Location 

classes.lisp

FIELD-PRINTER.WINDOW-KEY
 (FIELD-PRINTER.WINDOW-KEY (OBJ FIELD-PRINTER)) [function]

(SETF FIELD-PRINTER.WINDOW-KEY)
 ((SETF FIELD-PRINTER.WINDOW-KEY) (OBJ FIELD-PRINTER)) [function]
Called By 

DEFINE-PRINTFIELD-HANDLER

Location 

classes.lisp

FILED-PLAYER-DATA
 (FILED-PLAYER-DATA VARIANT PLAYER) [generic]
Description 

Overridable method for reading in data furing a LOAD.

Called By 

%FILED-PLAYER

Location 

generics.lisp

FILED-VARIANT-DATA
 (FILED-VARIANT-DATA VARIANT) [generic]
Description 

Overridable method for reading in data during a LOAD.

Location 

generics.lisp

FILED-VARIANT-DATA
 (FILED-VARIANT-DATA (VARIANT VARIANT) &KEY TURN INFORMATION) [method]
Calls 

(SETF GET-INFORMATION) and (SETF VARIANT.TURN)

Location 

load.lisp

FILL-AREA
 (FILL-AREA WINDOW IMG TILE-NUM X1 Y1 X2 Y2) [function]
Description 

Paints tile number TILE-NUM from given image IMG, to the rectangle (x1,y1,x2,y2) in window WINDOW.

Called By 

PLAY-GAME&

Calls 

TILE-PAINT-VALUE

Location 

global.lisp

FILL-DUNGEON-PART-WITH-FLOOR!
 (FILL-DUNGEON-PART-WITH-FLOOR! DUNGEON FLOOR WIDTH-RANGE HEIGHT-RANGE) [function]
Description 

height-range and width-range should be conses where car is start and cdr is the non-included end (ie [start, end> )

Called By 

GENERATE-LEVEL!

Location 

dungeon.lisp

FILL-DUNGEON-WITH-FLOOR!
 (FILL-DUNGEON-WITH-FLOOR! DUNGEON FLOOR) [function]
Description 

Cleans and then fills the dungeon with a given floor. Returns nothing.

Called By 

GENERATE-LEVEL!

Calls 

(SETF COORD-FLOOR), CLEAN-COORD! and WITH-DUNGEON

Location 

dungeon.lisp

FILL-PLAYER-ABILITIES!
 (FILL-PLAYER-ABILITIES! VARIANT TARGET SOURCE) [generic]
Description 

Fills the target with values from source.

Location 

generics.lisp

FILL-PLAYER-ABILITIES!
 (FILL-PLAYER-ABILITIES! (VARIANT VARIANT) (TO PLAYER-ABILITIES) (FROM PLAYER-ABILITIES)) [method]
Calls 

(SETF SLOT-VALUE) and SLOT-VALUE

Location 

player.lisp

FILL-UP-STORE!
 (FILL-UP-STORE! VARIANT STORE &OPTIONAL (ATTEMPTS 10)) [function]
Description 

Tries several attempts (default 10) to run maintenace on the store.

Called By 

GENERATE-LEVEL!

Calls 

STORE-MAINTENANCE!

Location 

stores.lisp

FINALISE-VISUAL-EVENT
 (FINALISE-VISUAL-EVENT EVT DUNGEON PLAYER CUR-TICK) [generic]
Called By 

RUN-LEVEL!

Location 

classes.lisp

FINALISE-VISUAL-EVENT
 (FINALISE-VISUAL-EVENT (EVT SPRITE-MOVEMENT) DUNGEON PLAYER CUR-TICK) [method]
Calls 

(SETF VISEVENT.MODE)

Location 

util.lisp

FIND-APPROPRIATE-MONSTER
 (FIND-APPROPRIATE-MONSTER LEVEL ROOM PLAYER) [generic]
Description 

Returns an appropriate monster for a given level/room/player combo. Allowed to return NIL.

Location 

generics.lisp

FIND-APPROPRIATE-ROOM
 (FIND-APPROPRIATE-ROOM VARIANT LEVEL PLAYER) [generic]
Description 

Tries to find an appropriate room-type for given dungeon.

Location 

generics.lisp

FIND-APPROPRIATE-ROOM
 (FIND-APPROPRIATE-ROOM VARIANT LEVEL PLAYER) [method]
Calls 

ERROR

Location 

dungeon.lisp

FIND-EVENT-FOR-KEY
 (FIND-EVENT-FOR-KEY ID &KEY (VARIANT *VARIANT*)) [function]
Description 

Tries to find an event for the given id.

Called By 

GET-LEGAL-EVENTS

Calls 

GETHASH, SYMBOL-NAME and VARIANT.EVENT-TYPES

Location 

global.lisp

FIND-FLAVOUR-TYPE
 (FIND-FLAVOUR-TYPE VARIANT-OBJ TYPE) [function]
Description 

Tries to find given flavour-type in given variant-obj.

Called By 

DEFINE-BASIC-FLAVOUR

Calls 

GETHASH and VARIANT.FLAVOUR-TYPES

Location 

object.lisp

FIND-IMAGE
 (FIND-IMAGE VARIANT FNAME) [function]
Description 

Tries to find index for an image, NIL when there is none.

Called By 

LOAD-SETTING-BACKGROUND, PAINT-GFX-IMAGE& and TEXTURE-BACKGROUND!

Location 

global.lisp

FIND-KEY-OPERATION
 (FIND-KEY-OPERATION KEY) [function]
Description 

returns an operation or NIL.

Called By 

CHECK-KEYPRESS and DEFINE-KEYPRESS

Calls 

GETHASH

Location 

global.lisp

FIND-LEVEL-FOR-XP
 (FIND-LEVEL-FOR-XP XP XP-TABLE) [function]
Description 

Returns level for given xp according to given xp-table.

Location 

player.lisp

FIND-RANDOM-TRAP
 (FIND-RANDOM-TRAP VARIANT DUNGEON X Y) [generic]
Description 

Finds a random trap and returns it initialised.

Location 

generics.lisp

FIND-RANDOM-TRAP
 (FIND-RANDOM-TRAP VARIANT DUNGEON X Y) [method]
Calls 

HASH-TABLE-COUNT, RANDOM and VARIANT.TRAPS

Location 

generate.lisp

FIND-UI-THEME
 (FIND-UI-THEME SYSTEM-TYPE) [function]
Description 

Tries to read in a theme.

Called By 

GAME-INIT&

Calls 

GAME-DATA-PATH, PROBE-FILE and STRING-DOWNCASE

Location 

themes.lisp

FLAG
 (FLAG FLAG) [function]
Calls 

GET-INFORMATION

Location 

global.lisp

FLAVOUR-OBJECT!
 (FLAVOUR-OBJECT! VARIANT OBJECT) [generic]
Description 

Tries to flavour the object.

Location 

generics.lisp

FLAVOUR-OBJECT!
 (FLAVOUR-OBJECT! (VARIANT VARIANT) (OBJ OBJECT-KIND)) [method]
Calls 

WARN

Location 

object.lisp

FLAVOUR-SIMPLE-OBJECT-KIND!
 (FLAVOUR-SIMPLE-OBJECT-KIND! VAR-OBJ KIND) [function]
Description 

This is a helper function that flavours an object-kind where the flavouring follows a simple pattern.

Called By 

FLAVOUR-OBJECT!, FLAVOUR-OBJECT!, FLAVOUR-OBJECT!, FLAVOUR-OBJECT!, FLAVOUR-OBJECT!, FLAVOUR-OBJECT!, FLAVOUR-OBJECT! and FLAVOUR-OBJECT!

Calls 
Location 

object.lisp

FLUSH-COORDS
 (FLUSH-COORDS WIN X Y W H) [function]
Description 

Takes as arguments a WINDOW object (not checked), and tile-numbers for X, Y, W and H (not absolute pixels).

Called By 

CLEAR-ROW, OUTPUT-STRING!, REMOVE-TARGET-DISPLAY, SET-CURSOR-TO and WIN/FORMAT

Calls 

ORG.LANGBAND.FFI:C-FLUSH-COORDS!, WINDOW.NUM-ID, WINDOW.TILE-HEIGHT and WINDOW.TILE-WIDTH

Location 

window.lisp

FLUSH-MESSAGES!
 (FLUSH-MESSAGES! &OPTIONAL (FORCED NIL)) [function]
Called By 

%INPUT-ONE-KEY, %SHOP-INPUT-LOOP, GET-AIM-DIRECTION and PLAY-GAME&

Calls 

ADVANCE-MESSAGE-SYS! and TRY-PRINTING-MESSAGES!

Location 

global.lisp

FLUSH-WINDOW
 (FLUSH-WINDOW THE-WIN) [function]
Description 

Flushes the entire window with force.

Calls 

ORG.LANGBAND.FFI:C-FLUSH-COORDS!, WINDOW.HEIGHT, WINDOW.NUM-ID, WINDOW.TILE-HEIGHT, WINDOW.TILE-WIDTH and WINDOW.WIDTH

Location 

window.lisp

FORGET-VIEW!
 (FORGET-VIEW! DUNGEON PLAYER) [function]
Description 

Clears everything currently viewed.

Calls 

(SETF CAVE-FLAGS), BIT-FLAG-REMOVE!, CAVE-FLAGS, GRID-X, GRID-Y, LIGHT-SPOT! and LOGIOR

Location 

view.lisp

FORMAT-NOTE!
 (FORMAT-NOTE! FORMAT-STR) [macro]
Called By 

LOAD-VARIANT&

Location 

global.lisp

GAIN-POWER-LEVEL!
 (GAIN-POWER-LEVEL! VARIANT PLAYER) [generic]
Description 

The player just gained a level.

Location 

generics.lisp

GAIN-POWER-LEVEL!
 (GAIN-POWER-LEVEL! (VARIANT VARIANT) (PLAYER PLAYER)) [method]
Calls 

(SETF AREF), (SETF PLAYER.MAX-LEVEL), ASK-FOR-REDRAW!, ASK-FOR-UPDATE!, FORMAT-MESSAGE!, MAXIMUM-HP, PLAYER.HP-TABLE, PLAYER.MAX-LEVEL, PLAYER.POWER-LVL and ROLL-HITPOINTS-FOR-NEW-LEVEL

Location 

player.lisp

GAME-DATA-PATH
 (GAME-DATA-PATH FNAME) [function]
Description 

Returns a pathname for fname.

Called By 

FIND-UI-THEME and LOAD-GAME-DATA

Calls 

MERGE-PATHNAMES and PATHNAME

Location 

global.lisp

GAME-INIT&
 (GAME-INIT& &OPTIONAL (UI "sdl") &KEY (SIZE :|800X600|) (FULL-SCREEN NIL)) [function]
Description 

This function should be called from the outside to start the whole show. It will deal with low-level and call appropriately high-level init in correct order.

Called By 

A

Calls 
%ASSIGN-DEBIAN-DIRSBIT-FLAG-ADD!CLOSE
FIND-UI-THEMEFORMATILLEGAL-DATA.DESC
ILLEGAL-DATA.IDINPUT-EVENT-PINSTALL-UI-THEME&
MAKE-INPUT-EVENTMAKE-KEYBOARD-EVENTMAKE-MOUSE-EVENT
MAKE-RANDOM-STATEOPENORG.LANGBAND.FFI:C-CLEANUP-C-SIDE&
ORG.LANGBAND.FFI:C-INIT-C-SIDE&ORG.LANGBAND.FFI:C-INIT-FRAME-SYSTEM&ORG.LANGBAND.FFI:C-SET-LISP-SYSTEM!
PLAY-GAME&STRING-EQUALVINFO-INIT&
WARN  
Location 

init.lisp

GAME-LOOP&
 (GAME-LOOP&) [function]
Description 

This is the main game-loop. and this function looks _ugly_.

Called By 

PLAY-GAME&

Calls 

ACTIVATE-OBJECT, CREATE-APPROPRIATE-LEVEL, CREATURE-ALIVE?, LBSYS/GARBAGE-COLLECT, LOAD-OLD-ENVIRONMENT&, PLAYER.DEPTH, PLAYER.LEAVING?, RUN-LEVEL! and SAVE-CURRENT-ENVIRONMENT&

Location 

loop.lisp

GCU-HANDLE-KEY
 (GCU-HANDLE-KEY KEY K-EV) [function]
Description 

Translates an incoming key from GCU into a langband key-event K-EV.

Called By 

FETCH-EVENT

Calls 

(SETF KBD-EVENT.KEY) and CODE-CHAR

Location 

global.lisp

GENERATE-DRAW
 (GENERATE-DRAW DUNGEON X1 Y1 X2 Y2 FEAT) [function]
Description 

draws a box matching the coordinates

Location 

generate.lisp

GENERATE-FILL
 (GENERATE-FILL DUNGEON X1 Y1 X2 Y2 FEAT) [function]

GENERATE-LEVEL!
 (GENERATE-LEVEL! VARIANT LEVEL PLAYER) [generic]
Description 

Returns the level-object.

Location 

generics.lisp

GENERATE-RANDOM-NAME
 (GENERATE-RANDOM-NAME VARIANT CREATURE RACE) [generic]
Description 

Returns a random name for a given creature of race 'race', or NIL on failure.

Location 

generics.lisp

GENERATE-ROOM
 (GENERATE-ROOM DUNGEON X1 Y1 X2 Y2 LIGHT) [function]
Description 

simple helper function which marks an area as a room. The light argument is a boolean.

Location 

generate.lisp

GET-ACTIVE-MONSTER-BY-LEVEL
 (GET-ACTIVE-MONSTER-BY-LEVEL VARIANT LEVEL &KEY DEPTH) [generic]
Description 

Returns an active monster or NIL.

Location 

generics.lisp

GET-ACTIVE-MONSTER-BY-LEVEL
 (GET-ACTIVE-MONSTER-BY-LEVEL (VARIANT VARIANT) (LEVEL LEVEL) &KEY DEPTH) [method]
Calls 

GET-MONSTER-KIND-BY-LEVEL and PRODUCE-ACTIVE-MONSTER

Location 

allocate.lisp

GET-ACTIVE-OBJECT-BY-LEVEL
 (GET-ACTIVE-OBJECT-BY-LEVEL VARIANT LEVEL &KEY DEPTH) [generic]
Description 

Returns an active object or NIL.

Called By 

STORE-GENERATE-OBJECT

Location 

generics.lisp

GET-ACTIVE-OBJECT-BY-LEVEL
 (GET-ACTIVE-OBJECT-BY-LEVEL (VARIANT VARIANT) (LEVEL LEVEL) &KEY DEPTH (AMOUNT 1)) [method]
Calls 

CREATE-AOBJ-FROM-KIND and GET-OBJECT-KIND-BY-LEVEL

Location 

allocate.lisp

GET-ANIMATED-SPRITE
 (GET-ANIMATED-SPRITE ANIMATION) [function]
Description 

Returns a sprite from an animation for the current moment.

Calls 

ANIM.CURRENT, ANIM.PATH and POSITIVE-INTEGER?

Location 

util.lisp

GET-ARRAY-WITH-NUMBERS
 (GET-ARRAY-WITH-NUMBERS LEN &KEY FILL-POINTER) [function]
Description 

Returns an array with increasing numbers.

Called By 

GENERATE-LEVEL!

Calls 

MAKE-ARRAY

Location 

base.lisp

GET-ATTACK-DESCRIPTION
 (GET-ATTACK-DESCRIPTION VARIANT THE-ATTACK) [generic]
Description 

Returns a string with description of the attack.

Location 

generics.lisp

GET-ATTACK-DESCRIPTION
 (GET-ATTACK-DESCRIPTION VARIANT THE-ATTACK) [method]
Calls 

ATTACK.KIND, GETHASH and VARIANT.ATTACK-DESCRIPTIONS

Location 

combat.lisp

(SETF GET-ATTACK-DESCRIPTION)
 ((SETF GET-ATTACK-DESCRIPTION) VALUE VARIANT THE-ATTACK) [generic]
Description 

Registers a string with description of the attack with the variant.

Called By 

DEFINE-ATTACK-DESCRIPTION

Location 

generics.lisp

(SETF GET-ATTACK-DESCRIPTION)
 ((SETF GET-ATTACK-DESCRIPTION) DESC VARIANT ATTACK) [method]
Calls 

(SETF GETHASH)

Location 

combat.lisp

GET-ATTACK-TYPE
 (GET-ATTACK-TYPE KEY &OPTIONAL (VARIANT *VARIANT*)) [function]
Description 

Returns a possible attack-type object registered with the given variant object.

Calls 

GETHASH and VARIANT.ATTACK-TYPES

Location 

global.lisp

GET-ATTRIBUTE-VALUE
 (GET-ATTRIBUTE-VALUE KEY TABLE) [function]
Description 

Returns the value of the attribute identified by KEY in the TABLE.

Called By 
Calls 

ATTR.VALUE and GETHASH

Location 

player.lisp

GET-CHAR-CLASS
 (GET-CHAR-CLASS ID &KEY (VARIANT *VARIANT*)) [function]
Description 

Gets the class id'ed by id.

Calls 

GETHASH, SYMBOL-NAME and VARIANT.CLASSES

Location 

character.lisp

(SETF GET-CHAR-CLASS)
 ((SETF GET-CHAR-CLASS) CLASS ID) [function]
Description 

Adds class to appropriate tables id'ed by id.

Called By 

REGISTER-CLASS&

Calls 

(SETF GETHASH), SYMBOL-NAME and VARIANT.CLASSES

Location 

character.lisp

GET-CHAR-RACE
 (GET-CHAR-RACE ID &KEY (VARIANT *VARIANT*)) [function]
Description 

Fetches the race id'ed by id from the appropriate table.

Called By 

DEFINE-STORE-OWNER

Calls 

GETHASH and VARIANT.RACES

Location 

character.lisp

(SETF GET-CHAR-RACE)
 ((SETF GET-CHAR-RACE) RACE ID) [function]
Description 

Puts the race in appropriate tables id'ed by id.

Called By 

REGISTER-RACE&

Calls 

(SETF GETHASH)

Location 

character.lisp

GET-CHARACTER-PICTURE
 (GET-CHARACTER-PICTURE VARIANT PLAYER) [generic]
Description 

Returns a filename to a picture of the player character.

Called By 

DISPLAY-PLAYER-MISC

Location 

generics.lisp

GET-CHARACTER-PICTURE
 (GET-CHARACTER-PICTURE (VARIANT VARIANT) (PLAYER PLAYER)) [method]

GET-CLASS-NAME
 (GET-CLASS-NAME PLAYER) [function]
Description 

Returns a string with the name of the class.

Called By 

%QUERY-FOR-CLASS and DISPLAY-PLAYER-MISC

Calls 

CLASS.NAME and PLAYER.CLASS

Location 

player.lisp

GET-CLASS-TILE
 (GET-CLASS-TILE VARIANT PLAYER) [generic]
Description 

Returns two values, file and tile.

Location 

generics.lisp

GET-CLASSES-AS-A-LIST
 (GET-CLASSES-AS-A-LIST VARIANT) [function]
Description 

Returns all available classes.

Called By 

%QUERY-FOR-CLASS

Calls 

REMOVE-DUPLICATES

Location 

character.lisp

GET-COORD-TRIGGER
 (GET-COORD-TRIGGER DUNGEON X Y) [function]
Description 

Tries to find a trigger at a given point.

Called By 

ACTIVATE-OBJECT and APPLY-POSSIBLE-COORD-TRIGGER

Calls 

DUNGEON.TRIGGERS

Location 

dungeon.lisp

(SETF GET-COORD-TRIGGER)
 ((SETF GET-COORD-TRIGGER) VAL DUNGEON X Y) [function]
Description 

Adds a trigger to the given dungeon.

Called By 

ACTIVATE-OBJECT

Calls 

(SETF CDR) and DUNGEON.TRIGGERS

Location 

dungeon.lisp

(SETF GET-CREATURE-AC)
 ((SETF GET-CREATURE-AC) VAL CREATURE) [generic]
Description 

Alters the armour-class of the creature. VALUE must be a fixnum.

Location 

generics.lisp

GET-CREATURE-BURDEN
 (GET-CREATURE-BURDEN CREATURE) [generic]
Description 

Returns a fixnum with the burden the creature carries.

Location 

generics.lisp

GET-CREATURE-BURDEN
 (GET-CREATURE-BURDEN (CRT PLAYER)) [method]
Calls 

PLAYER.BURDEN

Location 

player.lisp

GET-CREATURE-DESC
 (GET-CREATURE-DESC CREATURE DESC-TYPE) [generic]
Description 

Returrns a string referring to the creature in a specified way, see util.lisp for legal desc-type.

Called By 

APPLY-PROJECTION-EFFECT-TO-TARGET!, CAN-MELEE-ATTACK?, DELIVER-DAMAGE!, FINALISE-VISUAL-EVENT, HANDLE-MOUSE-CLICK, TRIGGER-SPECIAL-ABILITY, TRIGGER-SPECIAL-ABILITY, TRIGGER-SPECIAL-ABILITY, TRIGGER-SPECIAL-ABILITY and UPDATE-SLEEP-STATUS

Location 

generics.lisp

GET-CREATURE-DESC
 (GET-CREATURE-DESC CREATURE DESC-TYPE) [method]
Calls 

AMON.SEEN-BY-PLAYER?, BIT-FLAG-AND, CONCATENATE, GET-CREATURE-NAME, IS-FEMALE?, IS-MALE?, IS-PLAYER?, IS-UNIQUE-MONSTER?, IS-VOWEL? and LOGAND

Location 

util.lisp

GET-CREATURE-ENERGY
 (GET-CREATURE-ENERGY CREATURE) [generic]
Description 

Returns a fixnum with energy for the given creature.

Location 

generics.lisp

GET-CREATURE-ENERGY
 (GET-CREATURE-ENERGY (CRT PLAYER)) [method]
Calls 

PLAYER.ENERGY

Location 

player.lisp

(SETF GET-CREATURE-ENERGY)
 ((SETF GET-CREATURE-ENERGY) VALUE CREATURE) [generic]
Description 

Alters the energy of the creature. VALUE must be a fixnum.

Called By 

%FILED-MONSTER

Location 

generics.lisp

(SETF GET-CREATURE-ENERGY)
 ((SETF GET-CREATURE-ENERGY) VAL (CRT PLAYER)) [method]
Calls 

(SETF PLAYER.ENERGY)

Location 

player.lisp

GET-CREATURE-SPEED
 (GET-CREATURE-SPEED CREATURE) [generic]
Description 

Returns a fixnum with speed for the given creature.

Location 

generics.lisp

GET-CREATURE-SPEED
 (GET-CREATURE-SPEED (CRT PLAYER)) [method]
Calls 

PLAYER.SPEED

Location 

player.lisp

(SETF GET-CREATURE-SPEED)
 ((SETF GET-CREATURE-SPEED) VALUE CREATURE) [generic]
Description 

Alters the speed of the creature. VALUE must be a fixnum.

Called By 

%FILED-MONSTER

Location 

generics.lisp

(SETF GET-CREATURE-SPEED)
 ((SETF GET-CREATURE-SPEED) VAL (CRT PLAYER)) [method]
Calls 

(SETF PLAYER.SPEED)

Location 

player.lisp

GET-CREATURE-STATE
 (GET-CREATURE-STATE CREATURE STATE) [generic]
Description 

Returns the value of the named state for the given creature.

Location 

generics.lisp

GET-DESTINATION-COORDS
 (GET-DESTINATION-COORDS SOURCE DESTINATION &OPTIONAL (MULT-FACTOR 1)) [function]
Description 

Returns dest-x and dest-y for projection in given destination. Destination of 5 or a target object will use (current) target.

Called By 

%SIMPLE-PROJECTION, INTERACTIVE-THROW-ITEM!, SHOOT-A-MISSILE, VAN-BREATH! and VAN-FIRE-BALL!

Calls 

IS-LEGAL-TARGET?, IS-PLAYER?, LOCATION-X, LOCATION-Y, PLAYER.TARGET, TARGET.X, TARGET.Y and WARN

Location 

project.lisp

GET-DIRECTION-FROM-COORD-DIFF
 (GET-DIRECTION-FROM-COORD-DIFF DIFF-X DIFF-Y) [function]
Description 

Return a numbered direction from coordinate diff.

Called By 

MAKE-MISSILE-VISUAL

Location 

global.lisp

GET-DOOR
 (GET-DOOR VARIANT KEY &KEY VISIBLE) [generic]
Description 

Queries the variant for a fitting door to the given key. Returns an active-door or NIL if none was found.

Called By 

%FILED-DOOR and %RETRIEVE-DOOR

Location 

generics.lisp

GET-DOOR
 (GET-DOOR VARIANT KEY &KEY (VISIBLE T)) [method]
Calls 

GETHASH, MAKE-INSTANCE and VARIANT.DOORS

Location 

building.lisp

GET-DOOR-TYPE
 (GET-DOOR-TYPE KEY &OPTIONAL (VARIANT *VARIANT*)) [function]
Calls 

GETHASH and VARIANT.DOORS

Location 

building.lisp

GET-ELEMENT-FLAG
 (GET-ELEMENT-FLAG VARIANT ELEMENT) [function]
Description 

Returns the bit-flag for the given element.

Called By 

SHARED-INITIALIZE

Calls 

ELEMENT.BIT-FLAG, ERROR, FIND, VARIANT.ELEMENTS and VARIANT.NAME

Location 

global.lisp

GET-ELEMENT-NUMBER
 (GET-ELEMENT-NUMBER VARIANT ELEMENT) [function]
Description 

Returns the numeric index for the given element.

Called By 

%VAN-GET-RES-LEVEL and %VAN-UPDATE-RESISTANCE

Calls 

ELEMENT.NUMBER, ERROR, FIND, VARIANT.ELEMENTS and VARIANT.NAME

Location 

global.lisp

GET-ELEMENT-NUMBER-FROM-BIT-FLAG
 (GET-ELEMENT-NUMBER-FROM-BIT-FLAG VARIANT BIT-FLAG) [function]
Description 

Returns the numeric index for a given bit-flag.

Calls 

ERROR

Location 

global.lisp

GET-ENSURED-FLOOR-TABLE
 (GET-ENSURED-FLOOR-TABLE DUNGEON THE-X THE-Y) [function]
Description 

Tries to get the items-on-floor for given coordinate, if it doesn't exist it will be created, assigned to the coordinate and returned.

Calls 

(SETF CAVE-OBJECTS), CAVE-OBJECTS and MAKE-FLOOR-CONTAINER

Location 

util.lisp

GET-FLOOR
 (GET-FLOOR VARIANT KEY) [generic]
Description 

Queries the variant for a fitting floor-type to the given key. Returns a floor-type or NIL if none was found.

Location 

generics.lisp

GET-FLOOR-TYPE
 (GET-FLOOR-TYPE ID &KEY (VARIANT *VARIANT*)) [function]
Description 

Returns an object of type FLOOR-TYPE or NIL.

Called By 

ALLOCATE-STAIRS!, BUILD-TUNNEL!, CLEAN-COORD!, DRAW-TO-MAP, GENERATE-LEVEL! and IS-REAL-WALL?

Calls 

GETHASH and VARIANT.FLOOR-TYPES

Location 

global.lisp

(SETF GET-FLOOR-TYPE)
 ((SETF GET-FLOOR-TYPE) FLOOR ID) [function]
Description 

Adds a floor-type with given id to the appropriate table.

Called By 

DEFINE-FLOOR-TYPE

Calls 

(SETF GETHASH) and VARIANT.FLOOR-TYPES

Location 

global.lisp

GET-FRAME-GFX-TILES?
 (GET-FRAME-GFX-TILES? KEY TYPE) [function]
Called By 

UPDATE-TERM-SIZES!

Calls 

ORG.LANGBAND.FFI:C-GET_FRAME-GFX-TILES

Location 

global.lisp

GET-GENDER-NAME
 (GET-GENDER-NAME PLAYER) [function]
Description 

Returns a string with the name of the gender.

Called By 

%QUERY-FOR-GENDER and DISPLAY-PLAYER-MISC

Calls 

GENDER.NAME and PLAYER.GENDER

Location 

player.lisp

GET-HIGH-SCORES
 (GET-HIGH-SCORES VARIANT FNAME) [generic]
Description 

Returns a sorted list of high-scores.

Location 

generics.lisp

GET-HIGH-SCORES
 (GET-HIGH-SCORES VARIANT FNAME) [method]
Calls 

BINARY-TYPES:WITH-BINARY-FILE, MAKE-INSTANCE, NREVERSE, PATHNAME, PROBE-FILE and STR

Location 

death.lisp

GET-HOUSE
 (GET-HOUSE ID &OPTIONAL (VAR-OBJ *VARIANT*)) [function]
Description 

Returns a house-type (non-activated) or NIL.

Called By 

ADD-OWNER-TO-STORE-TYPE!, FILED-VARIANT-DATA, GENERATE-LEVEL!, PROCESS-WORLD&, SAVE-OBJECT, SAVE-OBJECT and VAN/VISIT-SHOP

Calls 

GETHASH, IS-VARIANT? and VARIANT.HOUSE-TYPES

Location 

building.lisp

(SETF GET-ID)
 ((SETF GET-ID) VALUE OBJECT) [generic]
Description 

Sets the tring id for object/monster/whatever.

Location 

generics.lisp

GET-INDENT-STRING
 (GET-INDENT-STRING INDENT) [function]
Called By 

SAVE-OBJECT and SAVE-OBJECT

Calls 

SUBSEQ

Location 

save.lisp

GET-INFORMATION
 (GET-INFORMATION KEY &KEY (DEFAULT NIL) (VARIANT *VARIANT*)) [function]
Description 

Will just return one value, it's not like GETHASH but takes same arguments.

Called By 

FLAG, HANDLE-TURN, IS-RESTING?, SWAP-MONSTERS! and VAN-MOVE-PLAYER!

Calls 

GETHASH and VARIANT.INFORMATION

Location 

global.lisp

(SETF GET-INFORMATION)
 ((SETF GET-INFORMATION) VALUE KEY &KEY (VARIANT *VARIANT*)) [function]
Description 

Assigns value to an information key.

Called By 

%FILED-VARIANT, %RUN-DIRECTION, HANDLE-TURN, RUN-IN-DIRECTION, SET-FLAG and UNSET-FLAG

Calls 

(SETF GETHASH)

Location 

global.lisp

GET-ITEM-TABLE
 (GET-ITEM-TABLE (DUNGEON DUNGEON) (PLAYER PLAYER) WHICH-TABLE &KEY X Y) [method]
Calls 

AOBJ.CONTAINS, GET-CREATURE-INVENTORY, GET-ENSURED-FLOOR-TABLE, LOCATION-X, LOCATION-Y and PLAYER.EQUIPMENT

Location 

util.lisp

GET-KEY-OPERATIONS
 (GET-KEY-OPERATIONS) [function]
Description 

Returns an alist of keys and their operations.

Called By 

PRINT-KEY-TABLE

Calls 

MAPHASH and NREVERSE

Location 

global.lisp

GET-LAST-CONSOLE-COLUMN
 (GET-LAST-CONSOLE-COLUMN &OPTIONAL (TERM -1)) [function]
Called By 

PRINT-NOTE!

Calls 

GET-FRAME-WIDTH

Location 

global.lisp

GET-LAST-CONSOLE-LINE
 (GET-LAST-CONSOLE-LINE &OPTIONAL (TERM -1)) [function]
Called By 

DISPLAY-HOUSE, PAUSE-LAST-LINE!, PRINT-NOTE! and SHOW-MESSAGES

Calls 

GET-FRAME-HEIGHT

Location 

global.lisp

GET-LATE-BIND-FUNCTION
 (GET-LATE-BIND-FUNCTION PACKAGE NAME) [function]
Description 

Tries to find a function that may not exist at read, compile or load time, ie totally dynamic.

Called By 

ACTIVATE-OBJECT

Calls 

FBOUNDP, FDEFINITION, FIND-PACKAGE, FIND-SYMBOL and SYMBOL-NAME

Location 

base.lisp

GET-LEGAL-EVENTS
 (GET-LEGAL-EVENTS EVENT-LIST) [function]
Description 

Goes through the list and ensures that all events are legal, and if they're not they will be replaced with a legal-event or removed. Conses up a new list.

Calls 

FIND-EVENT-FOR-KEY, NREVERSE and WARN

Location 

global.lisp

GET-LEVEL-APPROPRIATE-ENCHANTMENT
 (GET-LEVEL-APPROPRIATE-ENCHANTMENT VARIANT LEVEL MAX) [function]
Description 

Returns an appropriate bonus for items generated on the level.

Called By 

ADD-MAGIC-TO-ITEM!, MAGIC-BONUS-FOR-LEVEL and VAN/ADD-MAGIC-TO-WEAPON!

Calls 

INT-/, LEVEL.DEPTH, NORMALISED-RANDOM, RANDOM and VARIANT.MAX-DEPTH

Location 

util.lisp

GET-LEVEL-BUILDER
 (GET-LEVEL-BUILDER ID &OPTIONAL (VAR-OBJ *VARIANT*)) [function]
Description 

Returns a level-builder or nil.

Called By 

%FILED-LEVEL, CREATE-APPROPRIATE-LEVEL and VAN-MAKE-TOWN-LEVEL-OBJ

Calls 

GETHASH, SYMBOL-NAME and VARIANT.LEVEL-BUILDERS

Location 

global.lisp

GET-LIGHT-RADIUS
 (GET-LIGHT-RADIUS (OBJECT ACTIVE-OBJECT)) [method]
Called By 

GET-LIGHT-RADIUS and UPDATE-VIEW!

Calls 

AOBJ.KIND and GET-LIGHT-RADIUS

Location 

object.lisp

GET-LIST-OF-REDRAWS
 (GET-LIST-OF-REDRAWS CREATURE) [function]
Description 

Returns a list of active redraw-flags.

Calls 

MAPHASH

Location 

base.lisp

GET-LIST-OF-UPDATES
 (GET-LIST-OF-UPDATES CREATURE) [function]
Description 

Returns a list of active update-flags.

Calls 

MAPHASH

Location 

base.lisp

GET-MELEE-ATTACK-SKILL
 (GET-MELEE-ATTACK-SKILL VARIANT CREATURE) [generic]
Description 

Returns the attack-skill of the creature.

Location 

generics.lisp

GET-MELEE-ATTACK-SKILL
 (GET-MELEE-ATTACK-SKILL (VARIANT VARIANT) (PLAYER PLAYER)) [method]

GET-MESSAGES
 (GET-MESSAGES (HANDLER MESSAGE-HANDLER)) [method]
Calls 

MSGHANDLER.SHOWN-MSGS

Location 

global.lisp

GET-MKIND-ALLOC-TABLE
 (GET-MKIND-ALLOC-TABLE VARIANT LEVEL) [generic]
Description 

Returns an allocation table for monster-kinds for the given variant and given level.

Location 

generics.lisp

GET-MKIND-ALLOC-TABLE
 (GET-MKIND-ALLOC-TABLE (VAR-OBJ VARIANT) (LEVEL LEVEL)) [method]
Calls 

GET-MTYPE-TABLE and GOBJ-TABLE.ALLOC-TABLE

Location 

monster.lisp

GET-MKIND-TABLE
 (GET-MKIND-TABLE VARIANT LEVEL) [generic]
Description 

Returns appropriate monster-kind table for variant and level.

Location 

generics.lisp

GET-MKIND-TABLE
 (GET-MKIND-TABLE (VAR-OBJ VARIANT) (LEVEL LEVEL)) [method]
Calls 

GET-MTYPE-TABLE and GOBJ-TABLE.OBJ-TABLE

Location 

monster.lisp

GET-MONSTER-KIND
 (GET-MONSTER-KIND VARIANT ID) [generic]
Description 

Returns a monster-kind with given id for given variant.

Called By 

DISPLAY-MONSTER-RECALL

Location 

generics.lisp

GET-MONSTER-KIND
 (GET-MONSTER-KIND (VARIANT VARIANT) MON) [method]
Calls 

GETHASH, SYMBOL-NAME and VARIANT.MONSTERS

Location 

monster.lisp

GET-MONSTER-KIND-BY-LEVEL
 (GET-MONSTER-KIND-BY-LEVEL VARIANT LEVEL &KEY DEPTH) [generic]
Description 

Returns a monster-kind or NIL.

Location 

generics.lisp

GET-MONSTER-KIND-BY-LEVEL
 (GET-MONSTER-KIND-BY-LEVEL (VARIANT VARIANT) (LEVEL LEVEL) &KEY DEPTH) [method]
Calls 

GET-MKIND-ALLOC-TABLE, LANG-WARN, LEVEL.DEPTH and RANDOM

Location 

allocate.lisp

GET-MONSTER-KNOWLEDGE
 (GET-MONSTER-KNOWLEDGE PLAYER MONSTER) [function]
Called By 

ADD-MONSTER-KNOWLEDGE-FLAG!

Calls 

(SETF GETHASH), AMON.KIND, GET-ID, GETHASH, MAKE-INSTANCE and PLAYER.MONSTER-KNOWLEDGE

Location 

player.lisp

GET-MONSTER-LIST
 (GET-MONSTER-LIST VARIANT &KEY SORT-KEY PREDICATE) [generic]
Description 

Returns a list of monsters for the given variant.

Called By 

VAN-DUMP-MONSTERS

Location 

generics.lisp

GET-MONSTER-LIST
 (GET-MONSTER-LIST (VAR-OBJ VARIANT) &KEY (SORT-KEY #'GET-ID) (PREDICATE #'STRING<)) [method]
Calls 

FUNCTIONP, STABLE-SORT and VARIANT.MONSTERS

Location 

monster.lisp

GET-MOVE-DIRECTION
 (GET-MOVE-DIRECTION SRC-X SRC-Y DEST-X DEST-Y) [function]
Description 

Returns an array of five elements with directions in preferred order to get from monster to player.

Calls 

ABS

Location 

ai.lisp

GET-MTYPE-TABLE
 (GET-MTYPE-TABLE VAR-OBJ LEVEL) [generic]
Description 

hack, may be updated later.

Location 

generics.lisp

GET-NAMED-GAMEOBJ-TABLE
 (GET-NAMED-GAMEOBJ-TABLE VARIANT KEY SLOT) [function]
Description 

Returns a named (slot) gameobj-table from the variant for a level/identifier (key).

Called By 

GET-MTYPE-TABLE, GET-MTYPE-TABLE, GET-MTYPE-TABLE, GET-OTYPE-TABLE, VAN/ADD-EGO-ABILITY! and VAN/REGISTER-LEVELS!

Calls 

GETHASH, LEVEL.ID and SLOT-VALUE

Location 

global.lisp

GET-OBJECT-KIND
 (GET-OBJECT-KIND VARIANT ID) [generic]
Description 

Returns an object-kind with given id for given variant.

Called By 

%FILED-OBJECT, CREATE-AOBJ-FROM-ID, DISPLAY-OBJECT-RECALL and MAKE-STORE-SALES-LIST

Location 

generics.lisp

GET-OBJECT-KIND
 (GET-OBJECT-KIND (VARIANT VARIANT) OBJ) [method]
Calls 

GETHASH, SYMBOL-NAME and VARIANT.OBJECTS

Location 

object.lisp

GET-OBJECT-KIND-BY-LEVEL
 (GET-OBJECT-KIND-BY-LEVEL VARIANT LEVEL &KEY DEPTH) [generic]
Description 

Returns an object-kind or NIL.

Location 

generics.lisp

GET-OBJECT-KIND-BY-LEVEL
 (GET-OBJECT-KIND-BY-LEVEL (VARIANT VARIANT) (LEVEL LEVEL) &KEY DEPTH) [method]
Calls 

GET-OKIND-ALLOC-TABLE, LEVEL.DEPTH, RANDOM and WARN

Location 

allocate.lisp

GET-OBJECT-KNOWLEDGE
 (GET-OBJECT-KNOWLEDGE PLAYER OBJECT) [function]
Called By 

ADD-OBJECT-KNOWLEDGE-FLAG!

Calls 

(SETF GETHASH), AOBJ.KIND, GET-ID, GETHASH, MAKE-INSTANCE and PLAYER.OBJECT-KNOWLEDGE

Location 

player.lisp

GET-OBJECT-LIST
 (GET-OBJECT-LIST &KEY (VAR-OBJ *VARIANT*) (LEVEL *LEVEL*)) [function]
Description 

returns a fresh list. Remove me!

Called By 

DUMP-OBJECTS

Calls 

GET-OKIND-TABLE and STABLE-SORT

Location 

object.lisp

GET-OFFER
 (GET-OFFER OBJECT SITUATION) [generic]
Description 

Returns a number with an offered price for an object in a certain situation.

Called By 

%STORE-SELL-ITEM

Location 

generics.lisp

GET-OFFER
 (GET-OFFER (OBJECT ACTIVE-OBJECT) (STORE STORE)) [method]
Calls 

GET-PRICE and INT-/

Location 

stores.lisp

GET-OKIND-ALLOC-TABLE
 (GET-OKIND-ALLOC-TABLE VARIANT LEVEL) [generic]
Description 

Returns the object-kind allocation table for the given variant and level.

Location 

generics.lisp

GET-OKIND-ALLOC-TABLE
 (GET-OKIND-ALLOC-TABLE (VAR-OBJ VARIANT) (LEVEL LEVEL)) [method]
Calls 

GET-OTYPE-TABLE and GOBJ-TABLE.ALLOC-TABLE

Location 

object.lisp

GET-OKIND-TABLE
 (GET-OKIND-TABLE VARIANT LEVEL) [generic]
Description 

Returns the object-kind table for the given variant and level.

Called By 

GET-OBJECT-LIST

Location 

generics.lisp

GET-OKIND-TABLE
 (GET-OKIND-TABLE (VAR-OBJ VARIANT) (LEVEL LEVEL)) [method]
Calls 

GET-OTYPE-TABLE and GOBJ-TABLE.OBJ-TABLE

Location 

object.lisp

GET-OLD-PLAYER-INFO
 (GET-OLD-PLAYER-INFO VARIANT PLAYER &KEY REUSE-OBJECT) [generic]
Description 

Gets an object with info on the player that can later be used to track changes to important parts of a player-object, e.g for updating right places of the screen. The :REUSE-OBJECT keyword gives an object that can be reused for values, alleviating the need to cons up a new object.

Location 

generics.lisp

GET-OTYPE-TABLE
 (GET-OTYPE-TABLE VAR-OBJ LEVEL) [generic]
Description 

hack, may be updated later.

Location 

generics.lisp

GET-OWNER
 (GET-OWNER ID &OPTIONAL (VAR-OBJ *VARIANT*)) [function]
Description 

Returns an owner (non-activated) or NIL.

Calls 

GETHASH, IS-VARIANT? and VARIANT.HOUSE-OWNERS

Location 

building.lisp

GET-POWER-OF-ATTACK
 (GET-POWER-OF-ATTACK VARIANT ATTACK-KIND) [generic]
Description 

Returns a non-neg integer for how powerful the attack is.

Location 

generics.lisp

GET-POWER-OF-ATTACK
 (GET-POWER-OF-ATTACK VARIANT ATTACK-KIND) [method]
Calls 

ERROR

Location 

combat.lisp

GET-PRICE
 (GET-PRICE OBJECT SITUATION) [generic]
Description 

Returns a number with the price for the object in the given situation.

Called By 

%STORE-BUY-ITEM

Location 

generics.lisp

GET-PRICE
 (GET-PRICE (OBJECT ACTIVE-OBJECT) (STORE STORE)) [method]
Calls 

AOBJ.KIND and OBJECT.COST

Location 

stores.lisp

GET-RACE-NAME
 (GET-RACE-NAME PLAYER) [function]
Description 

Returns a string with the name of the race.

Called By 

%QUERY-FOR-CLASS, %QUERY-FOR-RACE and DISPLAY-PLAYER-MISC

Calls 

PLAYER.RACE and RACE.NAME

Location 

player.lisp

GET-RACES-AS-A-LIST
 (GET-RACES-AS-A-LIST VARIANT) [function]
Description 

Returns a fresh list of all races.

Called By 

%QUERY-FOR-RACE

Calls 

REMOVE-DUPLICATES and VARIANT.RACES

Location 

character.lisp

GET-RANGED-ATTACK-SKILL
 (GET-RANGED-ATTACK-SKILL VARIANT CREATURE) [generic]
Description 

Returns the attack-skill of the creature.

Location 

generics.lisp

GET-RANGED-ATTACK-SKILL
 (GET-RANGED-ATTACK-SKILL (VARIANT VARIANT) (PLAYER PLAYER)) [method]

GET-REGISTERED-VARIANTS
 (GET-REGISTERED-VARIANTS) [function]
Description 

Returns a list of ids to registered variants.

Called By 

INTERACTIVE-VARIANT-SELECT

Location 

global.lisp

GET-RELATIVE-COORDS
 (GET-RELATIVE-COORDS X Y) [function]
Description 

Returns relative x and relative y, or NIL if they're not visible on map.

Called By 

DISPLAY-MOVING-OBJECT, DRAW-RELATIVE-EFFECT! and REMOVE-TARGET-DISPLAY

Calls 

GET-FRAME-HEIGHT, GET-FRAME-WIDTH, PLAYER.VIEW-X and PLAYER.VIEW-Y

Location 

dungeon.lisp

GET-RESISTANCE-TABLE
 (GET-RESISTANCE-TABLE OBJECT) [generic]
Description 

Returns a resistance-table for complex creatures, e.g the player.

Called By 

%VAN-GET-RES-LEVEL, CALCULATE-ABILITIES!, CALCULATE-ABILITIES!, CALCULATE-ABILITIES!, HANDLE-PLAYER-UPDATES! and RESET-PLAYER-OBJECT!

Location 

generics.lisp

(SETF GET-RESISTANCE-TABLE)
 ((SETF GET-RESISTANCE-TABLE) VALUE OBJECT) [generic]
Description 

Sets the resistance-table for a complex creature, e.g the player.

Location 

generics.lisp

GET-ROOM
 (GET-ROOM ID) [function]
Description 

Returns the constructor to build the given room, or NIL.

Called By 

%FILED-ROOM and FIND-APPROPRIATE-ROOM

Calls 

GETHASH, SYMBOL-NAME and VARIANT.ROOM-BUILDERS

Location 

dungeon.lisp

GET-SEARCH-SKILL
 (GET-SEARCH-SKILL VARIANT CREATURE) [generic]
Description 

Returns the attack-skill of the creature.

Called By 

SEARCH-AREA!

Location 

generics.lisp

GET-SEARCH-SKILL
 (GET-SEARCH-SKILL (VARIANT VARIANT) (PLAYER PLAYER)) [method]

GET-SETTING
 (GET-SETTING VARIANT KEY) [generic]
Description 

Gets a setting from the variant identified by the KEY.

Called By 

GENERATE-LEVEL!, PRINT-BASIC-FRAME, PRINT-EXTRA-FRAME-CONTENT and REDRAW-STUFF

Location 

generics.lisp

GET-SETTING
 (GET-SETTING (VARIANT VARIANT) KEY) [method]
Calls 

GETHASH and VARIANT.SETTINGS

Location 

global.lisp

(SETF GET-SETTING)
 ((SETF GET-SETTING) VALUE VARIANT KEY) [generic]
Description 

Sets the setting identified by KEY for the VARIANT to VALUE.

Called By 

ACTIVATE-OBJECT

Location 

generics.lisp

(SETF GET-SETTING)
 ((SETF GET-SETTING) SETTING (VARIANT VARIANT) KEY) [method]
Calls 

(SETF GETHASH), KEYWORDP and WARN

Location 

global.lisp

GET-SETTINGS-OBJ
 (GET-SETTINGS-OBJ ID) [function]
Description 

Returns a settings-table by id.

Called By 

ACTIVATE-OBJECT, DEFINE-SETTINGS and INTERACTIVE-SAVEFILE-SELECT

Calls 

GETHASH

Location 

global.lisp

GET-STAT-NAME-FROM-NUM
 (GET-STAT-NAME-FROM-NUM NUM) [function]
Description 

Improve later..

Called By 

DISPLAY-PLAYER-STATS

Calls 

STAT.ABBREVIATION and VARIANT.STATS

Location 

global.lisp

GET-STAT-NAME-FROM-SYM
 (GET-STAT-NAME-FROM-SYM SYM) [function]
Description 

Improve later..

Calls 

FIND, STAT.ABBREVIATION and VARIANT.STATS

Location 

global.lisp

GET-STAT-NUM-FROM-SYM
 (GET-STAT-NUM-FROM-SYM SYM) [function]
Description 

Improve later..

Calls 

FIND, STAT.NUMBER and VARIANT.STATS

Location 

global.lisp

GET-STAT-OBJ
 (GET-STAT-OBJ VARIANT KEY) [function]
Called By 

UPDATE-PLAYER-STAT!

Calls 

FIND and VARIANT.STATS

Location 

global.lisp

GET-STAT-SUSTAINS
 (GET-STAT-SUSTAINS (OBJECT ACTIVE-OBJECT)) [method]
Calls 

AOBJ.KIND and GET-STAT-SUSTAINS

Location 

object.lisp

GET-STRING-INPUT
 (GET-STRING-INPUT PROMPT &KEY (MAX-LENGTH 20) (X-POS 0) (Y-POS 0)) [function]
Description 

Non-efficient code to read input from the user, and return the string on success. Returns NIL on failure or user-termination (esc).

Called By 

%GET-NAME-INPUT!

Calls 

ALPHANUMERICP, COERCE, MAKE-STRING, NREVERSE, PUT-COLOURED-LINE!, PUT-COLOURED-STR!, READ-ONE-CHARACTER, REVERSE, SET-CURSOR-TO and WARN

Location 

util.lisp

GET-SYMCASE-FUN
 (GET-SYMCASE-FUN) [function]
Description 

Returns the symcase-fun as a symbol.

Called By 

CONCAT-PNAMES

Location 

base.lisp

GET-SYSTEM-TYPE
 (GET-SYSTEM-TYPE) [function]
Called By 

%CREATE-NEW-CHARACTER, %MOUSE-CLICKED, ACTIVATE-OBJECT, DISPLAY-VISUAL-STATES, ENGINE-ALLOWS-GFX-TILES?, FETCH-EVENT, PLAY-GAME&, PRINT-TOMB, QUIT-GAME&, UPDATE-INVENTORY-ROW and USE-IMAGES?

Calls 

ORG.LANGBAND.FFI:C_CURRENT_UI

Location 

global.lisp

GET-TACTICAL-BID
 (GET-TACTICAL-BID AI-STRATEGY CREATURE TACTIC BID-OBJ) [generic]
Description 

Makes a bid for the given tactic in the bid object.

Location 

ai.lisp

GET-TARGET-AT-COORDINATE
 (GET-TARGET-AT-COORDINATE DUNGEON X Y) [function]
Called By 

HANDLE-MOUSE-CLICK and INTERACTIVE-TARGETING!

Calls 

CAVE-COORD, CAVE-MONSTERS, LOCATION-X, LOCATION-Y and MAKE-TARGET

Location 

actions.lisp

GET-TITLE-FOR-LEVEL
 (GET-TITLE-FOR-LEVEL CLASS LEVEL) [function]
Description 

Returns the title for a given class of the given level.

Called By 

DISPLAY-PLAYER-MISC and PRINT-TOMB

Calls 

CLASS.TITLES and INT-/

Location 

character.lisp

GET-TOHIT-CHANCE
 (GET-TOHIT-CHANCE VARIANT SKILL THE-AC) [function]
Calls 

INT-/

Location 

player.lisp

GET-VARIANT-INFO
 (GET-VARIANT-INFO ID) [function]
Description 

Returns variant-info that's tregistered for the given id.

Calls 

GETHASH

Location 

global.lisp

GET-VISUAL-PROJECTILE
 (GET-VISUAL-PROJECTILE OBJ) [generic]
Description 

Returns a visual-projectile object for the given object or NIL.

Location 

generics.lisp

GET-VISUAL-PROJECTILE
 (GET-VISUAL-PROJECTILE OBJ) [method]

GET-VISUAL-STATE
 (GET-VISUAL-STATE VARIANT POS) [function]
Description 

Asks for the state at visual position POS, returns a state or NIL.

Calls 

VARIANT.VISUAL-STATES

Location 

global.lisp

(SETF GFX-SYM)
 ((SETF GFX-SYM) VALUE OBJECT) [generic]
Description 

Sets the gfx-sym that should be used for a given object.

Called By 

DEFINE-DOOR-TYPE, DEFINE-FLOOR-TYPE, DEFINE-TRAP-TYPE, DEFINE-VISUAL-STATE, ESTABLISH-FLAVOUR& and READ-MAP

Location 

generics.lisp

GOBJ-TABLE.ALLOC-TABLE
 (GOBJ-TABLE.ALLOC-TABLE (OBJ GAME-OBJ-TABLE)) [function]

(SETF GOBJ-TABLE.ALLOC-TABLE)
 ((SETF GOBJ-TABLE.ALLOC-TABLE) (OBJ GAME-OBJ-TABLE)) [function]
Called By 

UPDATE-GOBJ-TABLE!

Location 

classes.lisp

GOBJ-TABLE.OBJ-TABLE
 (GOBJ-TABLE.OBJ-TABLE (OBJ GAME-OBJ-TABLE)) [function]

(SETF GOBJ-TABLE.OBJ-TABLE)
 ((SETF GOBJ-TABLE.OBJ-TABLE) (OBJ GAME-OBJ-TABLE)) [function]
Called By 

REGISTER-LEVEL!

Location 

classes.lisp

GOBJ-TABLE.OBJ-TABLE-BY-LVL
 (GOBJ-TABLE.OBJ-TABLE-BY-LVL (OBJ GAME-OBJ-TABLE)) [function]

(SETF GOBJ-TABLE.OBJ-TABLE-BY-LVL)
 ((SETF GOBJ-TABLE.OBJ-TABLE-BY-LVL) (OBJ GAME-OBJ-TABLE)) [function]
Called By 

UPDATE-GOBJ-TABLE!

Location 

classes.lisp

GRAPHICAL-MAP?
 (GRAPHICAL-MAP?) [function]
Description 

Is the current map allowing graphical tiles?

Calls 

WINDOW-ALLOWS-GFX-TILES?

Location 

global.lisp

GRID
 (GRID X Y) [macro]
Called By 

PROJECT-PATH, UPDATE-VIEW! and VINFO-INIT&

Location 

global.lisp

GRID-X
 (GRID-X G) [macro]
Called By 

FORGET-VIEW!, PROJECTABLE? and VINFO-INIT&

Location 

global.lisp

GRID-Y
 (GRID-Y G) [macro]
Called By 

FORGET-VIEW!, PROJECTABLE? and VINFO-INIT&

Location 

global.lisp

GSDFN
 (GSDFN TABLE NUM) [function]
Called By 

DISPLAY-PLAYER-STATS

Location 

global.lisp

HALT-MUSIC
 (HALT-MUSIC) [function]
Description 

Tries to stop any music playing.

Calls 

ORG.LANGBAND.FFI:C-HALT-MUSIC

Location 

sound.lisp

HALT-SOUND-EFFECTS
 (HALT-SOUND-EFFECTS &OPTIONAL (CHANNEL -1)) [function]
Description 

Tries to stop any music playing.

Calls 

ORG.LANGBAND.FFI:C-HALT-SOUND-EFFECTS

Location 

sound.lisp

HANDLE-MOUSE-CLICK
 (HANDLE-MOUSE-CLICK VARIANT WINDOW BUTTON X Y) [generic]
Description 

Handle a legal mouse-click to a window. The x and y are local to the window.

Called By 

%MOUSE-CLICKED

Location 

generics.lisp

HANDLE-PLAYER-UPDATES!
 (HANDLE-PLAYER-UPDATES! VARIANT PLAYER OLD-INFO) [generic]
Description 

Updates screens, windows, ... after a recalculation of the player. It is passed the object returned by GET-OLD-PLAYER-INFO at start of recalculation.

Location 

generics.lisp

HANDLE-STUFF
 (HANDLE-STUFF VARIANT DUNGEON PLAYER) [function]
Calls 

ANY-REDRAWS?, ANY-UPDATES?, REDRAW-STUFF and UPDATE-STUFF

Location 

loop.lisp

HANDLE-TURN
 (HANDLE-TURN VARIANT CREATURE ACTIVITY) [generic]
Description 

For creatures doing a specific activity, handle a turn.

Location 

generics.lisp

HANDLE-TURN
 (HANDLE-TURN (VARIANT VARIANT) (PLAYER PLAYER) (ACTIVITY (EQL RESTING))) [method]
Calls 

(SETF GET-INFORMATION), CURRENT-HP, CURRENT-MANA, GET-INFORMATION, MAXIMUM-HP, MAXIMUM-MANA and MOVE-PLAYER!

Location 

loop.lisp

HANDLE-UI-THEME-CALCULATION
 (HANDLE-UI-THEME-CALCULATION THEME CALC) [function]
Description 

Tries to calculate value for CALC.

Called By 

HANDLE-UI-THEME-CALCULATION, POSSIBLE-EXPAND and PROCESS-SUBWINDOW-DATA!

Calls 

DELAYED-EXPR, DELAYED-P, ERROR, EVERY, FETCH-THEME-VAR, FIND, HANDLE-UI-THEME-CALCULATION, LOOKUP-UI-THEME-VAR, MAKE-DELAYED, MAPCAR and REDUCE

Location 

themes.lisp

HAS-FRAME?
 (HAS-FRAME? KEY TYPE) [function]
Called By 

UPDATE-TERM-SIZES!

Calls 

ORG.LANGBAND.FFI:C-HAS_FRAME

Location 

global.lisp

HAS-INFORMATION?
 (HAS-INFORMATION? KEY &KEY (VARIANT *VARIANT*)) [function]
Description 

Returns T if there is information for the given key.

Calls 

GETHASH and VARIANT.INFORMATION

Location 

global.lisp

HELP-TOPIC.DATA
 (HELP-TOPIC.DATA (OBJ HELP-TOPIC)) [function]

(SETF HELP-TOPIC.DATA)
 ((SETF HELP-TOPIC.DATA) (OBJ HELP-TOPIC)) [function]

HELP-TOPIC.ID
 (HELP-TOPIC.ID (OBJ HELP-TOPIC)) [function]

(SETF HELP-TOPIC.ID)
 ((SETF HELP-TOPIC.ID) (OBJ HELP-TOPIC)) [function]

HELP-TOPIC.KEY
 (HELP-TOPIC.KEY (OBJ HELP-TOPIC)) [function]

(SETF HELP-TOPIC.KEY)
 ((SETF HELP-TOPIC.KEY) (OBJ HELP-TOPIC)) [function]

HELP-TOPIC.NAME
 (HELP-TOPIC.NAME (OBJ HELP-TOPIC)) [function]

(SETF HELP-TOPIC.NAME)
 ((SETF HELP-TOPIC.NAME) (OBJ HELP-TOPIC)) [function]

HOME-LANGBAND-PATH
 (HOME-LANGBAND-PATH) [function]
Description 

Returns the path (as a string, not pathname) to the langband-dir in the home-dir.

Called By 

LOAD-USER-PREFERENCE-FILE&

Calls 

CONCATENATE, IGNORE-ERRORS, LBSYS/ENSURE-DIR-NAME and LBSYS/GETENV

Location 

sys.lisp

I2A
 (I2A NUM) [function]
Description 

Returns the letter corresponding to #a + num.

Called By 

%HOME-INPUT-LOOP, %STORE-BUY-ITEM, INTERACTIVE-ALT-SEL, INTERACTIVE-BOOK-SELECTION and INTERACTIVE-SPELL-SELECTION

Calls 

CHAR-CODE and CODE-CHAR

Location 

base.lisp

IDX-PAINT-VALUE
 (IDX-PAINT-VALUE ATTR IDX) [function]
Calls 

BYTE, DPB and LOGIOR

Location 

base.lisp

IDX-VALUE
 (IDX-VALUE IDX) [function]
Description 

Returns value stored in an index on the C-side.

Calls 

ORG.LANGBAND.FFI:C-GET-IDX-VALUE

Location 

global.lisp

(SETF IDX-VALUE)
 ((SETF IDX-VALUE) VALUE IDX) [function]
Description 

Returns value stored in an index on the C-side.

Calls 

ERROR, ORG.LANGBAND.FFI:C-SET-IDX-INTVALUE and ORG.LANGBAND.FFI:C-SET-IDX-STRINGVALUE

Location 

global.lisp

IMAGE-EXISTS?
 (IMAGE-EXISTS? NAME) [function]
Description 

Checks if given filename for an image actually exists.

Called By 

DEFINE-STORE-OWNER

Calls 

CONCATENATE and PROBE-FILE

Location 

global.lisp

IN-BOUNDS-FULLY?
 (IN-BOUNDS-FULLY? DUNGEON X Y) [function]
Description 

Checks that the coordinate is well within the dungeon

Called By 

INTERACTIVE-TARGETING! and TELEPORT-CREATURE!

Calls 

DUNGEON.HEIGHT and DUNGEON.WIDTH

Location 

dungeon.lisp

IN-BOUNDS?
 (IN-BOUNDS? DUNGEON X Y) [function]
Description 

Checks that the coordinate is well within the dungeon

Called By 

TRY-DOOR!

Calls 

DUNGEON.HEIGHT and DUNGEON.WIDTH

Location 

dungeon.lisp

INIT-ANIMATION!
 (INIT-ANIMATION! ANIMATION BASE-TICK) [function]
Description 

Inits the animation with the starting tick.

Calls 

(SETF ANIM.NEXT-CHANGE) and ANIM.CHANGE-INTERVAL

Location 

util.lisp

INIT-MESSAGE-SYSTEM&
 (INIT-MESSAGE-SYSTEM& (HANDLER MESSAGE-HANDLER)) [method]
Called By 

PLAY-GAME&

Calls 

(SETF MSGHANDLER.CUR-MAX-COL) and GET-FRAME-WIDTH

Location 

global.lisp

INIT-SOUND-SYSTEM&
 (INIT-SOUND-SYSTEM& SIZE) [function]
Called By 

PLAY-GAME&

Calls 

MAKE-ARRAY and ORG.LANGBAND.FFI:C-INIT-SOUND-SYSTEM&

Location 

sound.lisp

INIT-VISUAL-EVENT
 (INIT-VISUAL-EVENT EVT DUNGEON PLAYER CUR-TICK) [generic]
Called By 

RUN-LEVEL!

Location 

classes.lisp

INITIALISE-CHARACTER-CLASS!
 (INITIALISE-CHARACTER-CLASS! VARIANT CHARACTER-CLASS KEYWORD-ARGS) [generic]
Description 

Used to initialise a character-class with arguments given to define.

Called By 

DEFINE-CHARACTER-CLASS

Location 

generics.lisp

INITIALISE-CHARACTER-RACE!
 (INITIALISE-CHARACTER-RACE! VARIANT CHARACTER-CLASS KEYWORD-ARGS) [generic]
Description 

Used to initialise a character-class with arguments given to define.

Called By 

DEFINE-CHARACTER-RACE

Location 

generics.lisp

INITIALISE-FLOORS&
 (INITIALISE-FLOORS& VARIANT) [generic]
Description 

Initialises floors for the given variant.

Location 

generics.lisp

INITIALISE-FLOORS&
 (INITIALISE-FLOORS& VARIANT) [method]
Calls 

ERROR and TYPE-OF

Location 

global.lisp

INITIALISE-MONSTERS&
 (INITIALISE-MONSTERS& VARIANT) [generic]
Description 

Initialises monsters for the given variant.

Location 

generics.lisp

INITIALISE-MONSTERS&
 (INITIALISE-MONSTERS& VARIANT) [method]
Calls 

ERROR and TYPE-OF

Location 

global.lisp

INITIALISE-OBJECTS&
 (INITIALISE-OBJECTS& VARIANT) [generic]
Description 

Initialises objects for the given variant.

Location 

generics.lisp

INITIALISE-OBJECTS&
 (INITIALISE-OBJECTS& VARIANT) [method]
Calls 

ERROR and TYPE-OF

Location 

global.lisp

INPUT-EVENT-P
 (INPUT-EVENT-P OBJ) [predicate]

INPUT-EVENT.KEYPRESS
 (INPUT-EVENT.KEYPRESS (OBJ INPUT-EVENT)) [function]

(SETF INPUT-EVENT.KEYPRESS)
 ((SETF INPUT-EVENT.KEYPRESS) (OBJ INPUT-EVENT)) [function]

INPUT-EVENT.MOUSECLICK
 (INPUT-EVENT.MOUSECLICK (OBJ INPUT-EVENT)) [function]

(SETF INPUT-EVENT.MOUSECLICK)
 ((SETF INPUT-EVENT.MOUSECLICK) (OBJ INPUT-EVENT)) [function]

INPUT-EVENT.TYPE
 (INPUT-EVENT.TYPE (OBJ INPUT-EVENT)) [function]

(SETF INPUT-EVENT.TYPE)
 ((SETF INPUT-EVENT.TYPE) (OBJ INPUT-EVENT)) [function]
Called By 

FETCH-EVENT

Location 

classes.lisp

INSTALL-UI-THEME&
 (INSTALL-UI-THEME& THEME) [function]
Description 

Tries to install given ui-theme as the wanted ui-theme to use.

Called By 

GAME-INIT&

Location 

themes.lisp

INSTALL-WINDOW-FONT!
 (INSTALL-WINDOW-FONT! WINDOW THEME) [function]
Description 

Tries to install a font in the window, might fall back on theme value.

Called By 

UPDATE-TERM-SIZES!

Calls 
Location 

global.lisp

INTERACTIVE-ALT-SEL
 (INTERACTIVE-ALT-SEL COL ROW ALTERNATIVES &KEY (DISPLAY-FUN NIL) (MOD-VALUE 5) (ASK-FOR "value") (SETTINGS NIL)) [function]
Description 

Interative selection of alternatives. The COL, ROW argument specifies where the alternatives should start ALTERNATIVES is a list of valid alternatives DISPLAY-FUN is a function to display help for a given option MOD-VALUE is how much space should be between rows (I think)

Called By 

%QUERY-FOR-CLASS, %QUERY-FOR-GENDER, %QUERY-FOR-RACE, INTERACTIVE-SAVEFILE-SELECT and INTERACTIVE-VARIANT-SELECT

Calls 

%ALT-SEL-INPUT, DISPLAY-ALTERNATIVES, FORMAT, FUNCALL, GET-A-VALUE, I2A, PRINT-TEXT!, PUT-COLOURED-STR!, SETTING-LOOKUP and WARN

Location 

util.lisp

INTERACTIVE-CREATION-OF-PLAYER
 (INTERACTIVE-CREATION-OF-PLAYER VARIANT) [generic]
Description 

Interactive creation of a player object. Should return a player object or NIL.

Called By 

%CREATE-NEW-CHARACTER

Location 

generics.lisp

INTERACTIVE-DESTROY-ITEM!
 (INTERACTIVE-DESTROY-ITEM! DUNGEON PLAYER) [function]
Description 

Destroys some inventory

Calls 

ASK-FOR-UPDATE!, FORMAT-MESSAGE!, GET-ITEM-TABLE, IS-CURSED?, ITEM-TABLE-ADD!, ITEM-TABLE-REMOVE!, ON-DESTROY-OBJECT, PRINT-MESSAGE! and SELECT-ITEM

Location 

actions.lisp

INTERACTIVE-DOOR-OPERATION!
 (INTERACTIVE-DOOR-OPERATION! DUNGEON PLAYER OPERATION) [function]
Calls 

FUNCALL, GET-AIM-DIRECTION, LOCATION-X, LOCATION-Y and WARN

Location 

actions.lisp

INTERACTIVE-DROP-ITEM!
 (INTERACTIVE-DROP-ITEM! DUNGEON PLAYER) [function]
Description 

Drop some inventory

Calls 
Location 

actions.lisp

INTERACTIVE-SAVEFILE-SELECT
 (INTERACTIVE-SAVEFILE-SELECT VARIANT-ID) [function]
Description 

Returns 'new-game for new game or a string with filename to wanted savegame to load.

Called By 

PLAY-GAME&

Calls 
Location 

loop.lisp

INTERACTIVE-TAKE-OFF-ITEM!
 (INTERACTIVE-TAKE-OFF-ITEM! DUNGEON PLAYER) [function]
Calls 

ASK-FOR-UPDATE!, FORMAT-MESSAGE!, GET-ITEM-TABLE, IS-CURSED?, ITEM-TABLE-ADD!, ITEM-TABLE-REMOVE!, ON-TAKE-OFF-OBJECT, PRINT-MESSAGE!, PUT-OBJECT-IN-CONTAINER! and SELECT-ITEM

Location 

actions.lisp

INTERACTIVE-THROW-ITEM!
 (INTERACTIVE-THROW-ITEM! DUNGEON PLAYER) [function]
Description 

Hackish throw-code.

Calls 

FORMAT-MESSAGE!, GET-AIM-DIRECTION, GET-DESTINATION-COORDS, GET-ITEM-TABLE, IS-CURSED?, ITEM-TABLE-ADD!, ITEM-TABLE-REMOVE!, PRINT-MESSAGE!, SELECT-ITEM and THROW-OBJECT

Location 

actions.lisp

INTERACTIVE-TRAP-OPERATION!
 (INTERACTIVE-TRAP-OPERATION! DUNGEON PLAYER OPERATION) [function]
Calls 

FUNCALL, GET-AIM-DIRECTION, LOCATION-X and LOCATION-Y

Location 

actions.lisp

INTERACTIVE-USE-ITEM!
 (INTERACTIVE-USE-ITEM! DUNGEON PLAYER &KEY (NEED-EFFECT NIL) (SELECTION-FUNCTION NIL) (PROMPT "Use item?") (WHICH-USE :USE) (SOUND NIL) (LIMIT-FROM '(:BACKPACK :FLOOR))) [function]
Description 

Tries to use an item.

Calls 
Location 

actions.lisp

INTERACTIVE-VARIANT-SELECT
 (INTERACTIVE-VARIANT-SELECT) [function]
Description 

Returns id to a selected variant, or NIL on failure.

Called By 

PLAY-GAME&

Calls 

CLEAR-WINDOW-FROM, ERROR, GET-FRAME-HEIGHT, GET-REGISTERED-VARIANTS, INTERACTIVE-ALT-SEL and WARN

Location 

loop.lisp

INTERACTIVE-WEAR-ITEM!
 (INTERACTIVE-WEAR-ITEM! DUNGEON PLAYER) [function]
Description 

Puts something in an equipment-slot.

Calls 
Location 

actions.lisp

INVOKE-IN-DIALOGUE
 (INVOKE-IN-DIALOGUE FUN) [function]
Calls 

ACTIVATE-WINDOW, CLEAR-WINDOW, DEACTIVATE-WINDOW, FUNCALL, GET-WINDOW, PAINT-WINDOW, WINDOW.DISABLED?, WINDOW.NUM-ID and WITH-FRAME

Location 

global.lisp

INVOKE-ON-DUNGEON
 (INVOKE-ON-DUNGEON DUNGEON FUN) [function]
Description 

calls given FUN with three arguments: a COORD the X-coordinate of the COORD the Y-coordinate of the COORD

Calls 

DUNGEON.HEIGHT, DUNGEON.TABLE, DUNGEON.WIDTH and FUNCALL

Location 

dungeon.lisp

INVOKE-ON-DUNGEON-MONSTERS
 (INVOKE-ON-DUNGEON-MONSTERS DUNGEON FUN) [function]
Description 

Calls FUN with TWO arguments: the dungeon object the monster

Calls 

CREATURE-ALIVE?, DUNGEON.MONSTERS and FUNCALL

Location 

dungeon.lisp

IS-ARTIFACT?
 (IS-ARTIFACT? OBJECT) [generic]
Description 

Returns T if the object is an artifact, NIL otherwise.

Called By 

PROCESS-WORLD&

Location 

generics.lisp

IS-ARTIFACT?
 (IS-ARTIFACT? (OBJ ACTIVE-OBJECT)) [method]

IS-BROKEN?
 (IS-BROKEN? OBJECT) [generic]
Description 

Returns T if the object is cursed, NIL otherwise.

Location 

generics.lisp

IS-BROKEN?
 (IS-BROKEN? (OBJ ACTIVE-OBJECT)) [method]
Calls 

AOBJ.IDENTIFY and BIT-FLAG-SET?

Location 

object.lisp

IS-CLOSED-DOOR?
 (IS-CLOSED-DOOR? DUNGEON X Y) [function]
Called By 

BASH-DOOR!, MOVE-PLAYER! and OPEN-DOOR!

Calls 

CAVE-DECOR, DECOR.VISIBLE? and DOOR.CLOSED?

Location 

dungeon.lisp

IS-CURSED?
 (IS-CURSED? OBJECT) [generic]
Description 

Returns T if the object is cursed, NIL otherwise.

Called By 

INTERACTIVE-DESTROY-ITEM!, INTERACTIVE-DROP-ITEM!, INTERACTIVE-REFILL-ITEM!, INTERACTIVE-TAKE-OFF-ITEM!, INTERACTIVE-THROW-ITEM! and INTERACTIVE-WEAR-ITEM!

Location 

generics.lisp

IS-CURSED?
 (IS-CURSED? (OBJ ACTIVE-OBJECT)) [method]
Calls 

AOBJ.IDENTIFY and BIT-FLAG-SET?

Location 

object.lisp

IS-DOOR?
 (IS-DOOR? OBJ) [function]
Description 

Checks if OBJ is a door.

Called By 

DETECT-DOORS!

Location 

building.lisp

IS-EVENT?
 (IS-EVENT? OBJ) [function]
Description 

Checks if OBJ is of tyoe L-EVENT.

Called By 

APPLY-POSSIBLE-COORD-TRIGGER

Location 

global.lisp

IS-FEMALE?
 (IS-FEMALE? CREATURE) [function]
Description 

Is the creature female, if so return T.

Called By 

IS-FEMALE?

Calls 

AMON.KIND, IS-FEMALE?, MONSTER.GENDER and PLAYER.GENDER

Location 

monster.lisp

IS-FRAME-SHOWN?
 (IS-FRAME-SHOWN? VARIANT FRAME) [function]
Description 

Checks if the given frame is shown.

Called By 

BASIC-FRAME-SHOWN?, RUN-LEVEL!, TRIGGER-PRINTFIELD and UPDATE-INVENTORY-ROW

Calls 

GET-WINDOW, WINDOW.DISABLED? and WINDOW.VISIBLE?

Location 

global.lisp

IS-LEGAL-EFFECT?
 (IS-LEGAL-EFFECT? VARIANT EFFECT) [function]
Description 

Returns T if the given effect is legal.

Called By 

PRODUCE-ACTIVE-MONSTER and PRODUCE-PLAYER-OBJECT

Calls 

FIND and VARIANT.EFFECTS

Location 

global.lisp

IS-LEGAL-ELEMENT?
 (IS-LEGAL-ELEMENT? VARIANT ELEMENT) [function]
Description 

Returns T if the given element is legal.

Called By 

SHARED-INITIALIZE

Calls 

FIND and VARIANT.ELEMENTS

Location 

global.lisp

IS-LEGAL-STAT?
 (IS-LEGAL-STAT? VARIANT SYM) [function]
Description 

Checks if SYM names a legal stat for the variant.

Calls 

FIND and VARIANT.STATS

Location 

global.lisp

IS-LEGAL-TARGET?
 (IS-LEGAL-TARGET? DUNGEON TARGET) [function]
Description 

Checks if it is a legal target and it's to a projectable location

Called By 

DISPLAY-TARGET, GET-AIM-DIRECTION, GET-DESTINATION-COORDS, HANDLE-MOUSE-CLICK, INTERACTIVE-TARGETING! and SWAP-MONSTERS!

Calls 

CREATURE-ALIVE?, LOCATION-X, LOCATION-Y, PROJECTABLE?, TARGET.OBJ, TARGET.X and TARGET.Y

Location 

project.lisp

IS-MAGICAL?
 (IS-MAGICAL? THING) [generic]
Description 

Returns T if the 'thing' is magical, return NIL otherwise.

Location 

generics.lisp

IS-MAGICAL?
 (IS-MAGICAL? (OBJ ACTIVE-OBJECT)) [method]

IS-MALE?
 (IS-MALE? CREATURE) [function]
Description 

Is the creature male, if so return T.

Called By 

IS-MALE? and PRINT-TOMB

Calls 

AMON.KIND, IS-MALE?, MONSTER.GENDER and PLAYER.GENDER

Location 

monster.lisp

IS-OBJECT-EFFECT?
 (IS-OBJECT-EFFECT? ARG) [function]
Calls 

FUNCTIONP

Location 

object.lisp

IS-OBJECT-KNOWN?
 (IS-OBJECT-KNOWN? OBJECT) [generic]
Description 

Returns T if the particular object is known. NIL if not.

Called By 

GET-PRICE, WRITE-OBJ-DESCRIPTION, WRITE-OBJ-DESCRIPTION, WRITE-OBJ-DESCRIPTION and WRITE-OBJ-DESCRIPTION

Location 

generics.lisp

IS-OBJECT-KNOWN?
 (IS-OBJECT-KNOWN? (OBJECT ACTIVE-OBJECT)) [method]
Calls 

AOBJ.IDENTIFY, AOBJ.KIND, BIT-FLAG-SET?, OBJECT.AWARE and OBJECT.EASY-KNOW

Location 

object.lisp

IS-OPEN-DOOR?
 (IS-OPEN-DOOR? DUNGEON X Y) [function]
Called By 

CLOSE-DOOR!

Calls 

CAVE-DECOR, DECOR.VISIBLE? and DOOR.CLOSED?

Location 

dungeon.lisp

IS-PLAYER?
 (IS-PLAYER? OBJ) [function]
Description 

Is the object a player-object?

Called By 

APPLY-PROJECTION-EFFECT-TO-TARGET!, ATTACK-TARGET!, GET-DESTINATION-COORDS, MAKE-WALK-MOVEMENT, PLAY-GAME& and REMOVE-CURSE!

Location 

player.lisp

IS-REAL-WALL?
 (IS-REAL-WALL? VARIANT FLOOR) [function]
Called By 

POSSIBLE-DOORWAY? and TRY-DOOR!

Calls 

BIT-FLAG-SET?, FLOOR.FLAGS and GET-FLOOR-TYPE

Location 

generate.lisp

IS-RESTING?
 (IS-RESTING? CREATURE) [function]
Description 

Returns T if the creature is resting.

Called By 

PROCESS-WORLD&

Calls 

GET-INFORMATION

Location 

util.lisp

IS-STAT-ARRAY?
 (IS-STAT-ARRAY? VARIANT OBJ) [generic]
Description 

Returns T if the object is a stat-array.

Location 

generics.lisp

IS-STAT-ARRAY?
 (IS-STAT-ARRAY? (VARIANT VARIANT) OBJ) [method]
Calls 

ARRAYP and VARIANT.STAT-LENGTH

Location 

global.lisp

IS-STORE?
 (IS-STORE? OBJ) [function]
Description 

Returns T if the object is a store.

Called By 

GENERATE-LEVEL!

Location 

stores.lisp

IS-TARGETING?
 (IS-TARGETING? SOURCE POSS-TARGET) [function]
Description 

Checks if the possible target is targeted by the source.

Called By 

REMOVE-MONSTER-FROM-DUNGEON!

Calls 

PLAYER.TARGET and TARGET.OBJ

Location 

project.lisp

IS-TRAP?
 (IS-TRAP? OBJ) [function]
Description 

Checks if OBJ is of type ACTIVE-TRAP.

Called By 

DETECT-TRAPS!

Location 

global.lisp

IS-VARIANT?
 (IS-VARIANT? OBJ) [function]
Description 

Checks if OBJ is a VARIANT-object.

Called By 

ESTABLISH-HOUSE&, ESTABLISH-OWNER&, GET-HOUSE and GET-OWNER

Location 

global.lisp

IS-VISIBLE-TRAP?
 (IS-VISIBLE-TRAP? DUNGEON X Y) [function]
Calls 

CAVE-DECOR and DECOR.VISIBLE?

Location 

actions.lisp

IS-VOWEL?
 (IS-VOWEL? THE-CHAR) [function]
Description 

Returns T if THE-CHAR is a vowel.

Calls 

FIND

Location 

base.lisp

IS-WINDOW?
 (IS-WINDOW? OBJ) [function]
Description 

Checks if the given object is a window.

Called By 

%SWITCH-IN-WINDOW, GET-WINDOW, MAKE-MISSILE-VISUAL and MAKE-THROWN-VISUAL

Location 

window.lisp

ITEM-TABLE-VERIFY-KEY
 (ITEM-TABLE-VERIFY-KEY TABLE KEY) [generic]
Description 

Returns T when key is OK, and NIL when it is not.

Location 

generics.lisp

ITEM-TABLE-VERIFY-KEY
 (ITEM-TABLE-VERIFY-KEY TABLE KEY) [method]
Calls 

A2I, FIND, ITEMS.CUR-SIZE and ITEMS.OBJS

Location 

equipment.lisp

KBD-EVENT.ALT
 (KBD-EVENT.ALT (OBJ KEYBOARD-EVENT)) [function]

(SETF KBD-EVENT.ALT)
 ((SETF KBD-EVENT.ALT) (OBJ KEYBOARD-EVENT)) [function]
Called By 

FETCH-EVENT

Location 

classes.lisp

KBD-EVENT.CTRL
 (KBD-EVENT.CTRL (OBJ KEYBOARD-EVENT)) [function]

(SETF KBD-EVENT.CTRL)
 ((SETF KBD-EVENT.CTRL) (OBJ KEYBOARD-EVENT)) [function]
Called By 

FETCH-EVENT

Location 

classes.lisp

KBD-EVENT.KEY
 (KBD-EVENT.KEY (OBJ KEYBOARD-EVENT)) [function]
Called By 

FETCH-EVENT, GET-AND-PROCESS-COMMAND! and READ-ONE-CHARACTER

Location 

classes.lisp

(SETF KBD-EVENT.KEY)
 ((SETF KBD-EVENT.KEY) (OBJ KEYBOARD-EVENT)) [function]
Called By 

FETCH-EVENT, GCU-HANDLE-KEY and SDL-HANDLE-KEY

Location 

classes.lisp

KBD-EVENT.SHIFT
 (KBD-EVENT.SHIFT (OBJ KEYBOARD-EVENT)) [function]
Called By 

GET-AND-PROCESS-COMMAND!

Location 

classes.lisp

(SETF KBD-EVENT.SHIFT)
 ((SETF KBD-EVENT.SHIFT) (OBJ KEYBOARD-EVENT)) [function]
Called By 

FETCH-EVENT

Location 

classes.lisp

LANG-EQUAL
 (LANG-EQUAL FIRST-OBJ SECOND-OBJ) [generic]
Description 

A recursive check for equality (along the lines of EQUAL) but one that works with langband-objects.

Location 

generics.lisp

LANG-WARN
 (LANG-WARN FORMAT-STRING) [function]
Description 

Prints a warning for Langband-system. It works almost like regular WARN except that no condition is sent, use regular WARN for such cases. Leaks memory, only use when testing.

Called By 

ADD-OBJECT-TO-ARRAY!, REGISTER-LEVEL! and USE-STAIR!

Calls 

APPLY and FORMAT

Location 

base.lisp

LBSYS/DIRECTORY
 (LBSYS/DIRECTORY PATH) [function]
Description 

This is a wrapper to make 'old' behaviour work for DIRECTORY, given that /foo/ returns all elements in the dir /foo/

Called By 

INTERACTIVE-SAVEFILE-SELECT

Calls 

DIRECTORY, MAKE-PATHNAME, MERGE-PATHNAMES and PATHNAME

Location 

sys.lisp

LBSYS/ENSURE-DIR-NAME
 (LBSYS/ENSURE-DIR-NAME STR) [function]
Description 

Makes sure the str has a / suffix

Called By 

%ASSIGN-WIN-DIRS and HOME-LANGBAND-PATH

Calls 

CHAR, CONCATENATE and ERROR

Location 

sys.lisp

LBSYS/GARBAGE-COLLECT
 (LBSYS/GARBAGE-COLLECT &KEY (GLOBAL NIL)) [function]
Description 

Tries to enforce a garbage collect.

Called By 

GAME-LOOP& and QUIT-GAME&

Calls 

GC

Location 

sys.lisp

LBSYS/GET-CURRENT-DIRECTORY
 (LBSYS/GET-CURRENT-DIRECTORY) [function]
Description 

The default directory.

Called By 

%ASSIGN-WIN-DIRS

Calls 

DEFAULT-DIRECTORY

Location 

sys.lisp

LBSYS/GETENV
 (LBSYS/GETENV VAR) [function]
Description 

Return the value of the environment variable.

Called By 

HOME-LANGBAND-PATH

Location 

sys.lisp

LBSYS/MAKE-SURE-DIRS-EXIST&
 (LBSYS/MAKE-SURE-DIRS-EXIST& DIR &KEY (VERBOSE NIL)) [function]
Description 

mostly a call to ENSURE-DIRECTORIES-EXIST, but stops errors from floating out.. returns NIL instead.

Called By 

SAVE-THE-GAME

Calls 

ENSURE-DIRECTORIES-EXIST, MERGE-PATHNAMES, PATHNAME and WARN

Location 

sys.lisp

LBSYS/TIME
 (LBSYS/TIME FORM) [macro]

LBSYS/TRICKY-PROFILE
 (LBSYS/TRICKY-PROFILE EXPR TYPE) [macro]

LEGAL-COORD?
 (LEGAL-COORD? DUNGEON X Y) [function]
Called By 

%DISTRIBUTE-DECOR!, %DISTRIBUTE-MONSTERS!, %DISTRIBUTE-OBJECTS!, CAREFUL-RUN-OK?, MOVE-OK? and RUN-OK?

Calls 

DUNGEON.HEIGHT and DUNGEON.WIDTH

Location 

dungeon.lisp

LEGAL-FLAVOUR-OBJ?
 (LEGAL-FLAVOUR-OBJ? FLAV) [function]
Description 

Is FLAV a legal flavour object?

Called By 

%FILED-OBJECT-KIND and FLAVOUR-SIMPLE-OBJECT-KIND!

Location 

object.lisp

LEGAL-TACTIC-CHOICE?
 (LEGAL-TACTIC-CHOICE? OBJ) [function]
Calls 

TACTIC-CHOICE-TACTIC

Location 

ai.lisp

LET-FLOOR-CARRY!
 (LET-FLOOR-CARRY! DUNGEON X Y OBJ) [function]
Calls 

(SETF CAVE-OBJECTS), CAVE-OBJECTS, ITEM-TABLE-ADD! and MAKE-FLOOR-CONTAINER

Location 

generate.lisp

LEVEL-READY?
 (LEVEL-READY? LEVEL) [generic]
Description 

Returns T if the level is ready for use, returns NIL otherwise.

Location 

generics.lisp

LEVEL-READY?
 (LEVEL-READY? (LEVEL RANDOM-LEVEL)) [method]
Calls 

LEVEL.DUNGEON

Location 

dungeon.lisp

LOAD-BINARY-ARRAY
 (LOAD-BINARY-ARRAY LEN TYPE STR) [function]
Description 

Tries to read an array from the stream STR.

Calls 

(SETF AREF), BINARY-TYPES:READ-BINARY and MAKE-ARRAY

Location 

save.lisp

LOAD-BINARY-STRING
 (LOAD-BINARY-STRING STREAM) [function]
Description 

Tries to load a string from the given stream.

Called By 

LOAD-OBJECT

Calls 

BINARY-TYPES:READ-BINARY and BINARY-TYPES:READ-BINARY-STRING

Location 

save.lisp

LOAD-GAME-DATA
 (LOAD-GAME-DATA FNAME) [function]
Description 

Tries to load the data-file fname.

Called By 

PLAY-GAME& and READ-PREF-FILE

Calls 

GAME-DATA-PATH and LOAD

Location 

global.lisp

LOAD-IMAGE&
 (LOAD-IMAGE& VARIANT FNAME IDX TRANSCOLOUR) [function]
Description 

Tries to load the named image in given idx spot.

Called By 

LOAD-IMAGE-SPEC&, LOAD-SETTING-BACKGROUND, PAINT-GFX-IMAGE&, PLAY-GAME& and TEXTURE-BACKGROUND!

Calls 

CONCATENATE, ERROR, LOAD-OP, ORG.LANGBAND.FFI:LOAD-GFX-IMAGE&, PROBE-FILE, REGISTER-IMAGE&, VARIANT.GFX-PATH and VARIANT.IMAGES

Location 

global.lisp

LOAD-IMAGE-SPEC&
 (LOAD-IMAGE-SPEC& VARIANT IDX SPEC) [function]
Description 

Loads a more complex image-spec, see variants/vanilla/base.lisp for example.

Calls 

ERROR and LOAD-IMAGE&

Location 

global.lisp

LOAD-MUSIC
 (LOAD-MUSIC FNAME) [function]
Description 

Tries to load the fname.

Called By 

PLAY-GAME&

Calls 

CONCATENATE, ORG.LANGBAND.FFI:C-LOAD-MUSIC-FILE&, PROBE-FILE, USING-SOUND? and VECTOR-PUSH

Location 

sound.lisp

LOAD-OLD-ENVIRONMENT&
 (LOAD-OLD-ENVIRONMENT&) [function]
Description 

Returns three values with an old environment.

Called By 

GAME-LOOP&

Location 

loop.lisp

LOAD-SAVEHEADER
 (LOAD-SAVEHEADER FNAME) [function]
Description 

Tries to load a saveheader for the given file.

Called By 

INTERACTIVE-SAVEFILE-SELECT

Calls 

BINARY-TYPES:WITH-BINARY-FILE, LOAD-OBJECT, MAKE-INSTANCE, PATHNAME, PROBE-FILE and S

Location 

load.lisp

LOAD-SCALED-IMAGE&
 (LOAD-SCALED-IMAGE& FNAME IDX WID HGT) [function]
 (LOAD-SCALED-IMAGE& FNAME IDX WID HGT) [function]

LOAD-SETTING-BACKGROUND
 (LOAD-SETTING-BACKGROUND VARIANT WIN SETTINGS-OBJ &KEY (LAYOUT :CENTRED)) [function]
Description 

Loads a setting background into the window at +background+ layer. Returns adjustments to x, and y

Calls 

FIND-IMAGE, INT-/, LOAD-IMAGE&, NON-NEGATIVE-INTEGER?, PAINT-GFX-IMAGE, SETTING-LOOKUP, WARN, WINDOW.PIXEL-HEIGHT, WINDOW.PIXEL-WIDTH, WINDOW.TILE-HEIGHT and WINDOW.TILE-WIDTH

Location 

util.lisp

LOAD-USER-PREFERENCE-FILE&
 (LOAD-USER-PREFERENCE-FILE&) [function]
Called By 

PLAY-GAME&

Calls 

FIND-PACKAGE, HOME-LANGBAND-PATH, LOAD, MERGE-PATHNAMES, PATHNAME and PROBE-FILE

Location 

init.lisp

LOAD-USER-VARIANT-PREFS&
 (LOAD-USER-VARIANT-PREFS& VARIANT) [function]
Called By 

PLAY-GAME&

Calls 

FIND-PACKAGE, LOAD, MERGE-PATHNAMES, PATHNAME, PROBE-FILE and VARIANT-HOME-PATH

Location 

init.lisp

LOAD-VARIANT&
 (LOAD-VARIANT& ID &KEY (VERBOSE T)) [function]
Description 

Tries to load a variant.

Called By 

%CREATE-NEW-CHARACTER and %FILED-VARIANT

Calls 

ERROR, FORMAT-NOTE!, FUNCALL, FUNCTIONP and GETHASH

Location 

global.lisp

LOAD-VARIANT-DATA&
 (LOAD-VARIANT-DATA& VAR-OBJ DATA-FILE) [function]
Description 

Loads variant-data from appropriate directory.

Called By 

ACTIVATE-OBJECT, ACTIVATE-OBJECT, INITIALISE-EGO-ITEMS&, INITIALISE-FLOORS&, INITIALISE-MONSTERS& and INITIALISE-OBJECTS&

Calls 

ILLEGAL-DATA.DESC, ILLEGAL-DATA.ID, LOAD, VARIANT-DATA-FNAME and WARN

Location 

global.lisp

LOAD-VARIANT-OBJECT
 (LOAD-VARIANT-OBJECT VARIANT STREAM) [generic]
Description 

A second stage init of the object where the variant object is created and a variant can override further loading. Basically a hack since disptach is on variants.

Location 

generics.lisp

LOAD-VARIANT-OBJECT
 (LOAD-VARIANT-OBJECT (VARIANT VARIANT) (STREAM L-BINARY-STREAM)) [method]
Calls 

BINARY-TYPES:READ-BINARY, FILED-VARIANT-DATA, LANG.STREAM and LOAD-OBJECT

Location 

load.lisp

LOADABLE-VALUE
 (LOADABLE-VALUE VAL) [function]
Description 

Return VAL in a form that can be LOADed into Lisp again.

Called By 

GET-LOADABLE-FORM

Calls 

ARRAYP, ERROR, KEYWORDP and TYPE-OF

Location 

global.lisp

LOCATION-X
 (LOCATION-X OBJ) [generic]
Description 

Generic function for all things that have a location in the game at some point.

Location 

generics.lisp

(SETF LOCATION-X)
 ((SETF LOCATION-X) VALUE OBJ) [generic]
Description 

Sets the x-location for the object whenever possible.

Called By 

%FILED-DOOR, %FILED-MONSTER, %FILED-OBJECT, %FILED-ROOM, %RETRIEVE-DOOR, PLACE-PLAYER!, PLACE-SINGLE-MONSTER! and SWAP-MONSTERS!

Location 

generics.lisp

LOCATION-Y
 (LOCATION-Y OBJ) [generic]
Description 

Generic function for all things that have a location in the game at some point.

Location 

generics.lisp

(SETF LOCATION-Y)
 ((SETF LOCATION-Y) VALUE OBJ) [generic]
Description 

Sets the y-location for the object whenever possible.

Called By 

%FILED-DOOR, %FILED-MONSTER, %FILED-OBJECT, %FILED-ROOM, %RETRIEVE-DOOR, PLACE-PLAYER!, PLACE-SINGLE-MONSTER! and SWAP-MONSTERS!

Location 

generics.lisp

LOOKUP-UI-THEME-VAR
 (LOOKUP-UI-THEME-VAR THEME VAR) [function]
Description 

tries to lookup a theme-variable.

Called By 

HANDLE-UI-THEME-CALCULATION and PROCESS-SUBWINDOW-DATA!

Calls 

ERROR, MAKE-DELAYED, STRING-EQUAL, THEME.SYSTEM and WARN

Location 

themes.lisp

MAGIC-ADD
 (MAGIC-ADD ARGUMENTS) [macro]

MAKE-ALLOC-ENTRY
 (MAKE-ALLOC-ENTRY)

MAKE-ANIMATION
 (MAKE-ANIMATION)

MAKE-CONTAINER
 (MAKE-CONTAINER SIZE &OPTIONAL (TYPE 'ITEMS-IN-CONTAINER)) [function]
Description 

Returns appropriate container..

Called By 

%FILED-CONTAINED-ITEMS, DEFINE-HOUSE and DEFINE-STORE

Calls 

MAKE-ARRAY and MAKE-INSTANCE

Location 

equipment.lisp

MAKE-COORD-EVENT
 (MAKE-COORD-EVENT ID FUNCTION EXTRA) [function]
Called By 

ACTIVATE-OBJECT, CREATE-SIMPLE-TRAP and GENERATE-LEVEL!

Calls 

MAKE-EVENT

Location 

global.lisp

MAKE-CREATURE-ATTRIBUTE
 (MAKE-CREATURE-ATTRIBUTE NAME KEY &KEY TYPE DESC VALUE (VALUE-TYPE 'BOOLEAN) DEFAULT-VALUE TURNED-ON-MSG TURNED-OFF-MSG UPDATE-FUN ON-UPDATE) [function]
Calls 

MAKE-INSTANCE

Location 

player.lisp

MAKE-DELAYED
 (MAKE-DELAYED)

MAKE-DUN-DATA
 (MAKE-DUN-DATA)

MAKE-DUNGEON
 (MAKE-DUNGEON)

MAKE-DUNGEON-COORD
 (MAKE-DUNGEON-COORD)

MAKE-EFFECT-ENTRY
 (MAKE-EFFECT-ENTRY)

MAKE-EQUIPMENT-SLOTS
 (MAKE-EQUIPMENT-SLOTS VARIANT) [function]
Description 

Returns appropriate equipment object.

Called By 

%FILED-WORN-ITEMS

Calls 

MAKE-ARRAY, MAKE-INSTANCE and VARIANT.WORN-ITEM-SLOTS

Location 

equipment.lisp

MAKE-EVENT
 (MAKE-EVENT ID TYPE FUNCTION &KEY (STATE NIL) (RETURN-ACTION :REMOVE-EVENT)) [function]
Description 

Returns an event-object that can be used.

Called By 

DEFINE-NORMAL-EVENT and MAKE-COORD-EVENT

Calls 

MAKE-INSTANCE

Location 

global.lisp

MAKE-FIELD-PRINTER
 (MAKE-FIELD-PRINTER)

MAKE-FLOOR-CONTAINER
 (MAKE-FLOOR-CONTAINER DUNGEON LOC-X LOC-Y) [function]
Description 

Returns a container for floor-objects.

Called By 

%DISTRIBUTE-OBJECTS!, GET-ENSURED-FLOOR-TABLE and LET-FLOOR-CARRY!

Calls 

MAKE-INSTANCE

Location 

equipment.lisp

MAKE-GAME-OBJ-TABLE
 (MAKE-GAME-OBJ-TABLE)

MAKE-GENDER
 (MAKE-GENDER &KEY ID SYMBOL NAME WIN-TITLE) [function]
Description 

Creates an instance of type GENDER and returns it.

Called By 

ACTIVATE-OBJECT

Calls 

MAKE-INSTANCE

Location 

global.lisp

MAKE-HELP-TOPIC
 (MAKE-HELP-TOPIC)

MAKE-INNER-KEY-TABLE
 (MAKE-INNER-KEY-TABLE) [function]
Called By 

DEFINE-KEYPRESS

Calls 

MAKE-HASH-TABLE

Location 

global.lisp

MAKE-INPUT-EVENT
 (MAKE-INPUT-EVENT)

MAKE-KEYBOARD-EVENT
 (MAKE-KEYBOARD-EVENT)

MAKE-MAP
 (MAKE-MAP DUNGEON) [function]
Description 

Returns a map based on a given dungeon.

Calls 

DUNGEON.HEIGHT, DUNGEON.WIDTH and MAKE-ARRAY

Location 

dungeon.lisp

MAKE-MESSAGE
 (MAKE-MESSAGE)
Called By 

PRINT-MESSAGE!

Location 

classes.lisp

MAKE-MOUSE-EVENT
 (MAKE-MOUSE-EVENT)
Called By 

GAME-INIT&

Location 

classes.lisp

MAKE-OLD-PLAYER-INFO
 (MAKE-OLD-PLAYER-INFO VARIANT) [function]
Description 

creates and returns a freshly init'ed OLD-PLAYER-INFO object.

Calls 

(SETF OLD.ABILITIES), (SETF OLD.STATS), MAKE-INSTANCE and MAKE-STAT-ARRAY

Location 

player.lisp

MAKE-RANDOM-LEVEL-OBJ
 (MAKE-RANDOM-LEVEL-OBJ) [function]
Calls 

MAKE-INSTANCE

Location 

dungeon.lisp

MAKE-SAVEBLOCK
 (MAKE-SAVEBLOCK)

MAKE-SAVEHEADER
 (MAKE-SAVEHEADER)

MAKE-STAT-ARRAY
 (MAKE-STAT-ARRAY VARIANT) [generic]
Description 

Returns an array suitable for holding all the stats.

Called By 

BUILD-STAT-TABLE-FROM-SYMLIST and MAKE-OLD-PLAYER-INFO

Location 

generics.lisp

MAKE-STAT-ARRAY
 (MAKE-STAT-ARRAY (VARIANT VARIANT)) [method]
Calls 

MAKE-ARRAY and VARIANT.STAT-LENGTH

Location 

global.lisp

MAKE-STAT-FIELD
 (MAKE-STAT-FIELD)
Called By 

DEFINE-CHARACTER-STAT

Location 

classes.lisp

MAKE-STORE-SALES-LIST
 (MAKE-STORE-SALES-LIST VARIANT STORE-ID SALE-LIST) [function]
Description 

Returns a list of sale-priorities, given a sale-spec.

Calls 

GET-OBJECT-KIND and WARN

Location 

stores.lisp

MAKE-TACTIC-CHOICE
 (MAKE-TACTIC-CHOICE)

MAKE-TARGET
 (MAKE-TARGET)
Called By 

GET-TARGET-AT-COORDINATE and INTERACTIVE-TARGETING!

Location 

classes.lisp

MAKE-THROWN-VISUAL
 (MAKE-THROWN-VISUAL WIN OBJ SX SY TX TY &KEY (SPEED NIL)) [function]
Description 

Creates a THROWN-OBJECT-MOVEMENT object with the most common settings.

Called By 

THROW-OBJECT

Calls 

ATAN, ERROR, IS-WINDOW?, MAKE-INSTANCE, NON-NEGATIVE-INTEGER? and POSITIVE-INTEGER?

Location 

util.lisp

MAKE-VINFO-HACK
 (MAKE-VINFO-HACK)
Called By 

%CREATE-VINFO-HACK

Location 

view.lisp

MAKE-VINFO-TYPE
 (MAKE-VINFO-TYPE)

MAKE-WALK-MOVEMENT
 (MAKE-WALK-MOVEMENT OBJ WIN SX SY TX TY &KEY SPEED) [function]
Description 

Creates a SPRITE-MOVEMENT object with the most common settings for walking.

Called By 

SWAP-MONSTERS!

Calls 
Location 

util.lisp

MAKE-WORN-ITEM-SLOT
 (MAKE-WORN-ITEM-SLOT)

MAX-CAP
 (MAX-CAP MAX VAL) [function]
Description 

If val is less than max, return val, else return max.

Called By 

VAN-GROUP-CHANCE

Location 

base.lisp

MELEE-HIT-AC?
 (MELEE-HIT-AC? THE-TARGET COMBAT-SKILL THE-AC VISIBLE-P) [function]
Description 

Helper-function that checks if something was a hit.

Calls 

INT-/ and RANDOM

Location 

combat.lisp

MELEE-INFLICT-DAMAGE!
 (MELEE-INFLICT-DAMAGE! ATTACKER TARGET THE-ATTACK) [generic]
Description 

inflict some damage after a successful hit.

Called By 

ATTACK-TARGET!

Location 

generics.lisp

MELEE-INFLICT-DAMAGE!
 (MELEE-INFLICT-DAMAGE! (ATTACKER ACTIVE-MONSTER) TARGET (THE-ATTACK ATTACK)) [method]
Calls 

ASK-FOR-REDRAW!, ATTACK-TYPE.HIT-EFFECT, ATTACK.DAMAGE, ATTACK.DMG-TYPE, DEDUCT-HP!, FUNCALL, FUNCTIONP, IS-PLAYER? and ROLL-DICE

Location 

combat.lisp

MESSAGE.ATTR
 (MESSAGE.ATTR (OBJ MESSAGE)) [function]

(SETF MESSAGE.ATTR)
 ((SETF MESSAGE.ATTR) (OBJ MESSAGE)) [function]

MESSAGE.TEXT
 (MESSAGE.TEXT (OBJ MESSAGE)) [function]

(SETF MESSAGE.TEXT)
 ((SETF MESSAGE.TEXT) (OBJ MESSAGE)) [function]

MIN-CAP
 (MIN-CAP MIN VAL) [function]
Description 

If val is greater than min, return val, else return min.

Called By 

PRODUCE-ACTIVE-MONSTER

Location 

base.lisp

MISSILE-HIT-CREATURE?
 (MISSILE-HIT-CREATURE? ATTACKER TARGET MISSILE-WEAPON MISSILE) [generic]
Description 

Returns T if the missile hit the target, NIL otherwise.

Called By 

FINALISE-VISUAL-EVENT

Location 

generics.lisp

MISSILE-HIT-CREATURE?
 (MISSILE-HIT-CREATURE? ATTACKER TARGET MISSILE-WEAPON MISSILE) [method]
Calls 

DISTANCE, GET-CREATURE-AC, GET-RANGED-ATTACK-SKILL, GET-TOHIT-MODIFIER, INT-/, LOCATION-X, LOCATION-Y and RANDOM

Location 

combat.lisp

MISSILE-INFLICT-DAMAGE!
 (MISSILE-INFLICT-DAMAGE! ATTACKER TARGET MISSILE-WEAPON MISSILE) [generic]
Description 

Rolls and applies damage to the target.

Location 

generics.lisp

MISSILE-INFLICT-DAMAGE!
 (MISSILE-INFLICT-DAMAGE! (ATTACKER PLAYER) (TARGET ACTIVE-MONSTER) MISSILE-WEAPON MISSILE) [method]
Calls 

DEDUCT-HP! and ROLL-DICE

Location 

combat.lisp

MODIFY-ATTRIBUTE!
 (MODIFY-ATTRIBUTE! KEY TABLE NEW-VALUE) [function]
Description 

Tries to change a named creature-attribute.

Called By 

CALCULATE-ABILITIES!

Calls 

(SETF ATTR.VALUE) and GETHASH

Location 

player.lisp

MODIFY-CREATURE-STATE!
 (MODIFY-CREATURE-STATE! CREATURE STATE &KEY NEW-VALUE ADD SUBTRACT) [generic]
Description 

Modifies the creature-state appropriately.

Called By 

PLACE-SINGLE-MONSTER! and UPDATE-SLEEP-STATUS

Location 

generics.lisp

MODIFY-GOLD!
 (MODIFY-GOLD! CREATURE AMOUNT) [generic]
Description 

Modifies the amount of gold this creature carries.

Called By 

PICK-UP-FROM-FLOOR!

Location 

generics.lisp

MODIFY-GOLD!
 (MODIFY-GOLD! (PLAYER PLAYER) AMOUNT) [method]
Calls 

ASK-FOR-REDRAW! and PLAYER.GOLD

Location 

player.lisp

MODIFY-VISUAL-STATE!
 (MODIFY-VISUAL-STATE! VARIANT KEY NEW-VALUE) [function]
Description 

Activates the display of a visual state.

Called By 

PRINT-EXTRA-FRAME-CONTENT and REDRAW-STUFF

Calls 

(SETF VISUAL-STATE.ACTIVE), VARIANT.VISUAL-STATES and VISUAL-STATE.KEY

Location 

global.lisp

MONSTER.ATTACKS
 (MONSTER.ATTACKS (MON ACTIVE-MONSTER)) [method]
Calls 

AMON.KIND and MONSTER.ATTACKS

Location 

monster.lisp

MONSTER.NAME
 (MONSTER.NAME (CREATURE ACTIVE-MONSTER)) [method]
Calls 

AMON.KIND and MONSTER.NAME

Location 

monster.lisp

MOUSE-EVENT.BUTTON
 (MOUSE-EVENT.BUTTON (OBJ MOUSE-EVENT)) [function]

(SETF MOUSE-EVENT.BUTTON)
 ((SETF MOUSE-EVENT.BUTTON) (OBJ MOUSE-EVENT)) [function]
Called By 

FETCH-EVENT

Location 

classes.lisp

MOUSE-EVENT.X
 (MOUSE-EVENT.X (OBJ MOUSE-EVENT)) [function]

(SETF MOUSE-EVENT.X)
 ((SETF MOUSE-EVENT.X) (OBJ MOUSE-EVENT)) [function]
Called By 

FETCH-EVENT

Location 

classes.lisp

MOUSE-EVENT.Y
 (MOUSE-EVENT.Y (OBJ MOUSE-EVENT)) [function]

(SETF MOUSE-EVENT.Y)
 ((SETF MOUSE-EVENT.Y) (OBJ MOUSE-EVENT)) [function]
Called By 

FETCH-EVENT

Location 

classes.lisp

MOVE-CREATURE-TO-DEPTH!
 (MOVE-CREATURE-TO-DEPTH! DUNGEON PLAYER &KEY DIRECTION AMOUNT TYPE) [generic]
Description 

Moves a creature off the current level/depth to another level/depth. Excellent for trapdoors.

Called By 

USE-STAIR!

Location 

generics.lisp

MOVE-CREATURE-TO-DEPTH!
 (MOVE-CREATURE-TO-DEPTH! DUNGEON PLAYER &KEY (DIRECTION :DOWN) (AMOUNT 1) TYPE) [method]
Calls 

(SETF DUNGEON.DEPTH), (SETF PLAYER.DEPTH), (SETF PLAYER.ENERGY-USE), (SETF PLAYER.LEAVING?), (SETF PLAYER.MAX-DEPTH), ASK-FOR-REDRAW!, ASK-FOR-UPDATE!, PLAYER.DEPTH, PLAYER.MAX-DEPTH and VARIANT.MAX-DEPTH

Location 

actions.lisp

MOVE-OK?
 (MOVE-OK? DUNGEON PLAYER X Y) [function]
Description 

Helper function to determine if a square is legal to move to.

Calls 

CAVE-FLOOR-BOLD? and LEGAL-COORD?

Location 

actions.lisp

MYSTRCAT
 (MYSTRCAT X Y) [function]
Description 

Basically catenates strings and tries to stringify arguments to be sure

Calls 

CONCATENATE

Location 

base.lisp

NEED-FLAVOUR?
 (NEED-FLAVOUR? VARIANT OBJECT) [generic]
Description 

Does this object need to be flavoured before use? (t or nil)

Location 

generics.lisp

NEW-PLAYER-SPOT!
 (NEW-PLAYER-SPOT! DUNGEON PLAYER) [function]
Calls 

CAN-PLACE?, CAVE-ICKY?, CAVE-OBJECTS, DUNGEON.HEIGHT, DUNGEON.WIDTH, PLACE-PLAYER! and RAND-RANGE

Location 

generate.lisp

NEXT-TO-CORRIDOR
 (NEXT-TO-CORRIDOR DUNGEON X Y) [function]
Description 

returns a fixnum

Called By 

POSSIBLE-DOORWAY?

Location 

generate.lisp

NEXT-TO-WALLS
 (NEXT-TO-WALLS DUNGEON X Y) [function]
Description 

Returns number of close walls in the four dirs.

Called By 

ALLOCATE-STAIRS!

Calls 

%IS-WALL?, BIT-FLAG-SET?, CAVE-DECOR, CAVE-FLOOR and FLOOR.FLAGS

Location 

generate.lisp

NONBOOLSYM?
 (NONBOOLSYM? SYM) [function]
Called By 

DEFINE-ATTACK-DESCRIPTION, INSTALL-WINDOW-FONT!, PLAY-GAME&, PROCESS-SUBWINDOW-DATA! and READ-MAP

Location 

base.lisp

NORMALISED-RANDOM
 (NORMALISED-RANDOM MEAN STAND) [function]
Description 

Generate a random integer number of NORMAL distribution The table above is used to generate a psuedo-normal distribution, in a manner which is much faster than calling a transcendental function to calculate a true normal distribution.

Called By 

GET-LEVEL-APPROPRIATE-ENCHANTMENT

Calls 

INT-/ and RANDOM

Location 

util.lisp

NOTE-SPOT!
 (NOTE-SPOT! DUNGEON X Y) [function]
Description 

noting the spot.

Called By 

(SETF CAVE-FLOOR)

Calls 

(SETF AOBJ.MARKED), BIT-FLAG-ADD!, BIT-FLAG-SET?, CAVE-COORD, CAVE-OBJECTS, COORD.FLAGS, COORD.FLOOR, FLOOR.FLAGS and ITEMS.OBJS

Location 

dungeon.lisp

NUMBERIFY-CHAR
 (NUMBERIFY-CHAR CHR) [macro]

OBJECT-EFFECT
 (OBJECT-EFFECT ARGUMENTS) [macro]

OBJECT.NAME
 (OBJECT.NAME (OBJ ACTIVE-OBJECT)) [method]
Calls 

AOBJ.KIND and OBJECT.NAME

Location 

object.lisp

OBJECT.WEIGHT
 (OBJECT.WEIGHT (OBJ ACTIVE-OBJECT)) [method]
Calls 

AOBJ.KIND, AOBJ.NUMBER and OBJECT.WEIGHT

Location 

object.lisp

ON-CREATURE-DEATH
 (ON-CREATURE-DEATH VARIANT CREATURE KILLER) [generic]
Description 

Called when a non-player creature dies.

Location 

generics.lisp

ON-DESTROY-OBJECT
 (ON-DESTROY-OBJECT VARIANT CREATURE OBJECT) [generic]
Description 

Called whenever the creature destroys something.

Called By 

INTERACTIVE-DESTROY-ITEM!

Location 

generics.lisp

ON-DESTROY-OBJECT
 (ON-DESTROY-OBJECT (VARIANT VARIANT) (PLAYER PLAYER) (OBJ ACTIVE-OBJECT)) [method]

ON-DROP-OBJECT
 (ON-DROP-OBJECT VARIANT CREATURE OBJECT) [generic]
Description 

Called whenever the creature drops something and it has been put on the ground.

Called By 

INTERACTIVE-DROP-ITEM!

Location 

generics.lisp

ON-DROP-OBJECT
 (ON-DROP-OBJECT (VARIANT VARIANT) (PLAYER PLAYER) (OBJ ACTIVE-OBJECT)) [method]

ON-GAME-START
 (ON-GAME-START VARIANT CREATURE) [generic]
Description 

Is called just before the game starts (from birth or savefile).

Called By 

PLAY-GAME&

Location 

generics.lisp

ON-GAME-START
 (ON-GAME-START VARIANT PLAYER) [method]

ON-MOVE-TO-COORD
 (ON-MOVE-TO-COORD VARIANT CREATURE X Y) [generic]
Description 

Called whenever the player actively moves to a new coordinate.

Called By 

MOVE-PLAYER!

Location 

generics.lisp

ON-MOVE-TO-COORD
 (ON-MOVE-TO-COORD VARIANT CREATURE X Y) [method]

ON-NEW-PLAYER
 (ON-NEW-PLAYER VARIANT CREATURE) [generic]
Description 

Is called when the creature/player has just been created.

Called By 

%CREATE-NEW-CHARACTER

Location 

generics.lisp

ON-NEW-PLAYER
 (ON-NEW-PLAYER VARIANT PLAYER) [method]

ON-PICKUP-OBJECT
 (ON-PICKUP-OBJECT VARIANT CREATURE OBJECT) [generic]
Description 

Called whenever the creature has picked up something and it has been put in the inventory.

Called By 

PICK-UP-FROM-FLOOR!

Location 

generics.lisp

ON-PICKUP-OBJECT
 (ON-PICKUP-OBJECT (VARIANT VARIANT) (PLAYER PLAYER) (OBJ ACTIVE-OBJECT)) [method]

ON-PLAYER-DEATH
 (ON-PLAYER-DEATH VARIANT CREATURE) [generic]
Description 

Called when the player has just died.

Location 

generics.lisp

ON-TAKE-OFF-OBJECT
 (ON-TAKE-OFF-OBJECT VARIANT CREATURE OBJECT) [generic]
Description 

Called whenever the creature takes off a worn object.

Called By 

INTERACTIVE-TAKE-OFF-ITEM!

Location 

generics.lisp

ON-TAKE-OFF-OBJECT
 (ON-TAKE-OFF-OBJECT (VARIANT VARIANT) (PLAYER PLAYER) (OBJ ACTIVE-OBJECT)) [method]

ON-WEAR-OBJECT
 (ON-WEAR-OBJECT VARIANT CREATURE OBJECT) [generic]
Description 

Called whenever the creature wears something and it has been put in the worn-items.

Called By 

INTERACTIVE-WEAR-ITEM!

Location 

generics.lisp

ON-WEAR-OBJECT
 (ON-WEAR-OBJECT (VARIANT VARIANT) (PLAYER PLAYER) (OBJ ACTIVE-OBJECT)) [method]

OPEN-DOOR!
 (OPEN-DOOR! DUNGEON X Y) [function]
Description 

hackish, fix me later..

Called By 

MOVE-PLAYER!

Calls 

CAVE-DECOR, DECOR-OPERATION, IS-CLOSED-DOOR?, LIGHT-SPOT! and PLAY-SOUND

Location 

actions.lisp

OUTPUT-STRING!
 (OUTPUT-STRING! WIN COL ROW COLOUR TEXT) [function]
Called By 

HANDLE-MOUSE-CLICK, PRINT-CUT, PRINT-MANA-POINTS, PRINT-STAT-VALUE, PRINT-STUN, PUT-COLOURED-LINE!, PUT-COLOURED-STR!, TRY-PRINTING-MESSAGES! and TRY-PRINTING-MESSAGES!

Calls 

FLUSH-COORDS

Location 

global.lisp

PAINT-COORD
 (PAINT-COORD WIN X Y &OPTIONAL (FLAG 0)) [function]
Description 

This function paints a coord to the window.. it has some hackish parts to be able to do both ascii info, ascii maps and graphics.

Called By 

CLEAR-OLD-TILES!, DISPLAY-MOVING-OBJECT, DRAW-RELATIVE-EFFECT!, LIGHT-SPOT!, REMOVE-TARGET-DISPLAY, SET-CURSOR-TO and WIN/WRITE-CHAR

Calls 

(SETF AREF), ORG.LANGBAND.FFI:C-FULL-BLIT, ORG.LANGBAND.FFI:C-TRANSPARENT-BLIT, WINDOW-COORD, WINDOW.GFX-TILES?, WINDOW.NUM-ID, WINDOW.TILE-HEIGHT and WINDOW.TILE-WIDTH

Location 

window.lisp

PAINT-GFX-IMAGE
 (PAINT-GFX-IMAGE WINDOW IDX X Y &OPTIONAL (LAYER +FOREGROUND+)) [function]
Description 

Paints a graphic image with given index with x,y as top-left coordinates. Can also specify what layer it should be at.

Called By 

LOAD-SETTING-BACKGROUND, PAINT-GFX-IMAGE& and PLAY-GAME&

Calls 

INT-/, ORG.LANGBAND.FFI:C-GET-IMAGE-HEIGHT, ORG.LANGBAND.FFI:C-GET-IMAGE-WIDTH and REFRESH-WINDOW

Location 

global.lisp

PAINT-GFX-IMAGE&
 (PAINT-GFX-IMAGE& FNAME X Y) [function]
Description 

Paints the given gfx image with x,y as top-left coordinates. If the file has not been loaded, it will be loaded.

Called By 

DISPLAY-PLAYER-MISC

Calls 

FIND-IMAGE, LOAD-IMAGE& and PAINT-GFX-IMAGE

Location 

global.lisp

PARSE-AND-ROLL-DICE
 (PARSE-AND-ROLL-DICE STR) [function]
Description 

Parses and rolls the dice-str.

Called By 

CREATE-AOBJ-FROM-KIND

Calls 

PARSE-DICE and ROLL-DICE

Location 

base.lisp

PARSE-DICE
 (PARSE-DICE STR) [function]
Description 

Parses a dice and returns a CONS with num-dice and base-dice.

Called By 

%PARSE-TREASURE-SPEC and PARSE-AND-ROLL-DICE

Calls 

PARSE-INTEGER, POSITION and SUBSEQ

Location 

base.lisp

PARSE-DMG-DESC
 (PARSE-DMG-DESC DESC) [function]
Description 

Parses a dmg description and returns the values.

Calls 

READ-FROM-STRING and WARN

Location 

object.lisp

PAUSE-AT-LINE!
 (PAUSE-AT-LINE! ROW &KEY MSG ATTR) [function]
Description 

Puts a 'press any key' prompt at the given row, returns after key has been pressed.

Called By 

PAUSE-LAST-LINE!

Calls 

CLEAR-ROW, PRINT-NOTE! and READ-ONE-CHARACTER

Location 

global.lisp

PAUSE-LAST-LINE!
 (PAUSE-LAST-LINE! &KEY MSG ATTR) [function]
Description 

Calls pause-at-line! at the last line of *cur-win*

Called By 

%LOAD-SAVED-GAME, %SHOW-HELP-FILE, BROWSE-SPELLS, INTERACTIVE-IDENTIFY-SYMBOL, PLAY-GAME&, PRINT-ATTACK-GRAPH, PRINT-ATTACK-TABLE and SHOW-MESSAGES

Calls 

GET-LAST-CONSOLE-LINE and PAUSE-AT-LINE!

Location 

global.lisp

PICK-UP-FROM-FLOOR!
 (PICK-UP-FROM-FLOOR! DUNGEON PLAYER) [function]
Description 

Tries to pick up from floor. Should be implemented with selection from a list if more items occupy the same place.

Called By 

ON-MOVE-TO-COORD

Calls 
Location 

actions.lisp

PLACE-DOOR!
 (PLACE-DOOR! VARIANT DUNGEON X Y DOOR) [generic]
Description 

Places a door at the given coord.

Called By 

%DISTRIBUTE-DECOR! and PLACE-RANDOM-DOOR!

Location 

generics.lisp

PLACE-DOOR!
 (PLACE-DOOR! (VARIANT VARIANT) DUNGEON X Y (DOOR ACTIVE-DOOR)) [method]
Calls 

(SETF CAVE-DECOR), BIT-FLAG-ADD!, BIT-FLAG-REMOVE!, CAVE-FLAGS, DECOR.TYPE, DUNGEON.DECOR and SLOT-VALUE

Location 

building.lisp

PLACE-GOLD!
 (PLACE-GOLD! VARIANT DUNGEON X Y) [generic]
Description 

Places some gold in the dungeon at x,y.

Location 

generics.lisp

PLACE-GOLD!
 (PLACE-GOLD! (VARIANT VARIANT) (DUNGEON DUNGEON) X Y) [method]
Calls 

CREATE-GOLD and LET-FLOOR-CARRY!

Location 

generate.lisp

PLACE-MONSTER!
 (PLACE-MONSTER! VARIANT DUNGEON PLAYER X Y SLEEPING GROUP) [generic]
Description 

Places a monster on the given coordinate.

Location 

generics.lisp

PLACE-MONSTER!
 (PLACE-MONSTER! (VARIANT VARIANT) (DUNGEON DUNGEON) PLAYER X Y SLEEPING GROUP) [method]
Calls 

AMON.KIND, APPEARS-IN-GROUP?, DUNGEON.DEPTH, GET-ACTIVE-MONSTER-BY-LEVEL, PLACE-MONSTER-GROUP! and PLACE-SINGLE-MONSTER!

Location 

allocate.lisp

PLACE-MONSTER-GROUP!
 (PLACE-MONSTER-GROUP! DUNGEON PLAYER MON-KIND X Y SLEEPING) [function]
Description 

Tries to scatter a bunch of monsters in the dungeon of the given kind.

Calls 

DUNGEON.DEPTH and RANDINT

Location 

allocate.lisp

PLACE-OBJECT!
 (PLACE-OBJECT! VARIANT DUNGEON X Y GOOD-P GREAT-P) [generic]
Description 

Place an object at the given coordinate.

Location 

generics.lisp

PLACE-OBJECT!
 (PLACE-OBJECT! (VARIANT VARIANT) (DUNGEON DUNGEON) X Y GOOD-P GREAT-P) [method]
Calls 

CREATE-OBJECT and LET-FLOOR-CARRY!

Location 

generate.lisp

PLACE-PLAYER!
 (PLACE-PLAYER! DUNGEON PLAYER X Y) [function]
Called By 

NEW-PLAYER-SPOT!

Calls 

(SETF LOCATION-X) and (SETF LOCATION-Y)

Location 

dungeon.lisp

PLACE-RANDOM-DOOR!
 (PLACE-RANDOM-DOOR! VARIANT DUNGEON X Y) [function]
Description 

Places a door at the given coordinate

Called By 

BUILD-TUNNEL! and TRY-DOOR!

Calls 

%RETRIEVE-DOOR, (SETF DECOR.VISIBLE?), (SETF DOOR.BROKEN?), (SETF DOOR.LOCK), (SETF DOOR.STUCK), PLACE-DOOR!, RANDINT and RANDOM

Location 

generate.lisp

PLACE-RANDOM-TRAP!
 (PLACE-RANDOM-TRAP! VARIANT DUNGEON X Y) [generic]
Description 

Creates a fitting and random trap, and places the trap at the given coord.

Location 

generics.lisp

PLACE-RANDOM-TRAP!
 (PLACE-RANDOM-TRAP! (VARIANT VARIANT) DUNGEON X Y) [method]
Calls 

CAN-PLACE?, FIND-RANDOM-TRAP, IN-BOUNDS?, IS-TRAP?, PLACE-TRAP! and WARN

Location 

generate.lisp

PLACE-RUBBLE!
 (PLACE-RUBBLE! VARIANT DUNGEON X Y) [generic]
Description 

Places rubble at the given coord.

Location 

generics.lisp

PLACE-RUBBLE!
 (PLACE-RUBBLE! (VARIANT VARIANT) DUNGEON X Y) [method]
Calls 

(SETF CAVE-FLOOR)

Location 

generate.lisp

PLACE-SINGLE-MONSTER!
 (PLACE-SINGLE-MONSTER! DUNGEON PLAYER MON X Y SLEEPING) [function]
Description 

places a single monster MON at (X,Y) in dungeon DUN.

Calls 
Location 

allocate.lisp

PLACE-TRAP!
 (PLACE-TRAP! VARIANT DUNGEON X Y TRAP) [generic]
Description 

Places a trap at the given coord.

Called By 

%DISTRIBUTE-DECOR!

Location 

generics.lisp

PLACE-TRAP!
 (PLACE-TRAP! (VARIANT VARIANT) DUNGEON X Y (THE-TRAP ACTIVE-TRAP)) [method]
Calls 

(SETF CAVE-DECOR), CAN-PLACE?, CAVE-DECOR, DECOR.VISIBLE?, DUNGEON.DECOR and IN-BOUNDS?

Location 

generate.lisp

PLAY-MUSIC
 (PLAY-MUSIC MUSIC LOOPS) [function]
Description 

Tries to play given music.

Called By 

PLAY-GAME&

Calls 

FIND, ORG.LANGBAND.FFI:C-PLAY-MUSIC-FILE and WARN

Location 

sound.lisp

PLAY-SOUND
 (PLAY-SOUND TYPE &KEY (LOOPS 0) (CHANNEL -1)) [function]
Description 

Plays the given sound(s) for type.

Called By 

%RUN-DIRECTION, ATTACK-TARGET!, CLOSE-DOOR!, INTERACTIVE-USE-ITEM!, OPEN-DOOR! and PROJECT-ON-LOS-MONSTERS

Calls 

GETHASH, ORG.LANGBAND.FFI:C-PLAY-SOUND-EFFECT, RAND-ELM and USING-SOUND?

Location 

sound.lisp

PLAYER-CAN-SEE-BOLD?
 (PLAYER-CAN-SEE-BOLD? DUNGEON X Y) [function]
Calls 

BIT-FLAG-SET? and CAVE-FLAGS

Location 

dungeon.lisp

PLAYER-HAS-LOS-BOLD?
 (PLAYER-HAS-LOS-BOLD? DUNGEON X Y) [function]
Called By 

PROJECT-ON-LOS-MONSTERS and RUN-LEVEL!

Calls 

BIT-FLAG-SET? and CAVE-FLAGS

Location 

dungeon.lisp

PLAYER-IS-AT?
 (PLAYER-IS-AT? PLAYER X Y) [function]
Description 

Checks if the player is at x,y

Called By 

FINALISE-VISUAL-EVENT

Calls 

LOCATION-X and LOCATION-Y

Location 

player.lisp

PLURAL-NAME
 (PLURAL-NAME NUMBER NAME FLAVOUR IDENT ACTUAL-NAME &KEY NUMERIC-PREFIX) [function]
Description 

Returns a name with plurality fixed as in normal Angband. FIX ME

Called By 

WRITE-OBJ-DESCRIPTION and WRITE-OBJ-DESCRIPTION

Calls 

WRITE-PLURALISED-STRING

Location 

object.lisp

POSITIVE-INTEGER?
 (POSITIVE-INTEGER? OBJ) [function]
Description 

Returns T if obj is an integer and > 0.

Called By 

DEFINE-CHARACTER-STAT, GET-ANIMATED-SPRITE, INITIALISE-OBJECT-KIND!, INSTALL-WINDOW-FONT!, MAKE-MISSILE-VISUAL, MAKE-THROWN-VISUAL, MAKE-WALK-MOVEMENT, SHOOT-A-MISSILE, TELEPORT-CREATURE!, TRIGGER-SPECIAL-ABILITY and UPDATE-SLEEP-STATUS

Location 

base.lisp

POSSIBLE-DOORWAY?
 (POSSIBLE-DOORWAY? VARIANT DUNGEON X Y) [function]
Called By 

TRY-DOOR!

Calls 

CAVE-FLOOR, IS-REAL-WALL? and NEXT-TO-CORRIDOR

Location 

generate.lisp

POSSIBLE-EXPAND
 (POSSIBLE-EXPAND THEME EXPR) [function]
Description 

If EXPR is a delayed expression, it tries to expand it, if not it returns the expression.

Called By 

ESTABLISH-UI-THEME-SIZE-CALCULATIONS& and FETCH-THEME-VAR

Calls 

DELAYED-EXPR, DELAYED-P and HANDLE-UI-THEME-CALCULATION

Location 

themes.lisp

POSSIBLY-INCREMENT-ANIMATION!
 (POSSIBLY-INCREMENT-ANIMATION! ANIMATION CUR-TICK) [function]
Description 

Checks if the animation needs update, and if it does, increment it.

Calls 

(SETF ANIM.CURRENT), ANIM.CHANGE-INTERVAL, ANIM.CURRENT, ANIM.NEXT-CHANGE and ANIM.NUMBER

Location 

util.lisp

PR-HT
 (PR-HT HTBL) [function]
Calls 

FORMAT and MAPHASH

Location 

sys.lisp

PRINT-BASIC-FRAME
 (PRINT-BASIC-FRAME VARIANT DUNGEON PLAYER) [generic]
Description 

Prints out the basic frame..

Location 

generics.lisp

PRINT-BASIC-FRAME
 (PRINT-BASIC-FRAME (VARIANT VARIANT) DUNGEON PLAYER) [method]
Calls 

BASIC-FRAME-SHOWN?, PRINT-DEPTH and TRIGGER-PRINTFIELD-HOOKS&

Location 

print.lisp

PRINT-DEPTH
 (PRINT-DEPTH VARIANT LEVEL SETTING) [generic]
Description 

fix me later.. currently just prints depth.

Location 

generics.lisp

PRINT-EXTRA-FRAME-CONTENT
 (PRINT-EXTRA-FRAME-CONTENT VARIANT DUNGEON PLAYER) [generic]
Description 

Prints extra frame content.

Location 

generics.lisp

PRINT-HUNGER
 (PRINT-HUNGER VARIANT PLAYER SETTING) [generic]
Description 

Tries to print satiation/hunger state.

Called By 

PRINT-EXTRA-FRAME-CONTENT and REDRAW-STUFF

Location 

generics.lisp

PRINT-HUNGER
 (PRINT-HUNGER (VARIANT VARIANT) (PLAYER PLAYER) SETTING) [method]
Calls 

%GET-HUNGERLVL, BASIC-FRAME-SHOWN?, GET-WINDOW, OUTPUT-STRING!, PLAYER.SATIATION and SETTING-LOOKUP

Location 

print.lisp

PRINT-MAP
 (PRINT-MAP DUNGEON PLAYER) [function]
Description 

Prints a map of the given dungeon to the screen

Called By 

SWITCH-MAP-MODE

Calls 

GET-FRAME-HEIGHT, GET-FRAME-WIDTH, PAINT-WINDOW, PLAYER.VIEW-X and PLAYER.VIEW-Y

Location 

dungeon.lisp

PRINT-MISC-INFO
 (PRINT-MISC-INFO VARIANT PLAYER SETTING) [generic]
Description 

Tries to print misc-info about a player to a clear window.

Location 

generics.lisp

PRINT-MISC-INFO
 (PRINT-MISC-INFO (VARIANT VARIANT) (PLAYER PLAYER) SETTING) [method]
Calls 

CLEAR-WINDOW, FORMAT, PAUSE-LAST-LINE! and PUT-COLOURED-STR!

Location 

print.lisp

PRINT-NOTE!
 (PRINT-NOTE! MSG &OPTIONAL (ATTR +TERM-WHITE+) &KEY (ROW -1)) [function]
Description 

Prints a centred note on the last line.

Called By 

PAUSE-AT-LINE! and PLAY-GAME&

Calls 

CLEAR-ROW, GET-LAST-CONSOLE-COLUMN, GET-LAST-CONSOLE-LINE, INT-/, ORG.LANGBAND.FFI:C-FLIP-FRAMEBUFFER, PUT-COLOURED-STR!, REFRESH-WINDOW and WINDOW.HEIGHT

Location 

global.lisp

PRINT-NUMBER
 (PRINT-NUMBER TERM COLOUR NUMBER PADDING ROW COL) [function]
Calls 

GET-WINDOW and WIN/FORMAT

Location 

print.lisp

PRINT-OBJECT
 (PRINT-OBJECT (INST CHARACTER-CLASS) STREAM) [method]
 (PRINT-OBJECT (INST CHARACTER-RACE) STREAM) [method]
 (PRINT-OBJECT (INST FLOOR-TYPE) STREAM) [method]
 (PRINT-OBJECT (INST HOUSE) STREAM) [method]
 (PRINT-OBJECT (INST OWNER) STREAM) [method]
 (PRINT-OBJECT (INST OBJECT-KIND) STREAM) [method]
 (PRINT-OBJECT (INST ACTIVE-OBJECT) STREAM) [method]
 (PRINT-OBJECT (INST FLAVOUR) STREAM) [method]
 (PRINT-OBJECT (INST MONSTER-KIND) STREAM) [method]
 (PRINT-OBJECT (INST ACTIVE-MONSTER) STREAM) [method]
 (PRINT-OBJECT (INST TRAP-TYPE) STREAM) [method]
 (PRINT-OBJECT (INST ACTIVE-TRAP) STREAM) [method]
 (PRINT-OBJECT (INST DOOR-TYPE) STREAM) [method]
 (PRINT-OBJECT (INST ACTIVE-DOOR) STREAM) [method]
 (PRINT-OBJECT (INST TREASURE-DROP) STREAM) [method]
 (PRINT-OBJECT (INST CREATURE-ATTRIBUTE) STREAM) [method]
 (PRINT-OBJECT (INST TEMP-CREATURE-ATTRIBUTE) STREAM) [method]
 (PRINT-OBJECT (INST CHARACTER-STAT) STREAM) [method]
 (PRINT-OBJECT (INST ELEMENT) STREAM) [method]
 (PRINT-OBJECT (INST EFFECT) STREAM) [method]
 (PRINT-OBJECT (INST GENDER) STREAM) [method]
 (PRINT-OBJECT (INST ATTACK) STREAM) [method]
 (PRINT-OBJECT (INST ATTACK-TYPE) STREAM) [method]
 (PRINT-OBJECT (INST ITEMS-IN-CONTAINER) STREAM) [method]
 (PRINT-OBJECT (INST WINDOW) STREAM) [method]
 (PRINT-OBJECT (INST VISUAL-PROJECTILE) STREAM) [method]
 (PRINT-OBJECT (INST VISUAL-STATE) STREAM) [method]
 (PRINT-OBJECT (INST AI-STRATEGY) STREAM) [method]
 (PRINT-OBJECT (INST PEACEFUL-MOVER) STREAM) [method]
 (PRINT-OBJECT (INST TACTIC-FACTORS) STREAM) [method]

PRINT-RESISTANCE-TABLE
 (PRINT-RESISTANCE-TABLE VARIANT PLAYER SETTINGS) [generic]
Description 

Prints a table of resistance that the player has.

Location 

generics.lisp

PRINT-RESISTANCE-TABLE
 (PRINT-RESISTANCE-TABLE (VAR-OBJ VARIANT) (PLAYER PLAYER) SETTINGS) [method]
Calls 

CLEAR-WINDOW, ELEMENT.NAME, ELEMENT.NUMBER, ELEMENT.SYMBOL, FORMAT, PAUSE-LAST-LINE!, PUT-COLOURED-STR!, RESISTS-ELEMENT?, SETTING-LOOKUP, SYMBOL-NAME and VARIANT.ELEMENTS

Location 

print.lisp

PRINT-STAT-VALUE
 (PRINT-STAT-VALUE TERM COLOUR STAT ROW COL) [function]
Called By 

DISPLAY-PLAYER-STATS

Calls 

GET-WINDOW, OUTPUT-STRING! and WIN/FORMAT

Location 

print.lisp

PRINT-TEXT!
 (PRINT-TEXT! COL ROW COLOUR TEXT &KEY (END-COL 80)) [function]
Description 

Don't call this if you need non-consing or fast operation.

Called By 

%QUERY-FOR-CLASS, %QUERY-FOR-GENDER, %QUERY-FOR-RACE, DISPLAY-MONSTER-RECALL, DISPLAY-OBJECT-RECALL, INTERACTIVE-ALT-SEL, PRINT-ATTACK-TABLE and PRINT-TOMB

Calls 

MAPCAR, NSUBSTITUTE, PUT-COLOURED-STR!, SPLIT-SEQ-ON and STRING-TRIM

Location 

global.lisp

PRINT-TOMB
 (PRINT-TOMB VARIANT PLAYER) [generic]
Description 

Prints a tomb for the given (dead) player.

Location 

generics.lisp

PRINT-TOMB
 (PRINT-TOMB (VARIANT VARIANT) (PLAYER PLAYER)) [method]

PRINTFIELD-HANDLER
 (PRINTFIELD-HANDLER ARGUMENTS) [macro]

PROCESS-PLAYER!
 (PROCESS-PLAYER! VARIANT DUNGEON PLAYER) [function]
Description 

processes the player in a given turn

Called By 

RUN-LEVEL!

Calls 

PLAYER.TEMP-ATTRS

Location 

loop.lisp

PROCESS-SINGLE-MONSTER!
 (PROCESS-SINGLE-MONSTER! VARIANT DUNGEON PLAYER MONSTER) [generic]
Description 

Called when it's the monster's turn to do something.

Called By 

RUN-LEVEL!

Location 

generics.lisp

PROCESS-SINGLE-MONSTER!
 (PROCESS-SINGLE-MONSTER! (VARIANT VARIANT) DUNGEON PLAYER MON) [method]
Calls 

AMON.TEMP-ATTRS, ATTR.VALUE, GETHASH and UPDATE-SLEEP-STATUS

Location 

ai.lisp

PROCESS-UI-THEME-DATA!
 (PROCESS-UI-THEME-DATA! THEME DATA &OPTIONAL WANTED-NAME) [function]
Description 

Tries to parse the given data and set correct values in the ui-theme object given as argument.

Calls 
Location 

themes.lisp

PROCESS-WORLD&
 (PROCESS-WORLD& VARIANT DUNGEON PLAYER) [generic]
Description 

Every tenth turn important calculations might need to be done. These calculations are typically those that needs to be done fairly frequently, but does not need to be 100% updated always.

Called By 

RUN-LEVEL!

Location 

generics.lisp

PROCESS-WORLD&
 (PROCESS-WORLD& (VARIANT VARIANT) (DUNGEON DUNGEON) (PLAYER PLAYER)) [method]
Calls 

VARIANT.TURN

Location 

loop.lisp

PRODUCE-CHARACTER-CLASS
 (PRODUCE-CHARACTER-CLASS VARIANT ID NAME) [generic]
Description 

Returns a character-class object.

Location 

generics.lisp

PRODUCE-CHARACTER-CLASS
 (PRODUCE-CHARACTER-CLASS (VARIANT VARIANT) ID NAME) [method]
Calls 

MAKE-INSTANCE

Location 

character.lisp

PRODUCE-CHARACTER-RACE
 (PRODUCE-CHARACTER-RACE VARIANT ID NAME) [generic]
Description 

Returns a character-class object.

Location 

generics.lisp

PRODUCE-CHARACTER-RACE
 (PRODUCE-CHARACTER-RACE (VARIANT VARIANT) ID NAME) [method]
Calls 

MAKE-INSTANCE

Location 

character.lisp

PRODUCE-HIGH-SCORE-OBJECT
 (PRODUCE-HIGH-SCORE-OBJECT VARIANT PLAYER) [generic]
Description 

Returns a high-score entry for the player.

Called By 

PRINT-TOMB

Location 

generics.lisp

PRODUCE-HIGH-SCORE-OBJECT
 (PRODUCE-HIGH-SCORE-OBJECT (VARIANT VARIANT) (PLAYER PLAYER)) [method]
Calls 
(SETF HS-ENTRY.CAUSE-OF-DEATH)(SETF HS-ENTRY.CLASS)(SETF HS-ENTRY.DATE)
(SETF HS-ENTRY.DEPTH)(SETF HS-ENTRY.GENDER)(SETF HS-ENTRY.GOLD)
(SETF HS-ENTRY.LEVEL)(SETF HS-ENTRY.MAX-DEPTH)(SETF HS-ENTRY.MAX-XP)
(SETF HS-ENTRY.NAME)(SETF HS-ENTRY.RACE)(SETF HS-ENTRY.SCORE)
(SETF HS-ENTRY.TURN)(SETF HS-ENTRY.VARIANT)(SETF HS-ENTRY.VERSION)
(SETF HS-ENTRY.XP)CALCULATE-SCOREGET-ID
GET-UNIVERSAL-TIMEMAKE-HS-ENTRYPLAYER.CLASS
PLAYER.CURRENT-XPPLAYER.DEAD-FROMPLAYER.DEPTH
PLAYER.GENDERPLAYER.GOLDPLAYER.MAX-DEPTH
PLAYER.MAXIMUM-XPPLAYER.NAMEPLAYER.POWER-LVL
PLAYER.RACESTRING-DOWNCASETO-STRING
VARIANT.NAMEVARIANT.TURN 
Location 

death.lisp

PRODUCE-MONSTER-KIND
 (PRODUCE-MONSTER-KIND VARIANT ID NAME &KEY THE-KIND) [generic]
Description 

Produces a monster-kind.

Called By 

DEFINE-MONSTER-KIND

Location 

generics.lisp

PRODUCE-MONSTER-KIND
 (PRODUCE-MONSTER-KIND (VARIANT VARIANT) ID NAME &KEY THE-KIND) [method]
Calls 

FIND, MAKE-INSTANCE and MAKE-OF-CLASS

Location 

monster.lisp

PRODUCE-OBJECT-KIND
 (PRODUCE-OBJECT-KIND VARIANT ID NAME &KEY THE-KIND) [generic]
Description 

Produces an object-kind.

Called By 

DEFINE-OBJECT-KIND

Location 

generics.lisp

PRODUCE-OBJECT-KIND
 (PRODUCE-OBJECT-KIND (VARIANT VARIANT) ID NAME &KEY THE-KIND) [method]
Calls 

GETHASH, MAKE-INSTANCE, SYMBOL-NAME and VERIFY-ID

Location 

object.lisp

PRODUCE-PLAYER-OBJECT
 (PRODUCE-PLAYER-OBJECT VARIANT) [generic]
Description 

Produces a player-object.

Called By 

%FILED-PLAYER

Location 

generics.lisp

PROJECT-PATH
 (PROJECT-PATH DUNGEON MAX-RANGE PATH-ARRAY X1 Y1 X2 Y2 FLAG) [function]
Description 

Tries to project a path from (x1,y1) to (x2,y2).

Called By 

PROJECTABLE?, SHOOT-A-MISSILE and THROW-OBJECT

Calls 

BIT-FLAG-SET?, CAVE-FLOOR-BOLD?, CAVE-MONSTERS, GO-DIRECTION, GRID, INT-/ and VECTOR-PUSH

Location 

project.lisp

PROJECTABLE?
 (PROJECTABLE? DUNGEON X1 Y1 X2 Y2) [function]
Description 

Is it projectable from (x1,y1) to (x2,y2)

Called By 

IS-LEGAL-TARGET?

Calls 

CAVE-FLOOR-BOLD?, GRID-X, GRID-Y, MAKE-ARRAY and PROJECT-PATH

Location 

project.lisp

PUT-CURSOR-RELATIVE!
 (PUT-CURSOR-RELATIVE! DUNGEON X Y &OPTIONAL (CURSOR :MAP-CURSOR)) [function]
Description 

Tries to put the cursor relative to the window.

Called By 

DISPLAY-TARGET

Calls 

GET-FRAME-HEIGHT, GET-FRAME-WIDTH, PLAYER.VIEW-X, PLAYER.VIEW-Y and SET-CURSOR-TO

Location 

dungeon.lisp

PUT-OBJECT-IN-CONTAINER!
 (PUT-OBJECT-IN-CONTAINER! DUNGEON PLAYER CNT OBJ) [function]
Description 

Tries to put the given object in the container, if not it overflows to the floor.

Called By 

INTERACTIVE-IDENTIFY-OBJECT!, INTERACTIVE-TAKE-OFF-ITEM!, INTERACTIVE-USE-ITEM! and INTERACTIVE-WEAR-ITEM!

Calls 

GET-ITEM-TABLE and ITEM-TABLE-ADD!

Location 

actions.lisp

QUERY-FOR-CHARACTER-BASICS!
 (QUERY-FOR-CHARACTER-BASICS! VARIANT THE-PLAYER SETTINGS) [generic]
Description 

Does queries for basic-info (race, class, ..) and alters the player-object.

Location 

generics.lisp

QUERY-FOR-CHARACTER-BASICS!
 (QUERY-FOR-CHARACTER-BASICS! (VARIANT VARIANT) (PLAYER PLAYER) SETTINGS) [method]
Calls 

%QUERY-FOR-CLASS, %QUERY-FOR-GENDER, %QUERY-FOR-RACE, CLEAR-WINDOW, CLEAR-WINDOW-FROM, CONCATENATE, PRINT-TEXT! and SETTING-LOOKUP

Location 

birth.lisp

QUIT-GAME&
 (QUIT-GAME&) [function]
Description 

Tries to clean up a few variables.

Called By 

%ALT-SEL-INPUT and PLAY-GAME&

Calls 

FINISH-OUTPUT, FORMAT, GET-SYSTEM-TYPE, LBSYS/GARBAGE-COLLECT, MAKE-CONDITION, ORG.LANGBAND.FFI:C-CLEANUP-C-SIDE& and SIGNAL

Location 

global.lisp

RAND-ELM
 (RAND-ELM SEQ) [function]
Description 

Returns a random element from given sequence.

Called By 

GENERATE-RANDOM-NAME and PLAY-SOUND

Calls 

RANDOM

Location 

base.lisp

RAND-RANGE
 (RAND-RANGE A B) [function]
Called By 

EQUIP-CHARACTER!, NEW-PLAYER-SPOT! and RAND-SPREAD

Calls 

RANDOM

Location 

base.lisp

RAND-SPREAD
 (RAND-SPREAD A B) [function]
Called By 

TELEPORT-CREATURE!

Calls 

RAND-RANGE

Location 

base.lisp

RANDOM-DIRECTION
 (RANDOM-DIRECTION) [function]
Description 

Returns two values with a random nsew direction

Calls 

RANDOM

Location 

generate.lisp

READ-PREF-FILE
 (READ-PREF-FILE FNAME) [function]
Description 

Tries to read a named preference file.

Calls 

LOAD-GAME-DATA

Location 

global.lisp

REDRAW-STUFF
 (REDRAW-STUFF VARIANT DUNGEON PLAYER) [generic]
Description 

Redraws stuff based on previously requested redraws.

Called By 

HANDLE-STUFF and RUN-LEVEL!

Location 

generics.lisp

REDRAW-STUFF
 (REDRAW-STUFF (VARIANT VARIANT) (DUNGEON DUNGEON) (PLAYER PLAYER)) [method]
Calls 

ANY-REDRAWS?, DUNGEON.DEPTH, GET-LIST-OF-REDRAWS, PRINT-BASIC-FRAME, PRINT-DEPTH, PRINT-MAP, RESET-REDRAW!, TRIGGER-PRINTFIELD-HOOKS&, UPDATE-INVENTORY-ROW, WANT-REDRAW? and WARN

Location 

loop.lisp

REFRESH-WINDOW
 (REFRESH-WINDOW &OPTIONAL (THE-WIN NIL) &OPTIONAL (FLAG 0)) [function]
Description 

Repaints any updated parts of the window.

Called By 

DISPLAY-MOVING-OBJECT, PAINT-GFX-IMAGE, PRINT-NOTE!, RUN-LEVEL!, SWITCH-MAP-MODE, UPDATE-BUTTON-ROW and UPDATE-INVENTORY-ROW

Calls 

BIT-FLAG-SET?, ORG.LANGBAND.FFI:C-FLUSH-COORDS!, WINDOW.HEIGHT, WINDOW.NUM-ID, WINDOW.TILE-HEIGHT, WINDOW.TILE-WIDTH and WINDOW.WIDTH

Location 

window.lisp

REGENERATE-HP!
 (REGENERATE-HP! CRT PERCENT) [function]
Description 

Tries to regenerate the creature, and includes percent-chance.

Called By 

PROCESS-WORLD&

Calls 

(SETF CURRENT-HP), (SETF PLAYER.FRACTION-HP), ASK-FOR-REDRAW!, CURRENT-HP, EXPT, INT-/, LOGAND, MAXIMUM-HP and PLAYER.FRACTION-HP

Location 

loop.lisp

REGISTER-CLASS&
 (REGISTER-CLASS& CLASS) [function]
Description 

Registers a race in the right places.

Called By 

DEFINE-CHARACTER-CLASS

Calls 

(SETF GET-CHAR-CLASS)

Location 

character.lisp

REGISTER-EVENT&
 (REGISTER-EVENT& ID EVENT &KEY (VARIANT *VARIANT*)) [function]
Description 

Registers an event-id and connects it to a function.

Called By 

DEFINE-NORMAL-EVENT

Calls 

(SETF GETHASH), EVENT.ID, SYMBOL-NAME, VARIANT.EVENT-TYPES and WARN

Location 

global.lisp

REGISTER-FIELD-ORDER
 (REGISTER-FIELD-ORDER WINDOW ORDER) [function]
Description 

Registers the order of fields that need printing for a certain window. <nothing> is a magic constant.

Calls 

(SETF FIELD-PRINTER.COL), (SETF FIELD-PRINTER.ROW), (SETF GETHASH), ERROR, FIELD-PRINTER-P, GETHASH, MAKE-FIELD-PRINTER, NON-NEGATIVE-INTEGER? and WARN

Location 

print.lisp

REGISTER-HELP-TOPIC&
 (REGISTER-HELP-TOPIC& VARIANT TOPIC) [function]
Description 

Registers a help-topic with the variant.

Called By 

ACTIVATE-OBJECT

Calls 

(SETF GETHASH), HELP-TOPIC.DATA, PROBE-FILE and WARN

Location 

print.lisp

REGISTER-IMAGE&
 (REGISTER-IMAGE& VARIANT FNAME IDX) [function]
Description 

Registers an image with a variant.

Called By 

LOAD-IMAGE&

Calls 

(SETF AREF)

Location 

global.lisp

REGISTER-INFORMATION&
 (REGISTER-INFORMATION&) [function]
Description 

Registers a group of information on the format: (register-information key1 info1 key2 info2 ...)

Calls 

WARN

Location 

global.lisp

REGISTER-LEVEL!
 (REGISTER-LEVEL! VAR-OBJ LEVEL-KEY &KEY OBJECT-FILTER MONSTER-FILTER) [generic]
Description 

Registers a level-key in the variant as a later place-hanger for code.

Location 

generics.lisp

REGISTER-LEVEL!
 (REGISTER-LEVEL! (VAR-OBJ VARIANT) (ID STRING) &KEY OBJECT-FILTER MONSTER-FILTER) [method]
Calls 

(SETF GETHASH), (SETF GOBJ-TABLE.OBJ-TABLE), FUNCTIONP, GETHASH, LANG-WARN, MAKE-GAME-OBJ-TABLE, MAKE-HASH-TABLE and VARIANT.FILTERS

Location 

dungeon.lisp

REGISTER-LEVEL-BUILDER!
 (REGISTER-LEVEL-BUILDER! ID BUILDER &OPTIONAL (VAR-OBJ *VARIANT*)) [function]
Description 

Registers a level-builder which must be a function.

Called By 

ACTIVATE-OBJECT

Calls 

(SETF GETHASH), FUNCTIONP, SYMBOL-NAME and VARIANT.LEVEL-BUILDERS

Location 

global.lisp

REGISTER-RACE&
 (REGISTER-RACE& RACE) [function]
Description 

Registers a race in the right places.

Called By 

DEFINE-CHARACTER-RACE

Calls 

(SETF GET-CHAR-RACE)

Location 

character.lisp

REGISTER-SLOT-ORDER&
 (REGISTER-SLOT-ORDER& VARIANT ORDER) [function]
Description 

Takes a list of lists (symbol description types-allowed) and adds settings to various places. Must be FIXed and moved to variant obj.

Called By 

VAN-INIT-EQUIPMENT-VALUES

Calls 

(SETF VARIANT.WORN-ITEM-SLOTS) and MAKE-ARRAY

Location 

equipment.lisp

REGISTER-TURN-EVENT!
 (REGISTER-TURN-EVENT! VAR-OBJ WANTED-TURN EVENT) [function]
Description 

Adds a turn-event.

Calls 

GETHASH and VARIANT.TURN-EVENTS

Location 

global.lisp

REGISTER-VARIANT&
 (REGISTER-VARIANT& ID VAR-CONSTRUCTOR &KEY DESC) [function]
Description 

Registers a variant-object.

Calls 

(SETF GETHASH)

Location 

global.lisp

REMOVE-INFORMATION!
 (REMOVE-INFORMATION! KEY &KEY (VARIANT *VARIANT*)) [function]
Description 

Returns T if the information existed, NIL if it didn't exist.

Calls 

REMHASH and VARIANT.INFORMATION

Location 

global.lisp

REMOVE-ITEM-FROM-DUNGEON!
 (REMOVE-ITEM-FROM-DUNGEON! DUNGEON ITEM) [function]
Calls 

(SETF DUNGEON.OBJECTS), DELETE and DUNGEON.OBJECTS

Location 

dungeon.lisp

REMOVE-MONSTER-FROM-DUNGEON!
 (REMOVE-MONSTER-FROM-DUNGEON! DUNGEON MONSTER) [function]
Description 

Tries to remove the monster from the dungeon.

Calls 

(SETF CAVE-MONSTERS), (SETF CREATURE-ALIVE?), (SETF DUNGEON.MONSTERS), (SETF PLAYER.TARGET), DELETE, DUNGEON.MONSTERS, IS-TARGETING?, LIGHT-SPOT!, LOCATION-X and LOCATION-Y

Location 

loop.lisp

REMOVE-TARGET-DISPLAY
 (REMOVE-TARGET-DISPLAY TARGET) [function]
Description 

If target is a legal target this function will remove any target visualisation from the screen.

Called By 

HANDLE-MOUSE-CLICK, INTERACTIVE-TARGETING! and SWAP-MONSTERS!

Calls 

(SETF WINDOW-COORD), FLUSH-COORDS, GET-RELATIVE-COORDS, PAINT-COORD, TARGET.X and TARGET.Y

Location 

actions.lisp

RESET-PLAYER-OBJECT!
 (RESET-PLAYER-OBJECT! VARIANT PLAYER) [generic]
Description 

Resets all values on the player-object.

Location 

generics.lisp

RESET-REDRAW!
 (RESET-REDRAW! CREATURE FLAG) [function]
Description 

Turns off the given flag.

Called By 

PRINT-BASIC-FRAME and REDRAW-STUFF

Calls 

(SETF GETHASH)

Location 

base.lisp

RESET-TACTIC-BID!
 (RESET-TACTIC-BID! OBJ) [function]
Called By 

RESET-TACTIC-CHOICE!

Calls 

(SETF FACTOR.COST), (SETF FACTOR.DEFENSIVE) and (SETF FACTOR.OFFENSIVE)

Location 

ai.lisp

RESET-TACTIC-CHOICE!
 (RESET-TACTIC-CHOICE! OBJ) [function]
Calls 

(SETF TACTIC-CHOICE-TACTIC), RESET-TACTIC-BID! and TACTIC-CHOICE-BID

Location 

ai.lisp

RESET-UPDATE!
 (RESET-UPDATE! CREATURE FLAG) [function]
Description 

Turns off the given flag.

Called By 

UPDATE-STUFF

Calls 

(SETF GETHASH)

Location 

base.lisp

ROLL-DICE
 (ROLL-DICE NUMBER DICE) [function]
Description 

Rolls dice numbber of times and returns the result.

Called By 

ATTEMPT-MULTI-CREATION!, MELEE-INFLICT-DAMAGE!, MISSILE-INFLICT-DAMAGE!, MISSILE-INFLICT-DAMAGE!, PARSE-AND-ROLL-DICE, PRODUCE-ACTIVE-MONSTER, STORE-MASS-PRODUCE! and UPDATE-PLAYER-STAT!

Location 

base.lisp

ROLL-HITPOINTS-FOR-NEW-LEVEL
 (ROLL-HITPOINTS-FOR-NEW-LEVEL VARIANT PLAYER) [generic]
Description 

Rolls new hitpoints for a new level for the player, and returns the number.

Location 

generics.lisp

ROLL-HITPOINTS-FOR-NEW-LEVEL
 (ROLL-HITPOINTS-FOR-NEW-LEVEL (VARIANT VARIANT) (PLAYER PLAYER)) [method]
Calls 

CLASS.HIT-DICE, PLAYER.CLASS, PLAYER.RACE, RACE.HIT-DICE and RANDINT

Location 

player.lisp

ROLL-STATS!
 (ROLL-STATS! VARIANT PLAYER) [generic]
Description 

Roll up stats and assign them to the player.

Location 

generics.lisp

ROLL-UP-CHARACTER!
 (ROLL-UP-CHARACTER! VARIANT PLAYER) [generic]
Description 

Rolls up a player-object and modifies it appropriately.

Location 

generics.lisp

ROUND-/
 (ROUND-/ A B) [function]
Calls 

PROG1

Location 

base.lisp

RUN-ALONG-CORRIDOR
 (RUN-ALONG-CORRIDOR DUNGEON PLAYER LAST-DIR) [function]
Description 

Determine the appropriate direction to move to continue along a corridor.

Called By 

RUN-IN-DIRECTION

Calls 

(SETF SVREF), LOCATION-X, LOCATION-Y, MAKE-ARRAY, RANDOM and RUN-OK?

Location 

actions.lisp

RUN-IN-DIRECTION
 (RUN-IN-DIRECTION DUNGEON PLAYER DIRECTION) [function]
Description 

Tries to run in the given direction.

Called By 

VAN-MOVE-PLAYER!

Calls 

(SETF GET-INFORMATION), MOVE-PLAYER!, RUN-ALONG-CORRIDOR and STOP-CREATURE-ACTIVITY

Location 

util.lisp

RUN-OK?
 (RUN-OK? DUNGEON PLAYER X Y) [function]
Description 

Helper function to determine if a square might be legal to move to.

Called By 

RUN-ALONG-CORRIDOR

Calls 

CAVE-FLOOR-BOLD? and LEGAL-COORD?

Location 

actions.lisp

SATISFIES-OBJ-TYPE?
 (SATISFIES-OBJ-TYPE? TYPE OBJ) [function]
Description 

Checks if the OBJ satisifies the object-type TYPE.

Calls 

GETHASH and WARN

Location 

object.lisp

SAVE-BINARY-ARRAY
 (SAVE-BINARY-ARRAY ARR TYPE STR) [function]
Description 

Tries to write the array ARR to the stream STR.

Calls 

BINARY-TYPES:WRITE-BINARY

Location 

save.lisp

SAVE-BINARY-STRING
 (SAVE-BINARY-STRING OBJ STREAM) [function]
Description 

Tries to write a var-length string.

Calls 

BINARY-TYPES:WRITE-BINARY, CHAR-CODE and FUNCALL

Location 

save.lisp

SAVE-CURRENT-ENVIRONMENT&
 (SAVE-CURRENT-ENVIRONMENT&) [function]
Description 

Attempts to save the environment.

Called By 

GAME-LOOP& and PLAY-GAME&

Calls 

(SETF GET)

Location 

loop.lisp

SAVE-HIGH-SCORE&
 (SAVE-HIGH-SCORE& VARIANT HS FNAME) [generic]
Description 

Saves a given high-score entry to the given high-score file.

Location 

generics.lisp

SAVE-HIGH-SCORE&
 (SAVE-HIGH-SCORE& (VARIANT VARIANT) HS FNAME) [method]
Calls 

%SORT-HSCORES, BINARY-TYPES:WITH-BINARY-FILE, GET-HIGH-SCORES, MAKE-INSTANCE, PATHNAME, POSITION, SAVE-OBJECT and STR

Location 

death.lisp

SAVE-THE-GAME
 (SAVE-THE-GAME VAR-OBJ PLAYER LEVEL &KEY FNAME (FORMAT :BINARY)) [function]
Description 

Tries to save the game. If fname is not given, the player-name is used.

Calls 

CONCATENATE, DO-SAVE, LBSYS/MAKE-SURE-DIRS-EXIST&, PLAYER.NAME and VARIANT-SAVE-DIRECTORY

Location 

save.lisp

SAVEBLOCK.CHECKSUM
 (SAVEBLOCK.CHECKSUM (OBJ SAVEBLOCK)) [function]

(SETF SAVEBLOCK.CHECKSUM)
 ((SETF SAVEBLOCK.CHECKSUM) (OBJ SAVEBLOCK)) [function]

SAVEBLOCK.DATA
 (SAVEBLOCK.DATA (OBJ SAVEBLOCK)) [function]

(SETF SAVEBLOCK.DATA)
 ((SETF SAVEBLOCK.DATA) (OBJ SAVEBLOCK)) [function]

SAVEBLOCK.LEN
 (SAVEBLOCK.LEN (OBJ SAVEBLOCK)) [function]

(SETF SAVEBLOCK.LEN)
 ((SETF SAVEBLOCK.LEN) (OBJ SAVEBLOCK)) [function]

SAVEBLOCK.TYPE
 (SAVEBLOCK.TYPE (OBJ SAVEBLOCK)) [function]

(SETF SAVEBLOCK.TYPE)
 ((SETF SAVEBLOCK.TYPE) (OBJ SAVEBLOCK)) [function]

SAVEBLOCK.VENDOR-TAG
 (SAVEBLOCK.VENDOR-TAG (OBJ SAVEBLOCK)) [function]

(SETF SAVEBLOCK.VENDOR-TAG)
 ((SETF SAVEBLOCK.VENDOR-TAG) (OBJ SAVEBLOCK)) [function]

SAVEBLOCK.VERSION
 (SAVEBLOCK.VERSION (OBJ SAVEBLOCK)) [function]

(SETF SAVEBLOCK.VERSION)
 ((SETF SAVEBLOCK.VERSION) (OBJ SAVEBLOCK)) [function]

SAVEHEADER.BLOCK-NUM
 (SAVEHEADER.BLOCK-NUM (OBJ SAVEHEADER)) [function]

(SETF SAVEHEADER.BLOCK-NUM)
 ((SETF SAVEHEADER.BLOCK-NUM) (OBJ SAVEHEADER)) [function]

SAVEHEADER.DESC
 (SAVEHEADER.DESC (OBJ SAVEHEADER)) [function]

(SETF SAVEHEADER.DESC)
 ((SETF SAVEHEADER.DESC) (OBJ SAVEHEADER)) [function]

SAVEHEADER.ENGINE-NUM-VERSION
 (SAVEHEADER.ENGINE-NUM-VERSION (OBJ SAVEHEADER)) [function]

(SETF SAVEHEADER.ENGINE-NUM-VERSION)
 ((SETF SAVEHEADER.ENGINE-NUM-VERSION) (OBJ SAVEHEADER)) [function]

SAVEHEADER.EXTRA
 (SAVEHEADER.EXTRA (OBJ SAVEHEADER)) [function]

(SETF SAVEHEADER.EXTRA)
 ((SETF SAVEHEADER.EXTRA) (OBJ SAVEHEADER)) [function]

SAVEHEADER.MAJOR
 (SAVEHEADER.MAJOR (OBJ SAVEHEADER)) [function]

(SETF SAVEHEADER.MAJOR)
 ((SETF SAVEHEADER.MAJOR) (OBJ SAVEHEADER)) [function]

SAVEHEADER.MINOR
 (SAVEHEADER.MINOR (OBJ SAVEHEADER)) [function]

(SETF SAVEHEADER.MINOR)
 ((SETF SAVEHEADER.MINOR) (OBJ SAVEHEADER)) [function]

SAVEHEADER.PATCH
 (SAVEHEADER.PATCH (OBJ SAVEHEADER)) [function]

(SETF SAVEHEADER.PATCH)
 ((SETF SAVEHEADER.PATCH) (OBJ SAVEHEADER)) [function]

SAVEHEADER.STATUS
 (SAVEHEADER.STATUS (OBJ SAVEHEADER)) [function]

(SETF SAVEHEADER.STATUS)
 ((SETF SAVEHEADER.STATUS) (OBJ SAVEHEADER)) [function]

SAVEHEADER.VARIANT-ID
 (SAVEHEADER.VARIANT-ID (OBJ SAVEHEADER)) [function]

(SETF SAVEHEADER.VARIANT-ID)
 ((SETF SAVEHEADER.VARIANT-ID) (OBJ SAVEHEADER)) [function]

SAVEHEADER.VARIANT-NUM-VERSION
 (SAVEHEADER.VARIANT-NUM-VERSION (OBJ SAVEHEADER)) [function]

(SETF SAVEHEADER.VARIANT-NUM-VERSION)
 ((SETF SAVEHEADER.VARIANT-NUM-VERSION) (OBJ SAVEHEADER)) [function]

SDL-HANDLE-KEY
 (SDL-HANDLE-KEY KEY K-EV) [function]
Description 

Translates an incoming key from SDL into a langband key-event K-EV.

Called By 

FETCH-EVENT

Calls 

(SETF KBD-EVENT.KEY) and CODE-CHAR

Location 

global.lisp

SEARCH-AREA!
 (SEARCH-AREA! DUNGEON PLAYER) [function]
Description 

Searches nearby grids.

Calls 

GET-SEARCH-SKILL, LOCATION-X, LOCATION-Y and PLAYER.ENERGY-USE

Location 

actions.lisp

SELECT-AND-RETURN-ITEM
 (SELECT-AND-RETURN-ITEM DUNGEON PLAYER ALLOW-FROM &KEY PROMPT (WHERE :BACKPACK) SELECTION-FUNCTION) [function]
Description 

Wrapper for select-item which just gets and returns the 'removed' object, or NIL.

Called By 

INTERACTIVE-FIRE-A-MISSILE

Calls 

GET-ITEM-TABLE, ITEM-TABLE-REMOVE! and SELECT-ITEM

Location 

util.lisp

SELECT-ITEM
 (SELECT-ITEM (DUNGEON DUNGEON) (PLAYER PLAYER) ALLOW-FROM &KEY PROMPT PROMPT-FRAME (WHERE :BACKPACK) SELECTION-FUNCTION) [method]
Calls 
Location 

util.lisp

SELECT-ITEM-FROM-STORE
 (SELECT-ITEM-FROM-STORE STORE LOW TOP) [function]
Description 

Reads input from keyboard for selecting an item from a store.

Called By 

%HOME-INPUT-LOOP and %STORE-BUY-ITEM

Calls 

A2I, PUT-COLOURED-LINE! and READ-ONE-CHARACTER

Location 

stores.lisp

SET-CURSOR-TO
 (SET-CURSOR-TO WIN CURSOR X Y) [function]
Description 

Sets the specified cursor to x,y in the given window. The cursor argument specifies the type of cursor. Types are e.g :input and :crosshair.

Called By 

%HOME-INPUT-LOOP, %SHOP-INPUT-LOOP, GET-STRING-INPUT and PUT-CURSOR-RELATIVE!

Calls 

(SETF WINDOW-COORD), FLUSH-COORDS, PAINT-COORD, TEXT-PAINT-VALUE, TILE-PAINT-VALUE and WINDOW.GFX-TILES?

Location 

global.lisp

SET-CURSOR-VISIBILITY
 (SET-CURSOR-VISIBILITY ARG) [function]
Description 

Should the cursor be visible?

Called By 

INTERACTIVE-TARGETING! and PLAY-GAME&

Location 

global.lisp

SET-FLAG
 (SET-FLAG FLAG &OPTIONAL (VALUE T)) [function]
Calls 

(SETF GET-INFORMATION)

Location 

global.lisp

SETTING-LOOKUP
 (SETTING-LOOKUP SETTING KEY &OPTIONAL DEFAULT) [function]
Description 

Looks up a setting in the setting-table and if the setting is not found it returns the optional default value.

Called By 
Calls 

GETHASH and HASH-TABLE-P

Location 

global.lisp

(SETF SETTING-LOOKUP)
 ((SETF SETTING-LOOKUP) VALUE SETTING KEY) [function]
Description 

Sets the setting to some value.

Calls 

(SETF GETHASH) and HASH-TABLE-P

Location 

global.lisp

SHOOT-A-MISSILE
 (SHOOT-A-MISSILE DUNGEON SOURCE DESTINATION MISSILE-WEAPON MISSILE &KEY RANGE) [generic]
Description 

Shoots an arrow, queries for direction.

Location 

generics.lisp

SHOW-MESSAGES
 (SHOW-MESSAGES &KEY (OFFSET 0)) [function]
Calls 

CLEAR-WINDOW, GET-LAST-CONSOLE-LINE and PAUSE-LAST-LINE!

Location 

global.lisp

SHRINK-ARRAY!
 (SHRINK-ARRAY! ARR) [function]
Description 

Shrinks the array and removes NIL gaps. Returns the new size.

Location 

base.lisp

SHUFFLE-ARRAY!
 (SHUFFLE-ARRAY! TMP-ARR LEN) [function]
Description 

Shuffles the given array

Called By 

GENERATE-LEVEL!

Location 

base.lisp

SPLIT-SEQ-ON
 (SPLIT-SEQ-ON STR &OPTIONAL (CH #\Space)) [function]
Description 

returns a list of strings formed by breaking STR at every occurance of CH (which is not included). Works for any sequence, not just strings, but optimized for vectors.

Called By 

PRINT-TEXT!

Location 

base.lisp

STAT-FIELD-DATA
 (STAT-FIELD-DATA (OBJ STAT-FIELD)) [function]

(SETF STAT-FIELD-DATA)
 ((SETF STAT-FIELD-DATA) (OBJ STAT-FIELD)) [function]

STAT-FIELD-LOWER
 (STAT-FIELD-LOWER (OBJ STAT-FIELD)) [function]

(SETF STAT-FIELD-LOWER)
 ((SETF STAT-FIELD-LOWER) (OBJ STAT-FIELD)) [function]

STAT-FIELD-P
 (STAT-FIELD-P OBJ) [predicate]

STAT-FIELD-UPPER
 (STAT-FIELD-UPPER (OBJ STAT-FIELD)) [function]

(SETF STAT-FIELD-UPPER)
 ((SETF STAT-FIELD-UPPER) (OBJ STAT-FIELD)) [function]

STOP-CREATURE-ACTIVITY
 (STOP-CREATURE-ACTIVITY VARIANT CREATURE ACTIVITY) [generic]
Description 

Stops an activity that the creature is doing.

Called By 

RUN-IN-DIRECTION and VAN-MOVE-PLAYER!

Location 

generics.lisp

STOP-CREATURE-ACTIVITY
 (STOP-CREATURE-ACTIVITY (VARIANT VARIANT) (PLAYER PLAYER) ACTIVITY) [method]
Calls 

(SETF GET-INFORMATION), HALT-SOUND-EFFECTS and WARN

Location 

util.lisp

STORE-BUYS-ITEM?
 (STORE-BUYS-ITEM? OBJ STORE) [generic]
Description 

Does the shop buy such items as obj?

Called By 

%STORE-SELL-ITEM

Location 

generics.lisp

STORE-DELETE-OBJ!
 (STORE-DELETE-OBJ! THE-STORE &OPTIONAL OBJ-KEY) [function]
Description 

Just wipes an object from the store.

Calls 

ITEM-TABLE-REMOVE!, ITEMS.CUR-SIZE, RANDOM and STORE.ITEMS

Location 

stores.lisp

STORE-EMPTY?
 (STORE-EMPTY? VARIANT STORE) [function]
Description 

Is the store devoid of objects?

Called By 

GENERATE-LEVEL!

Calls 

ITEMS.OBJS, STORE.ITEMS and ZEROP

Location 

stores.lisp

STORE-GENERATE-OBJECT
 (STORE-GENERATE-OBJECT VARIANT THE-STORE) [generic]
Description 

Returns an object appropriate for the store, no side-effects.

Called By 

ALLOCATE-OBJECT-IN-STORE!

Location 

generics.lisp

STORE-GENERATE-OBJECT
 (STORE-GENERATE-OBJECT (VARIANT VARIANT) (THE-STORE STORE)) [method]
Calls 

APPLY-MAGIC!, CREATE-AOBJ-FROM-KIND, IS-BROKEN?, IS-CURSED?, RAND-ELM, STORE-MASS-PRODUCE!, STORE.OBJECT-DEPTH, STORE.SELLS and WARN

Location 

stores.lisp

STORE-MAINTENANCE!
 (STORE-MAINTENANCE! VARIANT THE-STORE) [generic]
Description 

Does maintenance on a store, possibly changing it.

Called By 

FILL-UP-STORE! and PROCESS-WORLD&

Location 

generics.lisp

STORE-MAINTENANCE!
 (STORE-MAINTENANCE! (VARIANT VARIANT) (THE-STORE STORE)) [method]
Calls 

ALLOCATE-OBJECT-IN-STORE!, ITEMS.CUR-SIZE, ITEMS.MAX-SIZE, RANDINT, STORE-DELETE-OBJ!, STORE.ITEMS, STORE.MAX-ITEMS, STORE.MIN-ITEMS, STORE.TURNOVER and WHILE

Location 

stores.lisp

STORE-MASS-PRODUCE!
 (STORE-MASS-PRODUCE! VARIANT STORE OBJECT) [generic]
Description 

Possibly mass-produces and alters the object, and may add discount.

Location 

generics.lisp

SWITCH-INVENTORY-VIEW
 (SWITCH-INVENTORY-VIEW VARIANT PLAYER &KEY WANTED-VIEW) [method]
Called By 

HANDLE-MOUSE-CLICK

Calls 

UPDATE-INVENTORY-ROW

Location 

util.lisp

SWITCH-MAP-MODE
 (SWITCH-MAP-MODE VARIANT DUNGEON PLAYER &OPTIONAL WANTED-MODE) [method]
Called By 

HANDLE-MOUSE-CLICK

Calls 

ACTIVATE-WINDOW, CLEAR-WINDOW, DEACTIVATE-WINDOW, PRINT-MAP, REFRESH-WINDOW, UPDATE-INVENTORY-ROW and VERIFY-VIEWPORT

Location 

util.lisp

SWITCH-TO-FULL-FRAME&
 (SWITCH-TO-FULL-FRAME&) [function]
Calls 

ACTIVATE-WINDOW and PAINT-WINDOW

Location 

global.lisp

SWITCH-TO-REGULAR-FRAMESET&
 (SWITCH-TO-REGULAR-FRAMESET&) [function]
Called By 

PLAY-GAME&

Calls 

%SWITCH-IN-WINDOW and DEACTIVATE-WINDOW

Location 

global.lisp

SYMBOLIFY
 (SYMBOLIFY DATA) [function]
Description 

Returns a symbol in a form which can be understood when reading code.

Location 

base.lisp

TACTIC-CHOICE-BID
 (TACTIC-CHOICE-BID (OBJ TACTIC-CHOICE)) [function]

(SETF TACTIC-CHOICE-BID)
 ((SETF TACTIC-CHOICE-BID) (OBJ TACTIC-CHOICE)) [function]

TACTIC-CHOICE-TACTIC
 (TACTIC-CHOICE-TACTIC (OBJ TACTIC-CHOICE)) [function]

(SETF TACTIC-CHOICE-TACTIC)
 ((SETF TACTIC-CHOICE-TACTIC) (OBJ TACTIC-CHOICE)) [function]
Called By 

RESET-TACTIC-CHOICE!

Location 

ai.lisp

TAG-TILES-NEAR
 (TAG-TILES-NEAR WIN DUNGEON X Y XOFF YOFF) [function]
Description 

Tries to tag tiles near x,y (with offsets) for refreshing.

Calls 

ADD-OLD-TILE!, WINDOW.TILE-HEIGHT and WINDOW.TILE-WIDTH

Location 

util.lisp

TARGET-P
 (TARGET-P OBJ) [predicate]

TARGET.OBJ
 (TARGET.OBJ (OBJ TARGET)) [function]

(SETF TARGET.OBJ)
 ((SETF TARGET.OBJ) (OBJ TARGET)) [function]

TARGET.X
 (TARGET.X (OBJ TARGET)) [function]

(SETF TARGET.X)
 ((SETF TARGET.X) (OBJ TARGET)) [function]
Called By 

SWAP-MONSTERS!

Location 

classes.lisp

TARGET.Y
 (TARGET.Y (OBJ TARGET)) [function]

(SETF TARGET.Y)
 ((SETF TARGET.Y) (OBJ TARGET)) [function]
Called By 

SWAP-MONSTERS!

Location 

classes.lisp

TEXT-PAINT-VALUE
 (TEXT-PAINT-VALUE ATTR CHAR) [function]
Called By 

SET-CURSOR-TO, TEXT-BOLT-ARRAY and WIN/WRITE-CHAR

Calls 

BYTE, CHAR-CODE, DPB and LOGIOR

Location 

base.lisp

(SETF TEXT-SYM)
 ((SETF TEXT-SYM) VALUE OBJECT) [generic]
Description 

Sets which text-symbol should be displayed for object.

Called By 

DEFINE-DOOR-TYPE, DEFINE-FLOOR-TYPE, DEFINE-TRAP-TYPE, ESTABLISH-FLAVOUR& and READ-MAP

Location 

generics.lisp

TEXT-TO-ASCII
 (TEXT-TO-ASCII STR) [function]
Description 

converts a c-type string to a lisp-string in ascii.

Location 

base.lisp

TEXTURE-BACKGROUND!
 (TEXTURE-BACKGROUND! WIN FNAME ALPHA) [function]
Description 

Tries to texture the background of WIN with image-data from FNAME.

Called By 

PLAY-GAME&

Calls 

(SETF WINDOW.BACKGROUND), FIND-IMAGE, LOAD-IMAGE&, ORG.LANGBAND.FFI:C-ADD-FRAME-BG! and WINDOW.NUM-ID

Location 

global.lisp

THROW-OBJECT
 (THROW-OBJECT VARIANT PLAYER ITEM TX TY) [generic]
Description 

The actual throwing of an object towards the tx ty.

Called By 

INTERACTIVE-THROW-ITEM!

Location 

generics.lisp

THROW-OBJECT
 (THROW-OBJECT (VARIANT VARIANT) (PLAYER PLAYER) (OBJ ACTIVE-OBJECT) TX TY) [method]
Calls 

ASK-FOR-UPDATE!, DROP-NEAR-LOCATION! and ON-DROP-OBJECT

Location 

actions.lisp

TILE-PAINT-VALUE
 (TILE-PAINT-VALUE FILE TILE) [function]
Called By 

FILL-AREA, GFX-BOLT-ARRAY, GFX-MISSILE-ARRAY, PLAY-GAME&, SET-CURSOR-TO and UPDATE-INVENTORY-ROW

Calls 

BYTE, DPB and LOGIOR

Location 

base.lisp

TRAP-EFFECT
 (TRAP-EFFECT ARGUMENTS) [macro]

TRIGGER-PRINTFIELD
 (TRIGGER-PRINTFIELD VARIANT DUNGEON PLAYER PRINTFIELD) [function]
Called By 

TRIGGER-PRINTFIELD-HOOKS&

Calls 

FIELD-PRINTER.COL, FIELD-PRINTER.HANDLER, FIELD-PRINTER.ROW, FIELD-PRINTER.WINDOW-KEY, FUNCALL, FUNCTIONP, GET-WINDOW, IS-FRAME-SHOWN? and NON-NEGATIVE-INTEGER?

Location 

print.lisp

TRIGGER-PRINTFIELD-HOOKS&
 (TRIGGER-PRINTFIELD-HOOKS& VARIANT DUNGEON PLAYER KEY) [function]
Description 

Triggers any registered printfield hooks for given key.

Called By 

PRINT-EXTRA-FRAME-CONTENT

Calls 

GETHASH and TRIGGER-PRINTFIELD

Location 

print.lisp

TRIGGER-SPECIAL-ABILITY
 (TRIGGER-SPECIAL-ABILITY VARIANT CREATURE ABILITY TARGET DUNGEON) [generic]
Description 

Triggers a special ability on a creature in a given setting.

Location 

generics.lisp

TRIGGER-SPECIAL-ABILITY
 (TRIGGER-SPECIAL-ABILITY VARIANT CREATURE ABILITY TARGET DUNGEON) [method]
Calls 

WARN

Location 

monster.lisp

TRIGGER-VISUAL-EVENT
 (TRIGGER-VISUAL-EVENT EVT DUNGEON PLAYER CUR-TICK) [generic]
Called By 

RUN-LEVEL!

Location 

classes.lisp

TRY-DOOR!
 (TRY-DOOR! VARIANT DUNGEON X Y) [function]
Description 

attempts to place a door

Calls 

CAVE-FLOOR, CAVE-IS-ROOM?, IN-BOUNDS?, IS-REAL-WALL?, PLACE-RANDOM-DOOR!, POSSIBLE-DOORWAY? and RANDOM

Location 

generate.lisp

TRY-PRINTING-MESSAGES!
 (TRY-PRINTING-MESSAGES! (HANDLER MESSAGE-HANDLER-MORE)) [method]
 (TRY-PRINTING-MESSAGES! (HANDLER MESSAGE-HANDLER-FLOW)) [method]

UNCURSE-OBJECT!
 (UNCURSE-OBJECT! OBJECT POWER) [generic]
Description 

Tries to uncurse an object with a certain power.

Called By 

REMOVE-CURSE!

Location 

generics.lisp

UNCURSE-OBJECT!
 (UNCURSE-OBJECT! (OBJ ACTIVE-OBJECT) POWER) [method]
Calls 

(SETF AOBJ.INSCR), AOBJ.IDENTIFY, AOBJ.INSCR, BIT-FLAG-ADD!, BIT-FLAG-REMOVE! and IS-CURSED?

Location 

object.lisp

UNLESS-BIND
 (UNLESS-BIND VAR) [macro]
Description 

generalisation of (let ((var expr)) (unless var ...)).

Location 

base.lisp

UNSET-FLAG
 (UNSET-FLAG FLAG) [function]
Calls 

(SETF GET-INFORMATION)

Location 

global.lisp

UPDATE-BUTTON-ROW
 (UPDATE-BUTTON-ROW VARIANT PLAYER) [function]
Description 

deprecated.. remove eventually.

Called By 

UPDATE-INVENTORY-ROW

Calls 

REFRESH-WINDOW

Location 

util.lisp

UPDATE-MAX-HP!
 (UPDATE-MAX-HP! VARIANT PLAYER) [generic]
Description 

Updates the max-hp to fit with the hp-table.

Called By 

%FILED-PLAYER

Location 

generics.lisp

UPDATE-MAX-HP!
 (UPDATE-MAX-HP! (VARIANT VARIANT) (PLAYER PLAYER)) [method]
Calls 

(SETF MAXIMUM-HP), PLAYER.HP-TABLE and PLAYER.POWER-LVL

Location 

player.lisp

UPDATE-MONSTER!
 (UPDATE-MONSTER! VARIANT ACTIVE-MONSTER FULL-UPDATE?) [generic]
Description 

Update monster in various ways, mostly in relation to view.

Called By 

APPLY-PROJECTION-EFFECT-TO-TARGET!, DETECT-EVIL-MONSTERS!, DETECT-INVISIBLE!, DETECT-MONSTERS! and SWAP-MONSTERS!

Location 

generics.lisp

UPDATE-MONSTERS!
 (UPDATE-MONSTERS! VARIANT DUNGEON FULL-UPDATE?) [generic]
Description 

Update all monsters in dungeon in various ways, mostly in relation to view.

Location 

generics.lisp

UPDATE-MONSTERS!
 (UPDATE-MONSTERS! (VARIANT VARIANT) (DUNGEON DUNGEON) FULL-UPDATE?) [method]
Calls 

CREATURE-ALIVE?, DUNGEON.MONSTERS and UPDATE-MONSTER!

Location 

util.lisp

UPDATE-PLAYER-STAT!
 (UPDATE-PLAYER-STAT! PLAYER STAT ACTION &KEY (AMOUNT 1)) [function]
Description 

Action can be <restore> or a positive or negative integer.

Called By 

UPDATE-PLAYER-STAT!

Calls 
Location 

player.lisp

UPDATE-SLEEP-STATUS
 (UPDATE-SLEEP-STATUS DUNGEON PLAYER MON) [function]
Description 

If the monster is sleeping this code checks effects and if the monster should wake up.

Calls 

DISTANCE, FORMAT-MESSAGE!, GET-ATTRIBUTE-VALUE, GET-CREATURE-DESC, LOCATION-X, LOCATION-Y, MODIFY-CREATURE-STATE!, PLAYER.CALC-ATTRS, POSITIVE-INTEGER? and RANDOM

Location 

ai.lisp

UPDATE-STUFF
 (UPDATE-STUFF VARIANT DUNGEON PLAYER) [generic]
Description 

Update various stuff based on previously requested updates.

Called By 

HANDLE-STUFF and RUN-LEVEL!

Location 

generics.lisp

UPDATE-TERM-SIZES!
 (UPDATE-TERM-SIZES!) [function]
Description 

Calls the C-side to get the accurate sizes of windows.

Called By 

PLAY-GAME&

Calls 
(SETF AREF)(SETF WINDOW.GFX-TILES?)(SETF WINDOW.HEIGHT)
(SETF WINDOW.TILE-HEIGHT)(SETF WINDOW.TILE-WIDTH)(SETF WINDOW.WIDTH)
ESTABLISH-UI-THEME-SIZE-CALCULATIONS&GET-FRAME-GFX-TILES?HAS-FRAME?
ILLEGAL-DATA.DESCILLEGAL-DATA.IDINSTALL-WINDOW-FONT!
MAKE-INSTANCEORG.LANGBAND.FFI:C-GET-FRAME-COLUMNSORG.LANGBAND.FFI:C-GET-FRAME-ROWS
ORG.LANGBAND.FFI:C-GET-FRAME-TILE-HEIGHTORG.LANGBAND.FFI:C-GET-FRAME-TILE-WIDTHORG.LANGBAND.FFI:C-RECALCULATE-FRAME-PLACEMENTS!
WARN  
Location 

global.lisp

UPDATE-VIEW!
 (UPDATE-VIEW! DUNGEON PLAYER) [function]
Description 

Updates the view from the given player.

Calls 

DUNGEON.HEIGHT, DUNGEON.WIDTH, GET-LIGHT-RADIUS, GRID, LOCATION-X and LOCATION-Y

Location 

view.lisp

UPDATE-XP-TABLE!
 (UPDATE-XP-TABLE! VARIANT PLAYER) [generic]
Description 

Updates the xp-table on the player, and returns updated player.

Called By 

%FILED-PLAYER

Location 

generics.lisp

UPDATE-XP-TABLE!
 (UPDATE-XP-TABLE! (VARIANT VARIANT) (PLAYER PLAYER)) [method]
Calls 

%MAKE-LEVEL-ARRAY, (SETF AREF), (SETF PLAYER.XP-TABLE), ARRAYP, CLASS.XP-EXTRA, PLAYER.CLASS, PLAYER.RACE, PLAYER.XP-TABLE, RACE.XP-EXTRA, VARIANT.MAX-CHARLEVEL and VARIANT.XP-TABLE

Location 

player.lisp

USE-IMAGES?
 (USE-IMAGES?) [function]
Description 

Can we use inline images?

Called By 

DISPLAY-PLAYER-MISC

Calls 

GET-SYSTEM-TYPE

Location 

global.lisp

USE-KEY-TABLE
 (USE-KEY-TABLE KEY) [function]
Calls 

ERROR and HASH-TABLE-P

Location 

global.lisp

USE-OBJECT!
 (USE-OBJECT! VARIANT DUNGEON PLAYER THE-OBJECT &KEY WHICH-USE) [generic]
Description 

Applies the object on the player in the dungeon.

Called By 

INTERACTIVE-USE-ITEM!

Location 

generics.lisp

USE-STAIR!
 (USE-STAIR! DUNGEON PLAYER DIR) [function]
Description 

Uses a stair in direction DIR if the player PL is above a stair. DIR can be :UP or :DOWN

Calls 

BIT-FLAG-SET?, CAVE-FLOOR, ERROR, FLOOR.FLAGS, LANG-WARN, LOCATION-X, LOCATION-Y, MOVE-CREATURE-TO-DEPTH! and PLAYER.DEPTH

Location 

actions.lisp

USING-SOUND?
 (USING-SOUND?) [function]
Description 

Returns either T or NIL.

Called By 

DEFINE-SOUND-EFFECT, LOAD-MUSIC and PLAY-SOUND

Calls 

ORG.LANGBAND.FFI:C-GET-SOUND-STATUS

Location 

sound.lisp

VARIANT-DATA-FNAME
 (VARIANT-DATA-FNAME VAR-OBJ DATA-FNAME) [generic]
Description 

Returns a fname for a data-file for the variant.

Called By 

LOAD-VARIANT-DATA&

Location 

generics.lisp

VARIANT-DATA-FNAME
 (VARIANT-DATA-FNAME (VAR-OBJ VARIANT) DATA-FNAME) [method]
Calls 

CONCATENATE, LBSYS/ENSURE-DIR-NAME and VARIANT.CONFIG-PATH

Location 

global.lisp

VERIFY-CHECK
 (VERIFY-CHECK CHECK) [macro]
Description 

Very hacky macro to report which checks fail in OK-OBJECT?

Called By 

OK-OBJECT?, OK-OBJECT?, OK-OBJECT?, OK-OBJECT?, OK-OBJECT?, OK-OBJECT? and OK-OBJECT?

Location 

verify.lisp

VERIFY-VIEWPORT
 (VERIFY-VIEWPORT DUNGEON PLAYER) [function]
Description 

verifies that the viewport is correct and scrolls as needed to have the player in there.

Called By 

RUN-LEVEL! and SWITCH-MAP-MODE

Calls 

ADJUST-VIEWPORT!, GET-FRAME-HEIGHT, GET-FRAME-WIDTH, INT-/, LOCATION-X, LOCATION-Y, PLAYER.VIEW-X and PLAYER.VIEW-Y

Location 

dungeon.lisp

VIEWPORT-CONTAINS?
 (VIEWPORT-CONTAINS? PLAYER X Y) [function]
Description 

Returns T if the viewport contains the coordinate.

Called By 

INTERACTIVE-TARGETING!

Calls 

GET-FRAME-HEIGHT, GET-FRAME-WIDTH, PLAYER.VIEW-X and PLAYER.VIEW-Y

Location 

dungeon.lisp

VINFO-HACK.NUM-SLOPES
 (VINFO-HACK.NUM-SLOPES (OBJ VINFO-HACK)) [function]

(SETF VINFO-HACK.NUM-SLOPES)
 ((SETF VINFO-HACK.NUM-SLOPES) (OBJ VINFO-HACK)) [function]
Called By 

%CREATE-VINFO-HACK

Location 

view.lisp

VINFO-HACK.SLOPES
 (VINFO-HACK.SLOPES (OBJ VINFO-HACK)) [function]

(SETF VINFO-HACK.SLOPES)
 ((SETF VINFO-HACK.SLOPES) (OBJ VINFO-HACK)) [function]
Called By 

%CREATE-VINFO-HACK and VINFO-INIT&

Location 

view.lisp

VINFO-HACK.SLOPES-MAX
 (VINFO-HACK.SLOPES-MAX (OBJ VINFO-HACK)) [function]

(SETF VINFO-HACK.SLOPES-MAX)
 ((SETF VINFO-HACK.SLOPES-MAX) (OBJ VINFO-HACK)) [function]
Called By 

%CREATE-VINFO-HACK

Location 

view.lisp

VINFO-HACK.SLOPES-MIN
 (VINFO-HACK.SLOPES-MIN (OBJ VINFO-HACK)) [function]

(SETF VINFO-HACK.SLOPES-MIN)
 ((SETF VINFO-HACK.SLOPES-MIN) (OBJ VINFO-HACK)) [function]
Called By 

%CREATE-VINFO-HACK

Location 

view.lisp

VINFO-INIT-AUX
 (VINFO-INIT-AUX HACK X Y M) [function]
Description 

Helper function for vinfo-init.

Calls 

(SETF AREF), (SETF SVREF), VINFO-HACK.NUM-SLOPES, VINFO-HACK.SLOPES-MAX and VINFO-HACK.SLOPES-MIN

Location 

view.lisp

VINFO-TYPE.BITS
 (VINFO-TYPE.BITS (OBJ VINFO-TYPE)) [function]

(SETF VINFO-TYPE.BITS)
 ((SETF VINFO-TYPE.BITS) (OBJ VINFO-TYPE)) [function]

VINFO-TYPE.D
 (VINFO-TYPE.D (OBJ VINFO-TYPE)) [function]

(SETF VINFO-TYPE.D)
 ((SETF VINFO-TYPE.D) (OBJ VINFO-TYPE)) [function]
Called By 

VINFO-INIT&

Location 

view.lisp

VINFO-TYPE.GRIDS
 (VINFO-TYPE.GRIDS (OBJ VINFO-TYPE)) [function]

(SETF VINFO-TYPE.GRIDS)
 ((SETF VINFO-TYPE.GRIDS) (OBJ VINFO-TYPE)) [function]

VINFO-TYPE.NEXT-0
 (VINFO-TYPE.NEXT-0 (OBJ VINFO-TYPE)) [function]

(SETF VINFO-TYPE.NEXT-0)
 ((SETF VINFO-TYPE.NEXT-0) (OBJ VINFO-TYPE)) [function]
Called By 

VINFO-INIT&

Location 

view.lisp

VINFO-TYPE.NEXT-1
 (VINFO-TYPE.NEXT-1 (OBJ VINFO-TYPE)) [function]

(SETF VINFO-TYPE.NEXT-1)
 ((SETF VINFO-TYPE.NEXT-1) (OBJ VINFO-TYPE)) [function]
Called By 

VINFO-INIT&

Location 

view.lisp

VINFO-TYPE.R
 (VINFO-TYPE.R (OBJ VINFO-TYPE)) [function]

(SETF VINFO-TYPE.R)
 ((SETF VINFO-TYPE.R) (OBJ VINFO-TYPE)) [function]
Called By 

VINFO-INIT&

Location 

view.lisp

VINFO-TYPE.X
 (VINFO-TYPE.X (OBJ VINFO-TYPE)) [function]

(SETF VINFO-TYPE.X)
 ((SETF VINFO-TYPE.X) (OBJ VINFO-TYPE)) [function]
Called By 

VINFO-INIT&

Location 

view.lisp

VINFO-TYPE.Y
 (VINFO-TYPE.Y (OBJ VINFO-TYPE)) [function]

(SETF VINFO-TYPE.Y)
 ((SETF VINFO-TYPE.Y) (OBJ VINFO-TYPE)) [function]
Called By 

VINFO-INIT&

Location 

view.lisp

WANT-REDRAW?
 (WANT-REDRAW? CREATURE FLAG) [function]
Description 

Checks if a redraw-flag is set.

Called By 

REDRAW-STUFF

Calls 

GETHASH

Location 

base.lisp

WANT-UPDATE?
 (WANT-UPDATE? CREATURE FLAG) [function]
Description 

Checks if an update-flag is set.

Called By 

UPDATE-STUFF

Calls 

GETHASH

Location 

base.lisp

WHEN-BIND
 (WHEN-BIND VAR) [macro]
Description 

generalisation of (let ((var expr)) (when var ...)).

Location 

base.lisp

WHILE
 (WHILE TEST) [macro]
Description 

repeat BODY while TEST is true

Called By 

VINFO-INIT&

Location 

base.lisp

WIN/FORMAT
 (WIN/FORMAT WIN X Y COLOUR FORMAT-STR) [function]
Description 

A non-consing format that writes directly to a window. It understands the format directives ~a ~d ~~ ~% and ~v (~v is similar to ~vd in CL:FORMAT and takes two arguments).

Called By 

ON-MOVE-TO-COORD, PRINT-MANA-POINTS, PRINT-NUMBER and PRINT-STAT-VALUE

Calls 

FLUSH-COORDS and WIN/WRITE-INT

Location 

window.lisp

WIN/WRITE-CHAR
 (WIN/WRITE-CHAR WIN X Y VAL) [function]
Called By 

WIN/WRITE-INT

Calls 

(SETF WINDOW-COORD), CHAR-CODE, ERROR, LOGIOR, PAINT-COORD and TEXT-PAINT-VALUE

Location 

window.lisp

WIN/WRITE-INT
 (WIN/WRITE-INT WIN X Y INT PADDING) [function]
Description 

Borrowed and modified from CMUCL.

Called By 

WIN/FORMAT

Calls 

WIN/WRITE-CHAR

Location 

window.lisp

WIN/WRITE-STR
 (WIN/WRITE-STR WIN X Y STR) [function]

WINDOW-ALLOWS-GFX-TILES?
 (WINDOW-ALLOWS-GFX-TILES? &OPTIONAL (TERM -1)) [function]
Description 

Check if a given term or window uses gfx-tiles

Called By 

DRAW-ACTIVE-OBJECTS, DRAW-CREATURES, DRAW-TO-MAP and GRAPHICAL-MAP?

Calls 

WINDOW.GFX-TILES?

Location 

global.lisp

WINDOW-COORD
 (WINDOW-COORD WIN LAYER X Y) [function]
Called By 

PAINT-COORD

Calls 

WINDOW.DATA

Location 

window.lisp

(SETF WINDOW-COORD)
 ((SETF WINDOW-COORD) VALUE WIN LAYER X Y) [function]
Called By 

DISPLAY-MOVING-OBJECT, DISPLAY-VISUAL-STATES, DRAW-RELATIVE-EFFECT!, DRAW-TO-MAP, REMOVE-TARGET-DISPLAY, SET-CURSOR-TO and WIN/WRITE-CHAR

Calls 

(SETF AREF), WINDOW.DATA and WINDOW.FLAGMAP

Location 

window.lisp

WITH-DIALOGUE
 (WITH-DIALOGUE DUMMY) [macro]
Called By 

BROWSE-SPELLS, VAN-INVOKE-SPELL!, VAN-LEARN-SPELL! and VISIT-HOUSE

Location 

global.lisp

WITH-DUNGEON
 (WITH-DUNGEON PARAMETERS) [macro]
Description 

a WITH- construct. parameters should be: (dungeon-variable (arg-names to INVOKE)).

Called By 

%FILED-DUNGEON, ACTIVATE-OBJECT, CLEAN-DUNGEON!, FILL-DUNGEON-WITH-FLOOR! and VAN/TOWN-ILLUMINATE!

Location 

dungeon.lisp

WITH-DUNGEON-MONSTERS
 (WITH-DUNGEON-MONSTERS DUNGEON-VAR) [macro]

WITH-FULL-FRAME
 (WITH-FULL-FRAME DUMMY) [macro]

WORN-ITEM-SLOT-DESC
 (WORN-ITEM-SLOT-DESC (OBJ WORN-ITEM-SLOT)) [function]

(SETF WORN-ITEM-SLOT-DESC)
 ((SETF WORN-ITEM-SLOT-DESC) (OBJ WORN-ITEM-SLOT)) [function]

WORN-ITEM-SLOT-HIDDEN
 (WORN-ITEM-SLOT-HIDDEN (OBJ WORN-ITEM-SLOT)) [function]

(SETF WORN-ITEM-SLOT-HIDDEN)
 ((SETF WORN-ITEM-SLOT-HIDDEN) (OBJ WORN-ITEM-SLOT)) [function]

WORN-ITEM-SLOT-KEY
 (WORN-ITEM-SLOT-KEY (OBJ WORN-ITEM-SLOT)) [function]

(SETF WORN-ITEM-SLOT-KEY)
 ((SETF WORN-ITEM-SLOT-KEY) (OBJ WORN-ITEM-SLOT)) [function]

WORN-ITEM-SLOT-TYPES
 (WORN-ITEM-SLOT-TYPES (OBJ WORN-ITEM-SLOT)) [function]

(SETF WORN-ITEM-SLOT-TYPES)
 ((SETF WORN-ITEM-SLOT-TYPES) (OBJ WORN-ITEM-SLOT)) [function]

WRITE-OBJ-DESCRIPTION
 (WRITE-OBJ-DESCRIPTION VARIANT OBJ STREAM &KEY STORE NUMERIC-PREFIX VERBOSITY) [generic]
Description 

Describes the given object to the given stream.

Called By 

%PRINT-TARGET and PICK-UP-FROM-FLOOR!

Location 

generics.lisp

WRITE-PLURALISED-STRING
 (WRITE-PLURALISED-STRING STREAM PLURAL-STRING NUMBER &KEY (FLAVOUR NIL) (IDENT NIL) (ACTUAL-NAME NIL) (NUMERIC-PREFIX T)) [function]
Called By 

PLURAL-NAME, WRITE-OBJ-DESCRIPTION, WRITE-OBJ-DESCRIPTION, WRITE-OBJ-DESCRIPTION, WRITE-OBJ-DESCRIPTION, WRITE-OBJ-DESCRIPTION and WRITE-OBJ-DESCRIPTION

Calls 

FIND, FLAVOUR.NAME, FORMAT, SCHAR and WRITE-STRING

Location 

object.lisp

This documentation was generated Autumn 2003 from the original sources by Albert v.0.4.9.