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