(%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 | ||
Calls | CHAR-CODE, FORMAT, QUIT-GAME&, RANDOM, READ-ONE-CHARACTER and WARN | |
Location |
(%ASSIGN-WIN-DIRS) [function] |
Calls | CONCATENATE, LBSYS/ENSURE-DIR-NAME, LBSYS/GET-CURRENT-DIRECTORY and NAMESTRING | |
Location |
(%CREATE-NEW-CHARACTER WANTED-VARIANT) [function] |
Description | Handles creation of a new character in given variant. | |
Called By | ||
Calls | %LOAD-WINDOW-TEXTURES, ACTIVATE-OBJECT, ERROR, GET-SYSTEM-TYPE, INTERACTIVE-CREATION-OF-PLAYER, LOAD-VARIANT&, MAKE-INSTANCE, ON-NEW-PLAYER and WARN | |
Location |
(%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 |
(%CREATE-VINFO-HACK) [function] |
Description | A function that creates and inits a vinfo-hack. | |
Called By | ||
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 |
(%DISTRIBUTE-DECOR! DUNGEON DECOR) [function] |
Called By | ||
Calls | DUNGEON.HEIGHT, DUNGEON.WIDTH, ERROR, LEGAL-COORD?, LOCATION-X, LOCATION-Y, PLACE-DOOR!, PLACE-TRAP! and REVERSE | |
Location |
(%DISTRIBUTE-MONSTERS! DUNGEON OBJS) [function] |
Called By | ||
Calls | COORD.MONSTERS, DUNGEON.HEIGHT, DUNGEON.TABLE, DUNGEON.WIDTH, ERROR, LEGAL-COORD?, LOCATION-X and LOCATION-Y | |
Location |
(%EXECUTE-TRAP THE-TRAP DUNGEON X Y) [function] |
Calls | DECOR-OPERATION, DECOR.TYPE, DISTURBANCE, FUNCALL, FUNCTIONP, TRAP.EFFECT, TRAP.ID and WARN | |
Location |
(%FILED-CONTAINED-ITEMS &KEY CUR-SIZE MAX-SIZE OBJS) [function] |
Description | returns a container for items or nil. | |
Calls | ||
Location |
(%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 |
(%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 |
(%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 |
(%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 |
(%FILED-MONSTER-KIND &KEY ID (ALREADY-DEAD :UNSPEC)) [function] |
Calls | (SETF MONSTER.ALREADY-DEAD), ERROR, GETHASH, VARIANT.MONSTERS and WARN | |
Location |
(%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 |
(%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 |
(%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 |
(%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 |
(%FILED-TRAP &KEY TYPE LOC-X LOC-Y) [function] |
Description | returns an active-trap or nil. | |
Calls | ||
Location |
(%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 |
(%FILED-WORN-ITEMS &KEY OBJS) [function] |
Description | returns a worn-items object or nil. | |
Calls | ||
Location |
(%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 |
(%GET-HUNGERLVL SATIATION) [function] |
Description | Returns (lvl colour description init-msg). | |
Called By | ||
Location |
(%LOAD-SAVED-GAME FNAME) [function] |
Description | Will assign values to *variant*, *player* and *level if it can. | |
Called By | ||
Calls | %LOAD-WINDOW-TEXTURES, FORMAT, LOAD-A-SAVED-GAME, PATHNAME, PATHNAME-TYPE, PAUSE-LAST-LINE!, SAVEPROBLEM.DESC and WARN | |
Location |
(%MOUSE-CLICKED BUTTON X Y) [function] |
Description | Figures out what window it happened in and calls handle-mouse-click | |
Called By | ||
Calls | GET-SYSTEM-TYPE, HANDLE-MOUSE-CLICK, WARN, WINDOW.X-OFFSET and WINDOW.Y-OFFSET | |
Location |
(%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 |
(%PRETTY-DATE-LINE UNIV-TIME) [function] |
Description | Returns a pretty printed date-line. | |
Calls | ||
Location |
(%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 |
(%RETRIEVE-DOOR VARIANT KEY OPERATION X Y) [function] |
Called By | ||
Calls | (SETF DECOR.VISIBLE?), (SETF LOCATION-X), (SETF LOCATION-Y), DECOR-OPERATION, GET-DOOR and WARN | |
Location |
(%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 |
(%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 |
(%STORE-SELL-ITEM PLAYER LEVEL STORE) [function] |
Called By | ||
Calls | %PRINT-SHOP-MESSAGE!, GET-ITEM-TABLE, GET-OFFER, ITEM-TABLE-ADD!, ITEM-TABLE-MORE-ROOM?, ITEM-TABLE-REMOVE!, LEVEL.DUNGEON, PLAYER.GOLD, SELECT-ITEM, STORE-BUYS-ITEM? and STORE.ITEMS | |
Location |
(%SWITCH-IN-WINDOW WIN) [function] |
Called By | ||
Calls | ACTIVATE-WINDOW, IS-WINDOW?, NON-NEGATIVE-INTEGER?, PAINT-WINDOW and WINDOW.DISABLED? | |
Location |
(A &OPTIONAL (UI "sdl") &KEY (GFX NIL) (SIZE :|800X600|) (FULL-SCREEN NIL)) [function] |
Called By | ||
Calls | ||
Location |
(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 | ||
Location |
(ACCEPTABLE-OWNER? HOUSE &OPTIONAL (OWNER NIL)) [function] |
Description | Returns t or nil. | |
Calls | ||
Location |
(ACTIVATE-WINDOW WIN) [function] |
Called By | %SWITCH-IN-WINDOW, INVOKE-IN-DIALOGUE, SWITCH-MAP-MODE and SWITCH-TO-FULL-FRAME& | |
Calls | ||
Location |
(ADD-MAGIC-TO-ITEM! VARIANT ITEM DEPTH QUALITY) [generic] |
Description | Adds magical properties to an item. | |
Location |
(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 |
(ADD-OLD-TILE! DUNGEON X Y) [function] |
Description | Add a tile to the list of tiles that need refreshing. | |
Called By | ||
Calls | ||
Location |
(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 | ||
Calls | ||
Location |
(ADD-STAT-BONUS BASE AMOUNT) [function] |
Description | Returns a numeric value with base incremented with amount | |
Calls | ||
Location |
(ADJUST-VIEWPORT! DUNGEON PLAYER VX VY) [function] |
Description | maybe let variants override this one to avoid the town-hack below? | |
Called By | ||
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 |
(ADVANCE-MESSAGE-SYS! (HANDLER MESSAGE-HANDLER-MORE)) [method] (ADVANCE-MESSAGE-SYS! (HANDLER MESSAGE-HANDLER-FLOW)) [method] |
(ALLOC-LOCATIONS OBJECT) [generic] |
Description | Returns a list of conses (area . chance). | |
Called By | ||
Location |
((SETF ALLOC-LOCATIONS) VALUE OBJECT) [generic] |
Description | Returns a list of conses (area . chance). | |
Location |
(ALLOCATE-MONSTER! VARIANT DUNGEON PLAYER DISTANCE SLEEPING) [generic] |
Description | Allocates a monster in the given dungeon. | |
Called By | ||
Location |
(ALLOCATE-MONSTER! (VARIANT VARIANT) (DUNGEON DUNGEON) PLAYER DISTANCE SLEEPING) [method] |
Calls | DUNGEON.HEIGHT, DUNGEON.WIDTH, LOCATION-X, LOCATION-Y and PLACE-MONSTER! | |
Location |
(ALLOCATE-OBJECT! VARIANT DUNGEON SET TYPE NUMBER) [generic] |
Description | Allocates an object in the dungeon? | |
Location |
(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 |
(ALLOCATE-OBJECT-IN-STORE! VARIANT THE-STORE) [function] |
Description | Tries to generate and add an object to the given store. | |
Calls | ||
Location |
(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 |
(ANY-REDRAWS? CREATURE) [function] |
Description | Checks if any redraws are wanted. | |
Called By | ||
Calls | ||
Location |
(ANY-UPDATES? CREATURE) [function] |
Description | Checks if any updates are wanted. | |
Called By | ||
Calls | ||
Location |
(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 | ||
Location |
(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 | ||
Location |
(APPLY-MAGIC! VARIANT OBJ BASE-LEVEL &KEY GOOD-P GREAT-P ALLOW-ARTIFACT) [generic] |
Description | Applies certain magic to a bare item. | |
Called By | ||
Location |
(APPLY-MAGIC! (VARIANT VARIANT) OBJ BASE-LEVEL &KEY GOOD-P GREAT-P (ALLOW-ARTIFACT T)) [method] |
Calls | ||
Location |
(APPLY-POSSIBLE-COORD-TRIGGER DUNGEON X Y) [function] |
Description | This is a hack.. fix me later.. | |
Called By | ||
Calls | APPLY, CAVE-DECOR, DECOR.EVENTS, EVENT.FUNCTION, EVENT.STATE, FUNCALL, GET-COORD-TRIGGER and IS-EVENT? | |
Location |
(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 |
(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 | ||
Location |
APPLY-USUAL-EFFECTS-ON-USED-OBJECT!
(APPLY-USUAL-EFFECTS-ON-USED-OBJECT! (VARIANT VARIANT) CREATURE (OBJ ACTIVE-OBJECT)) [method] |
(ARRANGE-GAME-EXIT& VARIANT PLAYER) [generic] |
Description | Organises complete funeral for the dead player. | |
Called By | ||
Location |
(ARRANGE-GAME-EXIT& (VARIANT VARIANT) PLAYER) [method] |
(ASK-FOR-REDRAW! CREATURE FLAG) [function] |
Description | Turns on the given redraw flag. | |
Called By | ||
Calls | ||
Location |
(ASK-FOR-UPDATE! CREATURE FLAG) [function] |
Description | Turns on the given update flag. | ||||||||||||||||||||||
Called By |
| ||||||||||||||||||||||
Calls | |||||||||||||||||||||||
Location |
(ATTACK-LOCATION! DUNGEON PLAYER X Y) [function] |
Description | attacks a given location.. | |
Called By | ||
Calls | ||
Location |
(ATTEMPT-MULTI-CREATION! VARIANT OBJ DEPTH) [generic] |
Description | Attempt to create multiple objects (ie increase number). | |
Location |
(BALANCE-BID STRATEGY CREATURE BID) [function] |
Description | Balances a bid-number from 0 to 10. | |
Calls | ||
Location |
(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 |
(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 | ||
Location |
(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 |
(BUILD-HOUSE! LEVEL HOUSE TOPLEFT-X TOPLEFT-Y) [generic] |
Description | Builds a house on the given level at given coord. | |
Called By | ||
Location |
(BUILD-HOUSE! LEVEL (HOUSE HOUSE) TOPLEFT-X TOPLEFT-Y &KEY (DOOR-FEATURE NIL) (DOOR-TRIGGER NIL)) [method] |
Calls | ||
Location |
(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 |
(CALCULATE-CREATURE-BONUSES! VARIANT CREATURE) [generic] |
Description | Does a full walk-through of the creature and updates any and all bonuses. | |
Called By | ||
Location |
CALCULATE-CREATURE-HIT-POINTS!
(CALCULATE-CREATURE-HIT-POINTS! VARIANT CREATURE) [generic] |
Description | Does a walk-through of the creature and recalculates hit-points. | |
Location |
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 |
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 |
(CALCULATE-SCORE VARIANT PLAYER) [generic] |
Description | Calculates the score for the player based on the variant's scoring-system. | |
Location |
(CAN-CREATURE-DROP? VARIANT CREATURE) [generic] |
Description | Checks if the creature can drop anything on death. | |
Location |
(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 | ||
Location |
(CAN-PLACE? DUNGEON X Y TYPE &OPTIONAL ALLOW-EXISTING) [function] |
Called By | ||
Calls | BIT-FLAG-SET?, CAVE-COORD, COORD.DECOR, COORD.FLOOR, COORD.MONSTERS, COORD.OBJECTS and FLOOR.FLAGS | |
Location |
(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 | ||
Location |
(CARRIES-OBJECT? CREATURE OBJ) [function] |
Description | Checks if a creature carries an object with a certain id. | |
Called By | ||
Calls | ||
Location |
(CAVE-COORD DUNGEON X Y) [macro] |
Called By | CAN-PLACE?, CAVE-DECOR, CAVE-FLAGS, CAVE-FLOOR, CAVE-MONSTERS, CAVE-OBJECTS, DRAW-TO-MAP, GET-TARGET-AT-COORDINATE, KILL-TARGET!, NOTE-SPOT! and PROCESS-SINGLE-MONSTER! | |
Calls | ||
Location |
(CAVE-DECOR DUNGEON X Y) [function] |
Called By | APPLY-POSSIBLE-COORD-TRIGGER, BASH-DOOR!, CLOSE-DOOR!, DISARM-TRAP!, HANDLE-MOUSE-CLICK, IS-CLOSED-DOOR?, IS-OPEN-DOOR?, IS-VISIBLE-TRAP?, NEXT-TO-WALLS and OPEN-DOOR! | |
Calls | ||
Location |
(CAVE-FLAGS DUNGEON X Y) [function] |
Called By | CAVE-FLOOR-BOLD?, CAVE-ICKY?, CAVE-IS-ROOM?, FLOORIFY-COORD!, FORGET-VIEW!, HANDLE-MOUSE-CLICK, LIGHT-ROOM!, PLAYER-CAN-SEE-BOLD? and PLAYER-HAS-LOS-BOLD? | |
Calls | ||
Location |
(CAVE-FLOOR DUNGEON X Y) [function] |
Called By | HANDLE-MOUSE-CLICK, NEXT-TO-WALLS, POSSIBLE-DOORWAY?, TRY-DOOR! and USE-STAIR! | |
Calls | ||
Location |
((SETF CAVE-FLOOR) VAL DUNGEON X Y) [function] |
Called By | ||
Calls | (SETF COORD-FLOOR), DUNGEON.ACTIVE, DUNGEON.TABLE, LIGHT-SPOT! and NOTE-SPOT! | |
Location |
(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 | ||
Location |
(CAVE-MONSTERS DUNGEON X Y) [function] |
Called By | ATTACK-LOCATION!, CAVE-EMPTY-BOLD?, FINALISE-VISUAL-EVENT, FINALISE-VISUAL-EVENT, GET-TARGET-AT-COORDINATE, HANDLE-MOUSE-CLICK, MOVE-PLAYER!, PROJECT-PATH and SWAP-MONSTERS! | |
Calls | ||
Location |
((SETF CAVE-MONSTERS) VAL DUNGEON X Y) [function] |
Called By | PLACE-SINGLE-MONSTER!, REMOVE-MONSTER-FROM-DUNGEON! and SWAP-MONSTERS! | |
Calls | ||
Location |
(CAVE-OBJECTS DUNGEON X Y) [function] |
Called By | %DESTROY-FLOOR-OBJ, %PRINT-TARGET, GET-ENSURED-FLOOR-TABLE, HANDLE-MOUSE-CLICK, LET-FLOOR-CARRY!, NEW-PLAYER-SPOT!, NOTE-SPOT!, ON-MOVE-TO-COORD and PICK-UP-FROM-FLOOR! | |
Calls | ||
Location |
((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 | ||
Location |
(CENTRE-STRING STR MAX-LEN) [function] |
Description | Tries to return a centred version of the string. | |
Called By | ||
Calls | ||
Location |
(CHECK-KEYPRESS TABLE KEY) [function] |
Description | checks a keypress vs the given table | |
Called By | ||
Calls | ||
Location |
(CLEAN-COORD! COORD) [function] |
Description | Cleans the given coordinate. | |
Called By | ||
Calls | (SETF COORD-FLOOR), (SETF COORD.DECOR), (SETF COORD.FLAGS), (SETF COORD.MONSTERS), (SETF COORD.OBJECTS) and GET-FLOOR-TYPE | |
Location |
(CLEAN-DUNGEON! DUNGEON) [function] |
Description | Clears all flags and everything from the dungeon. | |
Called By | ||
Calls | (SETF DUNGEON.MONSTERS), (SETF DUNGEON.ROOMS), (SETF DUNGEON.TRIGGERS), CLEAN-COORD! and WITH-DUNGEON | |
Location |
(CLEAR-COORD WIN X Y) [function] |
Description | Clears the coord of any values. Does not force repaint | |
Called By | ||
Calls | ||
Location |
(CLEAR-OLD-TILES! WIN DUNGEON PLAYER) [function] |
Description | Clears up tiles that may or may not have had an update. | |
Called By | ||
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 |
(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 |
(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 |
(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 |
(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 |
(CMB-DESCRIBE-DEATH ATTACKER TARGET) [method] |
Calls | FORMAT-MESSAGE!, GET-CREATURE-DESC, GET-CREATURE-NAME and PLAY-SOUND | |
Location |
(CMB-MONSTER-ATTACK! DUNGEON PLAYER MON THE-X THE-Y) [function] |
Description | The monster attacks the player at (the-x,the-y). | |
Calls | ||
Location |
(COLOUR-WINDOW WIN COLOUR-IDX) [function] |
Description | Tries to colour the window with a background from the background tilefile. | |
Calls | ||
Location |
(COMMON-MAKE-OVERLAPPING-ROOM) [function] |
Description | constructor for the overlapping room. | |
Calls | ||
Location |
(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 | ||
Calls | ||
Location |
(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 |
((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 |
(COORD.DECOR (OBJ DUNGEON-COORD)) [function] |
Called By | CAN-PLACE?, CAVE-DECOR, DETECT-DOORS!, DETECT-TRAPS! and DRAW-TO-MAP | |
Location |
(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 |
(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 |
(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 |
(COORD.OBJECTS (OBJ DUNGEON-COORD)) [function] |
Called By | %DISTRIBUTE-OBJECTS!, CAN-PLACE?, CAVE-OBJECTS, DETECT-GOLD! and DETECT-NORMAL-OBJECTS! | |
Location |
(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 | ||
Location |
(COPY-ACTIVE-OBJECT (VARIANT VARIANT) (OBJ ACTIVE-OBJECT) &OPTIONAL (TARGET NIL)) [method] |
Calls | ||
Location |
(COPY-HASH-TABLE HTBL) [function] |
Description | Tries to return a copy of the hash-table. Some values might be shared. | |
Called By | ||
Calls | (SETF GETHASH), HASH-TABLE-TEST, MAKE-HASH-TABLE and MAPHASH | |
Location |
(COPY-PLAYER-ABILITIES VARIANT PLAYER-ABILITIES) [generic] |
Description | Copies and returns a player-ability object. | |
Location |
(CORRECT-DIRECTION X1 Y1 X2 Y2) [function] |
Description | Returns two values, first the x-dir, then the y-dir | |
Called By | ||
Calls | ||
Location |
(CREATE-ALLOC-TABLE-MONSTERS VARIANT MON-TABLE) [generic] |
Description | Returns an allocation table for the given monster-table. | |
Location |
(CREATE-ALLOC-TABLE-OBJECTS VARIANT OBJ-TABLE) [generic] |
Description | Returns an allocation table for the given object-table. | |
Location |
(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 | ||
Location |
(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 |
(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 | ||
Calls | ||
Location |
(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 |
(CREATE-BASIC-ALLOCATION-TABLE VARIANT OBJ-TABLE) [function] |
Description | Creates and returns a basic allocation table for the given objects in a table. | |
Calls | ||
Location |
(CREATE-DUNGEON WIDTH HEIGHT &KEY ITS-DEPTH) [function] |
Description | Creates and returns a dungeon of specified size | |
Called By | ||
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 |
(CREATE-GOLD VARIANT DUNGEON &KEY ORIGINATOR) [generic] |
Description | Creates gold in the dungeon. | |
Location |
(CREATE-OBJECT VARIANT DUNGEON GOOD-P GREAT-P) [generic] |
Description | Creates an object and puts it in the dungeon. | |
Location |
(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 |
(CREATURE-ALIVE? CREATURE) [generic] |
Description | Returns T if the creature is alive, NIL if not. | |
Location |
((SETF CREATURE-ALIVE?) VALUE CREATURE) [generic] |
Description | Alters the creature's 'alive'-status. | |
Called By | ||
Location |
(CREATURE-DROP! VARIANT CREATUE DUNGEON) [generic] |
Description | Makes the dead creature drop items on death. | |
Location |
(DEACTIVATE-WINDOW WIN) [function] |
Called By | INVOKE-IN-DIALOGUE, SWITCH-MAP-MODE and SWITCH-TO-REGULAR-FRAMESET& | |
Calls | ||
Location |
(DEDUCT-HP! TARGET AMOUNT) [function] |
Called By | FINALISE-VISUAL-EVENT, MELEE-INFLICT-DAMAGE!, MISSILE-INFLICT-DAMAGE! and MISSILE-INFLICT-DAMAGE! | |
Calls | ||
Location |
(DEFINE-ATTACK-DESCRIPTION SYMBOL DESC) [function] |
Description | Adds a legit attack-description. | |
Calls | (SETF GET-ATTACK-DESCRIPTION), ERROR-CONDITION and NONBOOLSYM? | |
Location |
(DEFINE-BASIC-FLAVOUR TYPE NAME &KEY GFX-SYM TEXT-SYM) [function] |
Description | Defines a basic flavour.. | |
Calls | ||
Location |
(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 |
(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 |
(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 |
(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 |
(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 |
(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 |
(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 |
(DEFINE-KEY-OPERATION KEY OPERATION) [function] |
Description | defines a key-operation which later can be bound. | |
Calls | ||
Location |
(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 |
(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 |
(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 |
(DEFINE-NORMAL-EVENT DUMMY-ARG ID TYPE FUNCTION &KEY (VARIANT *VARIANT*)) [function] |
Description | establishes an event basically. | |
Calls | ||
Location |
(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 |
(DEFINE-OBJECT-TYPE NAME &KEY IS KEY KIND-SLOTS AOBJ-SLOTS) [macro] |
Description | Creates necessary objects and registers them. | |
Calls | ||
Location |
(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 |
(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 |
(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 |
(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 |
(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 |
(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 |
(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 |
(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 |
(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 |
(DELIVER-ELEMENTAL-DAMAGE! VARIANT SOURCE TARGET ELEMENT DAMAGE) [generic] |
Description | Gives out decent elemental damage to a target. | |
Location |
(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 |
(DISPLAY-CREATURE VARIANT CREATURE &KEY MODE) [generic] |
Description | Displays the creature to the UI. | |
Location |
(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 |
(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 |
(DISPLAY-HIGH-SCORES VARIANT HIGHSCORE-LIST &KEY CURRENT USE-TERM) [generic] |
Description | Displays high-scores in some way. | |
Location |
(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 |
(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 | ||
Location |
(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 |
(DISPLAY-PLAYER-COMBAT-RATINGS VARIANT PLAYER TERM SETTINGS) [generic] |
Description | Display combat info about the player for the character sheet. | |
Location |
(DISPLAY-PLAYER-EXTRA VARIANT PLAYER TERM SETTINGS) [generic] |
Description | Display extra info about the player for the character sheet. | |
Location |
(DISPLAY-PLAYER-SKILLS VARIANT PLAYER TERM SETTINGS) [generic] |
Description | Display skills for the player for the character sheet. | |
Location |
(DISPLAY-TARGET DUNGEON TARGET) [function] |
Called By | ||
Calls | IS-LEGAL-TARGET?, PUT-CURSOR-RELATIVE!, TARGET.X and TARGET.Y | |
Location |
(DISPLAY-VISUAL-STATES VARIANT) [function] |
Description | Tries to display the necessary visual states. | |
Called By | ||
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 |
(DISTRIBUTE-FLAVOURS! VARIANT) [generic] |
Description | Tries to distribute flavours for the given objects. | |
Location |
(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 |
(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 |
(DO-PROJECTION SOURCE TARGET-X TARGET-Y FLAG &KEY (EFFECT NIL) (PROJECTED-OBJECT NIL) (DAMAGE 0) (RADIUS 0) (RANGE +MAX-RANGE+) (SOUND NIL)) [method] |
Calls |
| |||||||||||||||||||||||||
Location |
(DRAW-ACTIVE-OBJECTS WIN DUNGEON PLAYER) [function] |
Description | Draws all active objects that are in the viewport. | |
Called By | ||
Calls | ||
Location |
(DRAW-CREATURES WIN DUNGEON PLAYER) [function] |
Description | Draws all creatures that are in the viewport. | |
Called By | ||
Calls | ||
Location |
(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 |
(DRAW-SCREEN-OBJ WIN OBJ VX VY SYM-FUN) [function] |
Description | Don't use this one! | |
Called By | ||
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 |
(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 | ||
Calls | ||
Location |
(DROP-NEAR-LOCATION! VARIANT DUNGEON OBJECT X Y) [generic] |
Description | Tries to drop an object at given locaton. | |
Called By | ||
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 |
(DUMP-ALLOC-TABLE TABLE FNAME) [function] |
Description | Dumps an alloc-table to the given file. | |
Location |
(DUMP-OBJECTS OUT-FILE &OPTIONAL OBJECT-LIST) [function] |
Calls | GET-LOADABLE-FORM, GET-OBJECT-LIST, PPRINT, PRINT and TERPRI | |
Location |
((SETF DUNGEON.MONSTERS) (OBJ DUNGEON)) [function] |
Called By | %FILED-DUNGEON, CLEAN-DUNGEON! and REMOVE-MONSTER-FROM-DUNGEON! | |
Location |
(ENGINE-ALLOWS-GFX-TILES?) [function] |
Description | Return T if the running program uses gfx-tiles? | |
Calls | ||
Location |
(EQUIP-CHARACTER! VARIANT PLAYER SETTINGS) [generic] |
Description | Equips character according to settings and variant. | |
Location |
(ERROR-CONDITION TYPE) [macro] |
Called By | ANALYSE-SPECIAL-ABILITIES!, DEFINE-ATTACK-DESCRIPTION, DEFINE-MONSTER-ATTACK, DEFINE-SPELL-EFFECT, ESTABLISH-UI-THEME-SIZE-CALCULATIONS& and INSTALL-WINDOW-FONT! | |
Location |
(ESTABLISH-DATA-IN-WINDOW WIN) [function] |
Description | Makes the datastructures internally. | |
Called By | ||
Calls | (SETF WINDOW.DATA), (SETF WINDOW.FLAGMAP), MAKE-ARRAY, WINDOW.HEIGHT and WINDOW.WIDTH | |
Location |
(ESTABLISH-FLAVOUR& FLAVOUR-TYPE NAME &KEY GFX-SYM TEXT-SYM) [function] |
Called By | ||
Calls | (SETF GETHASH), (SETF GFX-SYM), (SETF TEXT-SYM), FLAVOUR-TYPE.TABLE, FLAVOUR-TYPE.UNUSED-FLAVOURS, MAKE-INSTANCE and NON-NEGATIVE-INTEGER? | |
Location |
(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 | ||
Calls | (SETF GETHASH), HOUSE.ID, IS-VARIANT? and VARIANT.HOUSE-TYPES | |
Location |
(ESTABLISH-OWNER& VAR-OBJ OWNER) [function] |
Description | Establish an owner as available. Returns NIL on failure and owner on success. | |
Called By | ||
Calls | (SETF GETHASH), IS-VARIANT?, OWNER.ID and VARIANT.HOUSE-OWNERS | |
Location |
ESTABLISH-UI-THEME-SIZE-CALCULATIONS&
(ESTABLISH-UI-THEME-SIZE-CALCULATIONS& THEME) [function] |
Description | Tells the C-side of wanted sizes for subwindows. | ||||||||||||||||||||||
Called By | |||||||||||||||||||||||
Calls |
| ||||||||||||||||||||||
Location |
(EXECUTE-TURN-EVENTS! VAR-OBJ) [function] |
Description | Executes any turn-events. | |
Calls | GETHASH, REMHASH, VARIANT.TURN, VARIANT.TURN-EVENTS and WARN | |
Location |
(FETCH-EVENT EVENT-OBJ ONLY-POLL) [function] |
Called By | |||||||||||||||||||||||
Calls |
| ||||||||||||||||||||||
Location |
(FETCH-THEME-VAR THEME VAR-ARG) [function] |
Description | Tries to return a dynamic variable in the theme. | |
Called By | ||
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 |
(SETF FIELD-PRINTER.WINDOW-KEY)
((SETF FIELD-PRINTER.WINDOW-KEY) (OBJ FIELD-PRINTER)) [function] |
Called By | ||
Location |
(FILED-PLAYER-DATA VARIANT PLAYER) [generic] |
Description | Overridable method for reading in data furing a LOAD. | |
Called By | ||
Location |
(FILED-PLAYER-DATA (VARIANT VARIANT) (PLAYER PLAYER)) [method] |
Calls |
| |||||||||||||||||||||||||||||||||||||
Location |
(FILED-VARIANT-DATA VARIANT) [generic] |
Description | Overridable method for reading in data during a LOAD. | |
Location |
(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 | ||
Calls | ||
Location |
(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 | ||
Location |
(FILL-DUNGEON-WITH-FLOOR! DUNGEON FLOOR) [function] |
Description | Cleans and then fills the dungeon with a given floor. Returns nothing. | |
Called By | ||
Calls | ||
Location |
(FILL-PLAYER-ABILITIES! VARIANT TARGET SOURCE) [generic] |
Description | Fills the target with values from source. | |
Location |
(FILL-PLAYER-ABILITIES! (VARIANT VARIANT) (TO PLAYER-ABILITIES) (FROM PLAYER-ABILITIES)) [method] |
Calls | ||
Location |
(FILL-UP-STORE! VARIANT STORE &OPTIONAL (ATTEMPTS 10)) [function] |
Description | Tries several attempts (default 10) to run maintenace on the store. | |
Called By | ||
Calls | ||
Location |
(FIND-APPROPRIATE-MONSTER LEVEL ROOM PLAYER) [generic] |
Description | Returns an appropriate monster for a given level/room/player combo. Allowed to return NIL. | |
Location |
(FIND-APPROPRIATE-ROOM VARIANT LEVEL PLAYER) [generic] |
Description | Tries to find an appropriate room-type for given dungeon. | |
Location |
(FIND-EVENT-FOR-KEY ID &KEY (VARIANT *VARIANT*)) [function] |
Description | Tries to find an event for the given id. | |
Called By | ||
Calls | ||
Location |
(FIND-FLAVOUR-TYPE VARIANT-OBJ TYPE) [function] |
Description | Tries to find given flavour-type in given variant-obj. | |
Called By | ||
Calls | ||
Location |
(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 |
(FIND-KEY-OPERATION KEY) [function] |
Description | returns an operation or NIL. | |
Called By | ||
Calls | ||
Location |
(FIND-LEVEL-FOR-XP XP XP-TABLE) [function] |
Description | Returns level for given xp according to given xp-table. | |
Location |
(FIND-RANDOM-TRAP VARIANT DUNGEON X Y) [generic] |
Description | Finds a random trap and returns it initialised. | |
Location |
(FIND-UI-THEME SYSTEM-TYPE) [function] |
Description | Tries to read in a theme. | |
Called By | ||
Calls | ||
Location |
(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 |
(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 |
(FLUSH-MESSAGES! &OPTIONAL (FORCED NIL)) [function] |
Called By | %INPUT-ONE-KEY, %SHOP-INPUT-LOOP, GET-AIM-DIRECTION and PLAY-GAME& | |
Calls | ||
Location |
(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 |
(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 |
(FORMAT-MESSAGE! FORMAT-STR) [macro] |
Called By |
| |||||||||||||||||||||||||
Location |
(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 |
(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 | ||||||||||||||||||||||||||
Calls |
| |||||||||||||||||||||||||
Location |
(GAME-LOOP&) [function] |
Description | This is the main game-loop. and this function looks _ugly_. | |
Called By | ||
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 |
(GCU-HANDLE-KEY KEY K-EV) [function] |
Description | Translates an incoming key from GCU into a langband key-event K-EV. | |
Called By | ||
Calls | ||
Location |
(GENERATE-DRAW DUNGEON X1 Y1 X2 Y2 FEAT) [function] |
Description | draws a box matching the coordinates | |
Location |
(GENERATE-LEVEL! (VARIANT VARIANT) (LEVEL RANDOM-LEVEL) PLAYER) [method] |
Calls |
| ||||||||||||||||||||||||||||
Location |
(GENERATE-RANDOM-NAME VARIANT CREATURE RACE) [generic] |
Description | Returns a random name for a given creature of race 'race', or NIL on failure. | |
Location |
(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 |
(GET-ACTIVE-MONSTER-BY-LEVEL VARIANT LEVEL &KEY DEPTH) [generic] |
Description | Returns an active monster or NIL. | |
Location |
(GET-ACTIVE-OBJECT-BY-LEVEL VARIANT LEVEL &KEY DEPTH) [generic] |
Description | Returns an active object or NIL. | |
Called By | ||
Location |
(GET-ACTIVE-OBJECT-BY-LEVEL (VARIANT VARIANT) (LEVEL LEVEL) &KEY DEPTH (AMOUNT 1)) [method] |
Calls | ||
Location |
(GET-AIM-DIRECTION) [function] |
Description | Interactive! | |
Called By | INTERACTIVE-DOOR-OPERATION!, INTERACTIVE-FIRE-A-MISSILE, INTERACTIVE-THROW-ITEM! and INTERACTIVE-TRAP-OPERATION! | |
Calls | DIGIT-CHAR-P, FLUSH-MESSAGES!, IS-LEGAL-TARGET?, PLAYER.TARGET, PUT-COLOURED-LINE!, READ-LOOP, READ-ONE-CHARACTER and WITH-FRAME | |
Location |
(GET-AND-PROCESS-COMMAND! DUNGEON PLAYER TABLE &OPTIONAL (POLL NIL)) [function] |
Description | remove me later | |
Calls | ||
Location |
(GET-ANIMATED-SPRITE ANIMATION) [function] |
Description | Returns a sprite from an animation for the current moment. | |
Calls | ||
Location |
(GET-ARRAY-WITH-NUMBERS LEN &KEY FILL-POINTER) [function] |
Description | Returns an array with increasing numbers. | |
Called By | ||
Calls | ||
Location |
(GET-ATTACK-DESCRIPTION VARIANT THE-ATTACK) [generic] |
Description | Returns a string with description of the attack. | |
Location |
((SETF GET-ATTACK-DESCRIPTION) VALUE VARIANT THE-ATTACK) [generic] |
Description | Registers a string with description of the attack with the variant. | |
Called By | ||
Location |
(GET-ATTACK-TYPE KEY &OPTIONAL (VARIANT *VARIANT*)) [function] |
Description | Returns a possible attack-type object registered with the given variant object. | |
Calls | ||
Location |
(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 |
(GET-CHAR-CLASS ID &KEY (VARIANT *VARIANT*)) [function] |
Description | Gets the class id'ed by id. | |
Calls | ||
Location |
((SETF GET-CHAR-CLASS) CLASS ID) [function] |
Description | Adds class to appropriate tables id'ed by id. | |
Called By | ||
Calls | ||
Location |
(GET-CHAR-RACE ID &KEY (VARIANT *VARIANT*)) [function] |
Description | Fetches the race id'ed by id from the appropriate table. | |
Called By | ||
Calls | GETHASH and VARIANT.RACES | |
Location |
((SETF GET-CHAR-RACE) RACE ID) [function] |
Description | Puts the race in appropriate tables id'ed by id. | |
Called By | ||
Calls | ||
Location |
(GET-CHARACTER-PICTURE VARIANT PLAYER) [generic] |
Description | Returns a filename to a picture of the player character. | |
Called By | ||
Location |
(GET-CLASS-NAME PLAYER) [function] |
Description | Returns a string with the name of the class. | |
Called By | ||
Calls | ||
Location |
(GET-CLASSES-AS-A-LIST VARIANT) [function] |
Description | Returns all available classes. | |
Called By | ||
Calls | ||
Location |
(GET-COORD-TRIGGER DUNGEON X Y) [function] |
Description | Tries to find a trigger at a given point. | |
Called By | ||
Calls | ||
Location |
((SETF GET-COORD-TRIGGER) VAL DUNGEON X Y) [function] |
Description | Adds a trigger to the given dungeon. | |
Called By | ||
Calls | ||
Location |
((SETF GET-CREATURE-AC) VAL CREATURE) [generic] |
Description | Alters the armour-class of the creature. VALUE must be a fixnum. | |
Location |
(GET-CREATURE-BURDEN CREATURE) [generic] |
Description | Returns a fixnum with the burden the creature carries. | |
Location |
(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 |
(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 |
(GET-CREATURE-ENERGY CREATURE) [generic] |
Description | Returns a fixnum with energy for the given creature. | |
Location |
((SETF GET-CREATURE-ENERGY) VALUE CREATURE) [generic] |
Description | Alters the energy of the creature. VALUE must be a fixnum. | |
Called By | ||
Location |
(GET-CREATURE-SPEED CREATURE) [generic] |
Description | Returns a fixnum with speed for the given creature. | |
Location |
((SETF GET-CREATURE-SPEED) VALUE CREATURE) [generic] |
Description | Alters the speed of the creature. VALUE must be a fixnum. | |
Called By | ||
Location |
(GET-CREATURE-STATE CREATURE STATE) [generic] |
Description | Returns the value of the named state for the given creature. | |
Location |
(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 |
(GET-DIRECTION-FROM-COORD-DIFF DIFF-X DIFF-Y) [function] |
Description | Return a numbered direction from coordinate diff. | |
Called By | ||
Location |
(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 | ||
Location |
(GET-DOOR-TYPE KEY &OPTIONAL (VARIANT *VARIANT*)) [function] |
Calls | GETHASH and VARIANT.DOORS | |
Location |
(GET-ELEMENT-FLAG VARIANT ELEMENT) [function] |
Description | Returns the bit-flag for the given element. | |
Called By | ||
Calls | ELEMENT.BIT-FLAG, ERROR, FIND, VARIANT.ELEMENTS and VARIANT.NAME | |
Location |
(GET-ELEMENT-NUMBER VARIANT ELEMENT) [function] |
Description | Returns the numeric index for the given element. | |
Called By | ||
Calls | ELEMENT.NUMBER, ERROR, FIND, VARIANT.ELEMENTS and VARIANT.NAME | |
Location |
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 | ||
Location |
(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 | ||
Location |
(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 |
(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 | ||
Location |
((SETF GET-FLOOR-TYPE) FLOOR ID) [function] |
Description | Adds a floor-type with given id to the appropriate table. | |
Called By | ||
Calls | ||
Location |
(GET-FRAME-GFX-TILES? KEY TYPE) [function] |
Called By | ||
Calls | ORG.LANGBAND.FFI:C-GET_FRAME-GFX-TILES | |
Location |
(GET-GENDER-NAME PLAYER) [function] |
Description | Returns a string with the name of the gender. | |
Called By | ||
Calls | ||
Location |
(GET-HIGH-SCORES VARIANT FNAME) [method] |
Calls | BINARY-TYPES:WITH-BINARY-FILE, MAKE-INSTANCE, NREVERSE, PATHNAME, PROBE-FILE and STR | |
Location |
(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 | ||
Location |
((SETF GET-ID) VALUE OBJECT) [generic] |
Description | Sets the tring id for object/monster/whatever. | |
Location |
(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 | ||
Location |
((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 | ||
Location |
(GET-ITEM-TABLE DUNGEON PLAYER WHICH-TABLE &KEY X Y) [generic] |
Description | Returns item-table or NIL. | ||||||||||||||||
Called By |
| ||||||||||||||||
Location |
(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 |
(GET-KEY-OPERATIONS) [function] |
Description | Returns an alist of keys and their operations. | |
Called By | ||
Calls | ||
Location |
(GET-LAST-CONSOLE-LINE &OPTIONAL (TERM -1)) [function] |
Called By | DISPLAY-HOUSE, PAUSE-LAST-LINE!, PRINT-NOTE! and SHOW-MESSAGES | |
Calls | ||
Location |
(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 | ||
Calls | FBOUNDP, FDEFINITION, FIND-PACKAGE, FIND-SYMBOL and SYMBOL-NAME | |
Location |
(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 | ||
Location |
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 |
(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 | ||
Location |
(GET-LIST-OF-REDRAWS CREATURE) [function] |
Description | Returns a list of active redraw-flags. | |
Calls | ||
Location |
(GET-LIST-OF-UPDATES CREATURE) [function] |
Description | Returns a list of active update-flags. | |
Calls | ||
Location |
(GET-MELEE-ATTACK-SKILL VARIANT CREATURE) [generic] |
Description | Returns the attack-skill of the creature. | |
Location |
(GET-MKIND-ALLOC-TABLE VARIANT LEVEL) [generic] |
Description | Returns an allocation table for monster-kinds for the given variant and given level. | |
Location |
(GET-MKIND-TABLE VARIANT LEVEL) [generic] |
Description | Returns appropriate monster-kind table for variant and level. | |
Location |
(GET-MONSTER-KIND VARIANT ID) [generic] |
Description | Returns a monster-kind with given id for given variant. | |
Called By | ||
Location |
(GET-MONSTER-KIND-BY-LEVEL VARIANT LEVEL &KEY DEPTH) [generic] |
Description | Returns a monster-kind or NIL. | |
Location |
(GET-MONSTER-KNOWLEDGE PLAYER MONSTER) [function] |
Called By | ||
Calls | (SETF GETHASH), AMON.KIND, GET-ID, GETHASH, MAKE-INSTANCE and PLAYER.MONSTER-KNOWLEDGE | |
Location |
(GET-MONSTER-LIST VARIANT &KEY SORT-KEY PREDICATE) [generic] |
Description | Returns a list of monsters for the given variant. | |
Called By | ||
Location |
(GET-MONSTER-LIST (VAR-OBJ VARIANT) &KEY (SORT-KEY #'GET-ID) (PREDICATE #'STRING<)) [method] |
Calls | ||
Location |
(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 | ||
Location |
(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 |
(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 |
(GET-OBJECT-KIND-BY-LEVEL VARIANT LEVEL &KEY DEPTH) [generic] |
Description | Returns an object-kind or NIL. | |
Location |
(GET-OBJECT-KNOWLEDGE PLAYER OBJECT) [function] |
Called By | ||
Calls | (SETF GETHASH), AOBJ.KIND, GET-ID, GETHASH, MAKE-INSTANCE and PLAYER.OBJECT-KNOWLEDGE | |
Location |
(GET-OBJECT-LIST &KEY (VAR-OBJ *VARIANT*) (LEVEL *LEVEL*)) [function] |
Description | returns a fresh list. Remove me! | |
Called By | ||
Calls | ||
Location |
(GET-OFFER OBJECT SITUATION) [generic] |
Description | Returns a number with an offered price for an object in a certain situation. | |
Called By | ||
Location |
(GET-OKIND-ALLOC-TABLE VARIANT LEVEL) [generic] |
Description | Returns the object-kind allocation table for the given variant and level. | |
Location |
(GET-OKIND-TABLE VARIANT LEVEL) [generic] |
Description | Returns the object-kind table for the given variant and level. | |
Called By | ||
Location |
(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 |
(GET-OLD-PLAYER-INFO (VARIANT VARIANT) (PLAYER PLAYER) &KEY (REUSE-OBJECT NIL)) [method] |
Calls | ||
Location |
(GET-OWNER ID &OPTIONAL (VAR-OBJ *VARIANT*)) [function] |
Description | Returns an owner (non-activated) or NIL. | |
Calls | ||
Location |
(GET-POWER-OF-ATTACK VARIANT ATTACK-KIND) [generic] |
Description | Returns a non-neg integer for how powerful the attack is. | |
Location |
(GET-PRICE OBJECT SITUATION) [generic] |
Description | Returns a number with the price for the object in the given situation. | |
Called By | ||
Location |
(GET-PRICE (OBJECT ACTIVE-OBJECT) (STORE STORE)) [method] |
Calls | AOBJ.KIND and OBJECT.COST | |
Location |
(GET-RACE-NAME PLAYER) [function] |
Description | Returns a string with the name of the race. | |
Called By | ||
Calls | PLAYER.RACE and RACE.NAME | |
Location |
(GET-RACES-AS-A-LIST VARIANT) [function] |
Description | Returns a fresh list of all races. | |
Called By | ||
Calls | ||
Location |
(GET-RANGED-ATTACK-SKILL VARIANT CREATURE) [generic] |
Description | Returns the attack-skill of the creature. | |
Location |
(GET-REGISTERED-VARIANTS) [function] |
Description | Returns a list of ids to registered variants. | |
Called By | ||
Location |
(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 |
(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 |
((SETF GET-RESISTANCE-TABLE) VALUE OBJECT) [generic] |
Description | Sets the resistance-table for a complex creature, e.g the player. | |
Location |
(GET-ROOM ID) [function] |
Description | Returns the constructor to build the given room, or NIL. | |
Called By | ||
Calls | ||
Location |
(GET-SEARCH-SKILL VARIANT CREATURE) [generic] |
Description | Returns the attack-skill of the creature. | |
Called By | ||
Location |
(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 |
((SETF GET-SETTING) VALUE VARIANT KEY) [generic] |
Description | Sets the setting identified by KEY for the VARIANT to VALUE. | |
Called By | ||
Location |
((SETF GET-SETTING) SETTING (VARIANT VARIANT) KEY) [method] |
Calls | (SETF GETHASH), KEYWORDP and WARN | |
Location |
(GET-SETTINGS-OBJ ID) [function] |
Description | Returns a settings-table by id. | |
Called By | ACTIVATE-OBJECT, DEFINE-SETTINGS and INTERACTIVE-SAVEFILE-SELECT | |
Calls | ||
Location |
(GET-STAT-NUM-FROM-SYM SYM) [function] |
Description | Improve later.. | |
Calls | FIND, STAT.NUMBER and VARIANT.STATS | |
Location |
(GET-STAT-OBJ VARIANT KEY) [function] |
Called By | ||
Calls | FIND and VARIANT.STATS | |
Location |
(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 | ||
Calls | ALPHANUMERICP, COERCE, MAKE-STRING, NREVERSE, PUT-COLOURED-LINE!, PUT-COLOURED-STR!, READ-ONE-CHARACTER, REVERSE, SET-CURSOR-TO and WARN | |
Location |
(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 |
(GET-TACTICAL-BID AI-STRATEGY CREATURE TACTIC BID-OBJ) [generic] |
Description | Makes a bid for the given tactic in the bid object. | |
Location |
(GET-TARGET-AT-COORDINATE DUNGEON X Y) [function] |
Called By | ||
Calls | CAVE-COORD, CAVE-MONSTERS, LOCATION-X, LOCATION-Y and MAKE-TARGET | |
Location |
(GET-TITLE-FOR-LEVEL CLASS LEVEL) [function] |
Description | Returns the title for a given class of the given level. | |
Called By | ||
Calls | CLASS.TITLES and INT-/ | |
Location |
(GET-VARIANT-INFO ID) [function] |
Description | Returns variant-info that's tregistered for the given id. | |
Calls | ||
Location |
(GET-VISUAL-PROJECTILE OBJ) [generic] |
Description | Returns a visual-projectile object for the given object or NIL. | |
Location |
(GET-VISUAL-STATE VARIANT POS) [function] |
Description | Asks for the state at visual position POS, returns a state or NIL. | |
Calls | ||
Location |
(GET-WINDOW KEY) [function] |
Description | Returns a WINDOW object for a given key, or will signal an ERROR | |
Called By | ||
Calls | ||
Location |
((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 |
(SETF GOBJ-TABLE.OBJ-TABLE-BY-LVL)
((SETF GOBJ-TABLE.OBJ-TABLE-BY-LVL) (OBJ GAME-OBJ-TABLE)) [function] |
Called By | ||
Location |
(HALT-MUSIC) [function] |
Description | Tries to stop any music playing. | |
Calls | ORG.LANGBAND.FFI:C-HALT-MUSIC | |
Location |
(HALT-SOUND-EFFECTS &OPTIONAL (CHANNEL -1)) [function] |
Description | Tries to stop any music playing. | |
Calls | ORG.LANGBAND.FFI:C-HALT-SOUND-EFFECTS | |
Location |
(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 | ||
Location |
(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 |
(HANDLE-PLAYER-UPDATES! (VARIANT VARIANT) (PLAYER PLAYER) (OLD OLD-PLAYER-INFO)) [method] |
Calls | ||
Location |
(HANDLE-TURN VARIANT CREATURE ACTIVITY) [generic] |
Description | For creatures doing a specific activity, handle a turn. | |
Location |
(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 |
(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 |
(HAS-INFORMATION? KEY &KEY (VARIANT *VARIANT*)) [function] |
Description | Returns T if there is information for the given key. | |
Calls | ||
Location |
(HOME-LANGBAND-PATH) [function] |
Description | Returns the path (as a string, not pathname) to the langband-dir in the home-dir. | |
Called By | ||
Calls | CONCATENATE, IGNORE-ERRORS, LBSYS/ENSURE-DIR-NAME and LBSYS/GETENV | |
Location |
(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 | ||
Location |
(IDX-VALUE IDX) [function] |
Description | Returns value stored in an index on the C-side. | |
Calls | ORG.LANGBAND.FFI:C-GET-IDX-VALUE | |
Location |
((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 |
(IMAGE-EXISTS? NAME) [function] |
Description | Checks if given filename for an image actually exists. | |
Called By | ||
Calls | ||
Location |
(IN-BOUNDS-FULLY? DUNGEON X Y) [function] |
Description | Checks that the coordinate is well within the dungeon | |
Called By | ||
Calls | ||
Location |
(IN-BOUNDS? DUNGEON X Y) [function] |
Description | Checks that the coordinate is well within the dungeon | |
Called By | ||
Calls | ||
Location |
(INIT-ANIMATION! ANIMATION BASE-TICK) [function] |
Description | Inits the animation with the starting tick. | |
Calls | ||
Location |
(INIT-SOUND-SYSTEM& SIZE) [function] |
Called By | ||
Calls | MAKE-ARRAY and ORG.LANGBAND.FFI:C-INIT-SOUND-SYSTEM& | |
Location |
(INITIALISE-CHARACTER-CLASS! VARIANT CHARACTER-CLASS KEYWORD-ARGS) [generic] |
Description | Used to initialise a character-class with arguments given to define. | |
Called By | ||
Location |
(INITIALISE-CHARACTER-CLASS! (VAR-OBJ VARIANT) (MY-CLASS CHARACTER-CLASS) KWD-ARGS) [method] |
Calls | ||
Location |
(INITIALISE-CHARACTER-RACE! VARIANT CHARACTER-CLASS KEYWORD-ARGS) [generic] |
Description | Used to initialise a character-class with arguments given to define. | |
Called By | ||
Location |
(INITIALISE-CHARACTER-RACE! (VAR-OBJ VARIANT) (RACE CHARACTER-RACE) KEYWORD-ARGS) [method] |
Calls |
| |||||||||||||||||||||||||||||||
Location |
(INITIALISE-FLOORS& VARIANT) [generic] |
Description | Initialises floors for the given variant. | |
Location |
(INITIALISE-MONSTERS& VARIANT) [generic] |
Description | Initialises monsters for the given variant. | |
Location |
(INITIALISE-OBJECTS& VARIANT) [generic] |
Description | Initialises objects for the given variant. | |
Location |
(INSTALL-UI-THEME& THEME) [function] |
Description | Tries to install given ui-theme as the wanted ui-theme to use. | |
Called By | ||
Location |
(INSTALL-WINDOW-FONT! WINDOW THEME) [function] |
Description | Tries to install a font in the window, might fall back on theme value. | |||||||||||||
Called By | ||||||||||||||
Calls |
| |||||||||||||
Location |
(INT-/ A B) [macro] |
Description | Integer division, as in C. | |||||||||||||||||||||||||||||||||||||
Called By |
| |||||||||||||||||||||||||||||||||||||
Location |
(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 |
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 | ||
Location |
INTERACTIVE-CREATION-OF-PLAYER
(INTERACTIVE-CREATION-OF-PLAYER (VARIANT VARIANT)) [method] |
Calls |
| ||||||||||||||||||||||||||||||||||||||||||||||
Location |
(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 |
(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 | ||
Calls | ||
Location |
(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 |
(INTERACTIVE-TARGETING! DUNGEON PLAYER) [function] |
Calls |
| |||||||||||||||||||||||||
Location |
(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 |
(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 |
(INTERACTIVE-VARIANT-SELECT) [function] |
Description | Returns id to a selected variant, or NIL on failure. | |
Called By | ||
Calls | CLEAR-WINDOW-FROM, ERROR, GET-FRAME-HEIGHT, GET-REGISTERED-VARIANTS, INTERACTIVE-ALT-SEL and WARN | |
Location |
(INTERACTIVE-WEAR-ITEM! DUNGEON PLAYER) [function] |
Description | Puts something in an equipment-slot. | |
Calls | ||
Location |
(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 |
(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 | ||
Location |
(INVOKE-ON-DUNGEON-MONSTERS DUNGEON FUN) [function] |
Description | Calls FUN with TWO arguments: the dungeon object the monster | |
Calls | ||
Location |
(IS-ARTIFACT? OBJECT) [generic] |
Description | Returns T if the object is an artifact, NIL otherwise. | |
Called By | ||
Location |
(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 |
(IS-FEMALE? CREATURE) [function] |
Description | Is the creature female, if so return T. | |
Called By | ||
Calls | ||
Location |
(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 | ||
Location |
(IS-LEGAL-EFFECT? VARIANT EFFECT) [function] |
Description | Returns T if the given effect is legal. | |
Called By | ||
Calls | FIND and VARIANT.EFFECTS | |
Location |
(IS-LEGAL-ELEMENT? VARIANT ELEMENT) [function] |
Description | Returns T if the given element is legal. | |
Called By | ||
Calls | FIND and VARIANT.ELEMENTS | |
Location |
(IS-LEGAL-STAT? VARIANT SYM) [function] |
Description | Checks if SYM names a legal stat for the variant. | |
Calls | FIND and VARIANT.STATS | |
Location |
(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 |
(IS-MAGICAL? THING) [generic] |
Description | Returns T if the 'thing' is magical, return NIL otherwise. | |
Location |
(IS-MALE? CREATURE) [function] |
Description | Is the creature male, if so return T. | |
Called By | IS-MALE? and PRINT-TOMB | |
Calls | ||
Location |
(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 |
(IS-OBJECT-KNOWN? (OBJECT ACTIVE-OBJECT)) [method] |
Calls | AOBJ.IDENTIFY, AOBJ.KIND, BIT-FLAG-SET?, OBJECT.AWARE and OBJECT.EASY-KNOW | |
Location |
(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 |
(IS-RESTING? CREATURE) [function] |
Description | Returns T if the creature is resting. | |
Called By | ||
Calls | ||
Location |
(IS-TARGETING? SOURCE POSS-TARGET) [function] |
Description | Checks if the possible target is targeted by the source. | |
Called By | ||
Calls | ||
Location |
(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 |
(ITEM-TABLE-VERIFY-KEY TABLE KEY) [generic] |
Description | Returns T when key is OK, and NIL when it is not. | |
Location |
(ITEM-TABLE-VERIFY-KEY TABLE KEY) [method] |
Calls | A2I, FIND, ITEMS.CUR-SIZE and ITEMS.OBJS | |
Location |
(KBD-EVENT.KEY (OBJ KEYBOARD-EVENT)) [function] |
Called By | FETCH-EVENT, GET-AND-PROCESS-COMMAND! and READ-ONE-CHARACTER | |
Location |
(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 |
(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 | ||
Calls | ||
Location |
(LBSYS/CLASS-NAME OBJ) [function] |
Description | Returns a string with class name for an object. | |||||||||||||||||||||||||||||||||||||||||||
Called By |
| |||||||||||||||||||||||||||||||||||||||||||
Calls | CLASS-NAME and CLASS-OF | |||||||||||||||||||||||||||||||||||||||||||
Location |
(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 | ||
Calls | ||
Location |
(LBSYS/ENSURE-DIR-NAME STR) [function] |
Description | Makes sure the str has a / suffix | |
Called By | ||
Calls | CHAR, CONCATENATE and ERROR | |
Location |
(LBSYS/GARBAGE-COLLECT &KEY (GLOBAL NIL)) [function] |
Description | Tries to enforce a garbage collect. | |
Called By | GAME-LOOP& and QUIT-GAME& | |
Calls | GC | |
Location |
(LBSYS/GET-CURRENT-DIRECTORY) [function] |
Description | The default directory. | |
Called By | ||
Calls | DEFAULT-DIRECTORY | |
Location |
(LBSYS/GETENV VAR) [function] |
Description | Return the value of the environment variable. | |
Called By | ||
Location |
(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 | ||
Calls | ENSURE-DIRECTORIES-EXIST, MERGE-PATHNAMES, PATHNAME and WARN | |
Location |
(LEGAL-COORD? DUNGEON X Y) [function] |
Called By | %DISTRIBUTE-DECOR!, %DISTRIBUTE-MONSTERS!, %DISTRIBUTE-OBJECTS!, CAREFUL-RUN-OK?, MOVE-OK? and RUN-OK? | |
Calls | ||
Location |
(LET-FLOOR-CARRY! DUNGEON X Y OBJ) [function] |
Calls | (SETF CAVE-OBJECTS), CAVE-OBJECTS, ITEM-TABLE-ADD! and MAKE-FLOOR-CONTAINER | |
Location |
(LEVEL-READY? LEVEL) [generic] |
Description | Returns T if the level is ready for use, returns NIL otherwise. | |
Location |
(LIGHT-SPOT! DUNGEON X Y) [function] |
Description | lighting up the spot.. | |
Called By | ||
Calls | DRAW-TO-MAP, GET-FRAME-HEIGHT, GET-FRAME-WIDTH, PAINT-COORD, PLAYER.VIEW-X and PLAYER.VIEW-Y | |
Location |
(LOAD-BINARY-ARRAY LEN TYPE STR) [function] |
Description | Tries to read an array from the stream STR. | |
Calls | ||
Location |
(LOAD-BINARY-STRING STREAM) [function] |
Description | Tries to load a string from the given stream. | |
Called By | ||
Calls | BINARY-TYPES:READ-BINARY and BINARY-TYPES:READ-BINARY-STRING | |
Location |
(LOAD-GAME-DATA FNAME) [function] |
Description | Tries to load the data-file fname. | |
Called By | ||
Calls | GAME-DATA-PATH and LOAD | |
Location |
(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 |
(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 |
(LOAD-MUSIC FNAME) [function] |
Description | Tries to load the fname. | |
Called By | ||
Calls | CONCATENATE, ORG.LANGBAND.FFI:C-LOAD-MUSIC-FILE&, PROBE-FILE, USING-SOUND? and VECTOR-PUSH | |
Location |
(LOAD-OLD-ENVIRONMENT&) [function] |
Description | Returns three values with an old environment. | |
Called By | ||
Location |
(LOAD-SAVEHEADER FNAME) [function] |
Description | Tries to load a saveheader for the given file. | |
Called By | ||
Calls | BINARY-TYPES:WITH-BINARY-FILE, LOAD-OBJECT, MAKE-INSTANCE, PATHNAME, PROBE-FILE and S | |
Location |
(LOAD-SCALED-IMAGE& FNAME IDX WID HGT) [function] (LOAD-SCALED-IMAGE& FNAME IDX WID HGT) [function] |
(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 |
(LOAD-USER-PREFERENCE-FILE&) [function] |
Called By | ||
Calls | FIND-PACKAGE, HOME-LANGBAND-PATH, LOAD, MERGE-PATHNAMES, PATHNAME and PROBE-FILE | |
Location |
(LOAD-USER-VARIANT-PREFS& VARIANT) [function] |
Called By | ||
Calls | FIND-PACKAGE, LOAD, MERGE-PATHNAMES, PATHNAME, PROBE-FILE and VARIANT-HOME-PATH | |
Location |
(LOAD-VARIANT& ID &KEY (VERBOSE T)) [function] |
Description | Tries to load a variant. | |
Called By | ||
Calls | ERROR, FORMAT-NOTE!, FUNCALL, FUNCTIONP and GETHASH | |
Location |
(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 |
(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 |
(LOAD-VARIANT-OBJECT (VARIANT VARIANT) (STREAM L-BINARY-STREAM)) [method] |
Calls | BINARY-TYPES:READ-BINARY, FILED-VARIANT-DATA, LANG.STREAM and LOAD-OBJECT | |
Location |
(LOADABLE-VALUE VAL) [function] |
Description | Return VAL in a form that can be LOADed into Lisp again. | |
Called By | ||
Calls | ||
Location |
(LOCATION-X OBJ) [generic] |
Description | Generic function for all things that have a location in the game at some point. | |
Location |
((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 |
(LOCATION-Y OBJ) [generic] |
Description | Generic function for all things that have a location in the game at some point. | |
Location |
((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 |
(LOOKUP-UI-THEME-VAR THEME VAR) [function] |
Description | tries to lookup a theme-variable. | |
Called By | ||
Calls | ||
Location |
(MAKE-CONTAINER SIZE &OPTIONAL (TYPE 'ITEMS-IN-CONTAINER)) [function] |
Description | Returns appropriate container.. | |
Called By | ||
Calls | ||
Location |
(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 | ||
Location |
(MAKE-EQUIPMENT-SLOTS VARIANT) [function] |
Description | Returns appropriate equipment object. | |
Called By | ||
Calls | ||
Location |
(MAKE-EVENT ID TYPE FUNCTION &KEY (STATE NIL) (RETURN-ACTION :REMOVE-EVENT)) [function] |
Description | Returns an event-object that can be used. | |
Called By | ||
Calls | ||
Location |
(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 | ||
Location |
(MAKE-GENDER &KEY ID SYMBOL NAME WIN-TITLE) [function] |
Description | Creates an instance of type GENDER and returns it. | |
Called By | ||
Calls | ||
Location |
(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 |
(MAKE-STAT-ARRAY VARIANT) [generic] |
Description | Returns an array suitable for holding all the stats. | |
Called By | ||
Location |
(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 |
(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 | ||
Calls | ATAN, ERROR, IS-WINDOW?, MAKE-INSTANCE, NON-NEGATIVE-INTEGER? and POSITIVE-INTEGER? | |
Location |
(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 | ||
Calls | ||
Location |
(MAX-CAP MAX VAL) [function] |
Description | If val is less than max, return val, else return max. | |
Called By | ||
Location |
(MELEE-HIT-AC? THE-TARGET COMBAT-SKILL THE-AC VISIBLE-P) [function] |
Description | Helper-function that checks if something was a hit. | |
Calls | ||
Location |
(MELEE-INFLICT-DAMAGE! ATTACKER TARGET THE-ATTACK) [generic] |
Description | inflict some damage after a successful hit. | |
Called By | ||
Location |
(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 |
(MIN-CAP MIN VAL) [function] |
Description | If val is greater than min, return val, else return min. | |
Called By | ||
Location |
(MISSILE-HIT-CREATURE? ATTACKER TARGET MISSILE-WEAPON MISSILE) [generic] |
Description | Returns T if the missile hit the target, NIL otherwise. | |
Called By | ||
Location |
(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 |
(MISSILE-INFLICT-DAMAGE! ATTACKER TARGET MISSILE-WEAPON MISSILE) [generic] |
Description | Rolls and applies damage to the target. | |
Location |
(MISSILE-INFLICT-DAMAGE! (ATTACKER PLAYER) (TARGET ACTIVE-MONSTER) MISSILE-WEAPON MISSILE) [method] |
Calls | DEDUCT-HP! and ROLL-DICE | |
Location |
(MODIFY-ATTRIBUTE! KEY TABLE NEW-VALUE) [function] |
Description | Tries to change a named creature-attribute. | |
Called By | ||
Calls | ||
Location |
(MODIFY-CREATURE-STATE! CREATURE STATE &KEY NEW-VALUE ADD SUBTRACT) [generic] |
Description | Modifies the creature-state appropriately. | |
Called By | ||
Location |
(MODIFY-GOLD! CREATURE AMOUNT) [generic] |
Description | Modifies the amount of gold this creature carries. | |
Called By | ||
Location |
(MODIFY-SATIATION! PLAYER NEW-FOOD-AMOUNT) [function] |
Called By | APPLY-USUAL-EFFECTS-ON-USED-OBJECT!, APPLY-USUAL-EFFECTS-ON-USED-OBJECT! and PROCESS-WORLD& | |
Calls | %GET-HUNGERLVL, (SETF PLAYER.SATIATION), ASK-FOR-REDRAW!, ASK-FOR-UPDATE!, PLAYER.SATIATION and PRINT-MESSAGE! | |
Location |
(MODIFY-VISUAL-STATE! VARIANT KEY NEW-VALUE) [function] |
Description | Activates the display of a visual state. | |
Called By | ||
Calls | (SETF VISUAL-STATE.ACTIVE), VARIANT.VISUAL-STATES and VISUAL-STATE.KEY | |
Location |
(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 | ||
Location |
(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 |
(MOVE-OK? DUNGEON PLAYER X Y) [function] |
Description | Helper function to determine if a square is legal to move to. | |
Calls | ||
Location |
(MOVE-PLAYER! DUNGEON PLAYER DIRECTION) [function] |
Description | Moves the player, in a direction, if possible. The direction is a number from the keypad. | |
Called By | ||
Calls | ||
Location |
(MYSTRCAT X Y) [function] |
Description | Basically catenates strings and tries to stringify arguments to be sure | |
Calls | ||
Location |
(NEED-FLAVOUR? VARIANT OBJECT) [generic] |
Description | Does this object need to be flavoured before use? (t or nil) | |
Location |
(NEW-PLAYER-SPOT! DUNGEON PLAYER) [function] |
Calls | CAN-PLACE?, CAVE-ICKY?, CAVE-OBJECTS, DUNGEON.HEIGHT, DUNGEON.WIDTH, PLACE-PLAYER! and RAND-RANGE | |
Location |
(NEXT-TO-WALLS DUNGEON X Y) [function] |
Description | Returns number of close walls in the four dirs. | |
Called By | ||
Calls | %IS-WALL?, BIT-FLAG-SET?, CAVE-DECOR, CAVE-FLOOR and FLOOR.FLAGS | |
Location |
(NON-NEGATIVE-INTEGER? OBJ) [function] |
Description | Returns T if obj is an integer and >= 0. | ||||||||||||||||||||||||||||
Called By |
| ||||||||||||||||||||||||||||
Location |
(NONBOOLSYM? SYM) [function] |
Called By | DEFINE-ATTACK-DESCRIPTION, INSTALL-WINDOW-FONT!, PLAY-GAME&, PROCESS-SUBWINDOW-DATA! and READ-MAP | |
Location |
(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 | ||
Calls | ||
Location |
(NOTE-SPOT! DUNGEON X Y) [function] |
Description | noting the spot. | |
Called By | ||
Calls | (SETF AOBJ.MARKED), BIT-FLAG-ADD!, BIT-FLAG-SET?, CAVE-COORD, CAVE-OBJECTS, COORD.FLAGS, COORD.FLOOR, FLOOR.FLAGS and ITEMS.OBJS | |
Location |
(OBJECT.NAME (OBJ ACTIVE-OBJECT)) [method] |
Calls | AOBJ.KIND and OBJECT.NAME | |
Location |
(ON-CREATURE-DEATH VARIANT CREATURE KILLER) [generic] |
Description | Called when a non-player creature dies. | |
Location |
(ON-DESTROY-OBJECT VARIANT CREATURE OBJECT) [generic] |
Description | Called whenever the creature destroys something. | |
Called By | ||
Location |
(ON-DESTROY-OBJECT (VARIANT VARIANT) (PLAYER PLAYER) (OBJ ACTIVE-OBJECT)) [method] |
(ON-DROP-OBJECT VARIANT CREATURE OBJECT) [generic] |
Description | Called whenever the creature drops something and it has been put on the ground. | |
Called By | ||
Location |
(ON-GAME-START VARIANT CREATURE) [generic] |
Description | Is called just before the game starts (from birth or savefile). | |
Called By | ||
Location |
(ON-MOVE-TO-COORD VARIANT CREATURE X Y) [generic] |
Description | Called whenever the player actively moves to a new coordinate. | |
Called By | ||
Location |
(ON-NEW-PLAYER VARIANT CREATURE) [generic] |
Description | Is called when the creature/player has just been created. | |
Called By | ||
Location |
(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 | ||
Location |
(ON-PLAYER-DEATH VARIANT CREATURE) [generic] |
Description | Called when the player has just died. | |
Location |
(ON-TAKE-OFF-OBJECT VARIANT CREATURE OBJECT) [generic] |
Description | Called whenever the creature takes off a worn object. | |
Called By | ||
Location |
(ON-TAKE-OFF-OBJECT (VARIANT VARIANT) (PLAYER PLAYER) (OBJ ACTIVE-OBJECT)) [method] |
(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 | ||
Location |
(OPEN-DOOR! DUNGEON X Y) [function] |
Description | hackish, fix me later.. | |
Called By | ||
Calls | CAVE-DECOR, DECOR-OPERATION, IS-CLOSED-DOOR?, LIGHT-SPOT! and PLAY-SOUND | |
Location |
(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 | ||
Location |
(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 |
(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 | ||
Calls | INT-/, ORG.LANGBAND.FFI:C-GET-IMAGE-HEIGHT, ORG.LANGBAND.FFI:C-GET-IMAGE-WIDTH and REFRESH-WINDOW | |
Location |
(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 | ||
Calls | ||
Location |
(PAINT-WINDOW WIN) [function] |
Called By | %SWITCH-IN-WINDOW, ADVANCE-MESSAGE-SYS!, CLEAR-WINDOW, DISPLAY-VISUAL-STATES, INVOKE-IN-DIALOGUE, PRINT-MAP and SWITCH-TO-FULL-FRAME& | |
Calls | ORG.LANGBAND.FFI:C-FLUSH-COORDS!, WINDOW.HEIGHT, WINDOW.NUM-ID, WINDOW.TILE-HEIGHT, WINDOW.TILE-WIDTH and WINDOW.WIDTH | |
Location |
(PARSE-AND-ROLL-DICE STR) [function] |
Description | Parses and rolls the dice-str. | |
Called By | ||
Calls | PARSE-DICE and ROLL-DICE | |
Location |
(PARSE-DICE STR) [function] |
Description | Parses a dice and returns a CONS with num-dice and base-dice. | |
Called By | ||
Calls | PARSE-INTEGER, POSITION and SUBSEQ | |
Location |
(PARSE-DMG-DESC DESC) [function] |
Description | Parses a dmg description and returns the values. | |
Calls | READ-FROM-STRING and WARN | |
Location |
(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 | ||
Calls | ||
Location |
(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 | ||
Location |
(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 | ||
Calls | ||
Location |
(PLACE-DOOR! VARIANT DUNGEON X Y DOOR) [generic] |
Description | Places a door at the given coord. | |
Called By | ||
Location |
(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 |
(PLACE-GOLD! VARIANT DUNGEON X Y) [generic] |
Description | Places some gold in the dungeon at x,y. | |
Location |
(PLACE-MONSTER! VARIANT DUNGEON PLAYER X Y SLEEPING GROUP) [generic] |
Description | Places a monster on the given coordinate. | |
Location |
(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 |
(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 |
(PLACE-OBJECT! VARIANT DUNGEON X Y GOOD-P GREAT-P) [generic] |
Description | Place an object at the given coordinate. | |
Location |
(PLACE-RANDOM-DOOR! VARIANT DUNGEON X Y) [function] |
Description | Places a door at the given coordinate | |
Called By | ||
Calls | %RETRIEVE-DOOR, (SETF DECOR.VISIBLE?), (SETF DOOR.BROKEN?), (SETF DOOR.LOCK), (SETF DOOR.STUCK), PLACE-DOOR!, RANDINT and RANDOM | |
Location |
(PLACE-RANDOM-TRAP! VARIANT DUNGEON X Y) [generic] |
Description | Creates a fitting and random trap, and places the trap at the given coord. | |
Location |
(PLACE-RANDOM-TRAP! (VARIANT VARIANT) DUNGEON X Y) [method] |
Calls | CAN-PLACE?, FIND-RANDOM-TRAP, IN-BOUNDS?, IS-TRAP?, PLACE-TRAP! and WARN | |
Location |
(PLACE-SINGLE-MONSTER! DUNGEON PLAYER MON X Y SLEEPING) [function] |
Description | places a single monster MON at (X,Y) in dungeon DUN. | |
Calls | ||
Location |
(PLACE-TRAP! VARIANT DUNGEON X Y TRAP) [generic] |
Description | Places a trap at the given coord. | |
Called By | ||
Location |
(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 |
(PLAY-GAME&) [function] |
Description | Should not be called directly. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Called By | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Calls |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Location |
(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 |
(PLAYER-IS-AT? PLAYER X Y) [function] |
Description | Checks if the player is at x,y | |
Called By | ||
Calls | LOCATION-X and LOCATION-Y | |
Location |
(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 | ||
Calls | ||
Location |
(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 |
(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 | ||
Calls | ||
Location |
(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 |
(PRINT-BASIC-FRAME VARIANT DUNGEON PLAYER) [generic] |
Description | Prints out the basic frame.. | |
Location |
(PRINT-BASIC-FRAME (VARIANT VARIANT) DUNGEON PLAYER) [method] |
Calls | BASIC-FRAME-SHOWN?, PRINT-DEPTH and TRIGGER-PRINTFIELD-HOOKS& | |
Location |
(PRINT-DEPTH VARIANT LEVEL SETTING) [generic] |
Description | fix me later.. currently just prints depth. | |
Location |
(PRINT-EXTRA-FRAME-CONTENT VARIANT DUNGEON PLAYER) [generic] |
Description | Prints extra frame content. | |
Location |
(PRINT-HUNGER VARIANT PLAYER SETTING) [generic] |
Description | Tries to print satiation/hunger state. | |
Called By | ||
Location |
(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-MAP DUNGEON PLAYER) [function] |
Description | Prints a map of the given dungeon to the screen | |
Called By | ||
Calls | GET-FRAME-HEIGHT, GET-FRAME-WIDTH, PAINT-WINDOW, PLAYER.VIEW-X and PLAYER.VIEW-Y | |
Location |
(PRINT-MESSAGE! MSG &OPTIONAL (ATTR +TERM-WHITE+)) [function] |
Description | If msg is nil, things are flushed. | ||||||||||||||||||||||||||||||||||
Called By |
| ||||||||||||||||||||||||||||||||||
Calls | (SETF CDR), (SETF MSGHANDLER.INCOMING-MSGS), ERROR, MAKE-MESSAGE and MSGHANDLER.INCOMING-MSGS | ||||||||||||||||||||||||||||||||||
Location |
(PRINT-MISC-INFO VARIANT PLAYER SETTING) [generic] |
Description | Tries to print misc-info about a player to a clear window. | |
Location |
(PRINT-MISC-INFO (VARIANT VARIANT) (PLAYER PLAYER) SETTING) [method] |
Calls | CLEAR-WINDOW, FORMAT, PAUSE-LAST-LINE! and PUT-COLOURED-STR! | |
Location |
(PRINT-NOTE! MSG &OPTIONAL (ATTR +TERM-WHITE+) &KEY (ROW -1)) [function] |
Description | Prints a centred note on the last line. | |
Called By | ||
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 |
(PRINT-NUMBER TERM COLOUR NUMBER PADDING ROW COL) [function] |
Calls | GET-WINDOW and WIN/FORMAT | |
Location |
(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 VARIANT PLAYER SETTINGS) [generic] |
Description | Prints a table of resistance that the player has. | |
Location |
(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-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 |
(PRINT-TOMB VARIANT PLAYER) [generic] |
Description | Prints a tomb for the given (dead) player. | |
Location |
(PROCESS-PLAYER! VARIANT DUNGEON PLAYER) [function] |
Description | processes the player in a given turn | |
Called By | ||
Calls | ||
Location |
(PROCESS-SINGLE-MONSTER! VARIANT DUNGEON PLAYER MONSTER) [generic] |
Description | Called when it's the monster's turn to do something. | |
Called By | ||
Location |
(PROCESS-SINGLE-MONSTER! (VARIANT VARIANT) DUNGEON PLAYER MON) [method] |
Calls | AMON.TEMP-ATTRS, ATTR.VALUE, GETHASH and UPDATE-SLEEP-STATUS | |
Location |
(PROCESS-SUBWINDOW-DATA! THEME DATA) [function] |
Called By | |||||||||||||||||||||||
Calls |
| ||||||||||||||||||||||
Location |
(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 |
(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 | ||
Location |
(PRODUCE-CHARACTER-CLASS VARIANT ID NAME) [generic] |
Description | Returns a character-class object. | |
Location |
(PRODUCE-CHARACTER-RACE VARIANT ID NAME) [generic] |
Description | Returns a character-class object. | |
Location |
(PRODUCE-HIGH-SCORE-OBJECT VARIANT PLAYER) [generic] |
Description | Returns a high-score entry for the player. | |
Called By | ||
Location |
(PRODUCE-HIGH-SCORE-OBJECT (VARIANT VARIANT) (PLAYER PLAYER)) [method] |
Calls |
| |||||||||||||||||||||||||||||||||||||
Location |
(PRODUCE-MONSTER-KIND VARIANT ID NAME &KEY THE-KIND) [generic] |
Description | Produces a monster-kind. | |
Called By | ||
Location |
(PRODUCE-MONSTER-KIND (VARIANT VARIANT) ID NAME &KEY THE-KIND) [method] |
Calls | FIND, MAKE-INSTANCE and MAKE-OF-CLASS | |
Location |
(PRODUCE-OBJECT-KIND VARIANT ID NAME &KEY THE-KIND) [generic] |
Description | Produces an object-kind. | |
Called By | ||
Location |
(PRODUCE-PLAYER-OBJECT (VARIANT VARIANT)) [method] |
Calls |
| ||||||||||||||||||||||
Location |
(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 | ||
Calls | BIT-FLAG-SET?, CAVE-FLOOR-BOLD?, CAVE-MONSTERS, GO-DIRECTION, GRID, INT-/ and VECTOR-PUSH | |
Location |
(PROJECTABLE? DUNGEON X1 Y1 X2 Y2) [function] |
Description | Is it projectable from (x1,y1) to (x2,y2) | |
Called By | ||
Calls | CAVE-FLOOR-BOLD?, GRID-X, GRID-Y, MAKE-ARRAY and PROJECT-PATH | |
Location |
(PUT-COLOURED-LINE! COLOUR TEXT COL ROW) [function] |
Description | Erases rest of line and puts a string. | |
Called By | ||
Calls | ||
Location |
(PUT-COLOURED-STR! COLOUR TEXT COL ROW) [function] |
Called By |
| ||||||||||||||||||||||
Calls | |||||||||||||||||||||||
Location |
(PUT-CURSOR-RELATIVE! DUNGEON X Y &OPTIONAL (CURSOR :MAP-CURSOR)) [function] |
Description | Tries to put the cursor relative to the window. | |
Called By | ||
Calls | GET-FRAME-HEIGHT, GET-FRAME-WIDTH, PLAYER.VIEW-X, PLAYER.VIEW-Y and SET-CURSOR-TO | |
Location |
(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 | ||
Location |
(QUERY-FOR-CHARACTER-BASICS! VARIANT THE-PLAYER SETTINGS) [generic] |
Description | Does queries for basic-info (race, class, ..) and alters the player-object. | |
Location |
(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 |
(QUIT-GAME&) [function] |
Description | Tries to clean up a few variables. | |
Called By | ||
Calls | FINISH-OUTPUT, FORMAT, GET-SYSTEM-TYPE, LBSYS/GARBAGE-COLLECT, MAKE-CONDITION, ORG.LANGBAND.FFI:C-CLEANUP-C-SIDE& and SIGNAL | |
Location |
(RAND-ELM SEQ) [function] |
Description | Returns a random element from given sequence. | |
Called By | ||
Calls | ||
Location |
(RANDOM-DIRECTION) [function] |
Description | Returns two values with a random nsew direction | |
Calls | ||
Location |
(READ-ONE-CHARACTER) [function] |
Description | Reads one character from the C-side. | |
Called By | ||
Calls | FETCH-EVENT, INPUT-EVENT.KEYPRESS, INPUT-EVENT.TYPE, KBD-EVENT.KEY and ORG.LANGBAND.FFI:C-FLIP-FRAMEBUFFER | |
Location |
(REDRAW-STUFF VARIANT DUNGEON PLAYER) [generic] |
Description | Redraws stuff based on previously requested redraws. | |
Called By | ||
Location |
(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 |
(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 |
(REGENERATE-HP! CRT PERCENT) [function] |
Description | Tries to regenerate the creature, and includes percent-chance. | |
Called By | ||
Calls | (SETF CURRENT-HP), (SETF PLAYER.FRACTION-HP), ASK-FOR-REDRAW!, CURRENT-HP, EXPT, INT-/, LOGAND, MAXIMUM-HP and PLAYER.FRACTION-HP | |
Location |
(REGISTER-CLASS& CLASS) [function] |
Description | Registers a race in the right places. | |
Called By | ||
Calls | ||
Location |
(REGISTER-EVENT& ID EVENT &KEY (VARIANT *VARIANT*)) [function] |
Description | Registers an event-id and connects it to a function. | |
Called By | ||
Calls | (SETF GETHASH), EVENT.ID, SYMBOL-NAME, VARIANT.EVENT-TYPES and WARN | |
Location |
(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 |
(REGISTER-HELP-TOPIC& VARIANT TOPIC) [function] |
Description | Registers a help-topic with the variant. | |
Called By | ||
Calls | ||
Location |
(REGISTER-IMAGE& VARIANT FNAME IDX) [function] |
Description | Registers an image with a variant. | |
Called By | ||
Calls | ||
Location |
(REGISTER-INFORMATION&) [function] |
Description | Registers a group of information on the format: (register-information key1 info1 key2 info2 ...) | |
Calls | ||
Location |
(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 |
(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 |
(REGISTER-LEVEL-BUILDER! ID BUILDER &OPTIONAL (VAR-OBJ *VARIANT*)) [function] |
Description | Registers a level-builder which must be a function. | |
Called By | ||
Calls | (SETF GETHASH), FUNCTIONP, SYMBOL-NAME and VARIANT.LEVEL-BUILDERS | |
Location |
(REGISTER-RACE& RACE) [function] |
Description | Registers a race in the right places. | |
Called By | ||
Calls | ||
Location |
(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 | ||
Calls | ||
Location |
(REGISTER-TURN-EVENT! VAR-OBJ WANTED-TURN EVENT) [function] |
Description | Adds a turn-event. | |
Calls | ||
Location |
(REGISTER-VARIANT& ID VAR-CONSTRUCTOR &KEY DESC) [function] |
Description | Registers a variant-object. | |
Calls | ||
Location |
(REMOVE-INFORMATION! KEY &KEY (VARIANT *VARIANT*)) [function] |
Description | Returns T if the information existed, NIL if it didn't exist. | |
Calls | ||
Location |
(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 |
(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 |
(RESET-PLAYER-OBJECT! VARIANT PLAYER) [generic] |
Description | Resets all values on the player-object. | |
Location |
(RESET-REDRAW! CREATURE FLAG) [function] |
Description | Turns off the given flag. | |
Called By | ||
Calls | ||
Location |
(RESET-TACTIC-BID! OBJ) [function] |
Called By | ||
Calls | (SETF FACTOR.COST), (SETF FACTOR.DEFENSIVE) and (SETF FACTOR.OFFENSIVE) | |
Location |
(RESET-TACTIC-CHOICE! OBJ) [function] |
Calls | (SETF TACTIC-CHOICE-TACTIC), RESET-TACTIC-BID! and TACTIC-CHOICE-BID | |
Location |
(RESET-UPDATE! CREATURE FLAG) [function] |
Description | Turns off the given flag. | |
Called By | ||
Calls | ||
Location |
(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 |
(ROLL-HITPOINTS-FOR-NEW-LEVEL VARIANT PLAYER) [generic] |
Description | Rolls new hitpoints for a new level for the player, and returns the number. | |
Location |
(ROLL-HITPOINTS-FOR-NEW-LEVEL (VARIANT VARIANT) (PLAYER PLAYER)) [method] |
Calls | CLASS.HIT-DICE, PLAYER.CLASS, PLAYER.RACE, RACE.HIT-DICE and RANDINT | |
Location |
(ROLL-STATS! VARIANT PLAYER) [generic] |
Description | Roll up stats and assign them to the player. | |
Location |
(ROLL-UP-CHARACTER! VARIANT PLAYER) [generic] |
Description | Rolls up a player-object and modifies it appropriately. | |
Location |
(RUN-ALONG-CORRIDOR DUNGEON PLAYER LAST-DIR) [function] |
Description | Determine the appropriate direction to move to continue along a corridor. | |
Called By | ||
Calls | (SETF SVREF), LOCATION-X, LOCATION-Y, MAKE-ARRAY, RANDOM and RUN-OK? | |
Location |
(RUN-IN-DIRECTION DUNGEON PLAYER DIRECTION) [function] |
Description | Tries to run in the given direction. | |
Called By | ||
Calls | (SETF GET-INFORMATION), MOVE-PLAYER!, RUN-ALONG-CORRIDOR and STOP-CREATURE-ACTIVITY | |
Location |
(RUN-LEVEL! LEVEL PLAYER) [function] |
Description | a loop which runs a dungeon level | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Called By | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Calls |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
Location |
(RUN-OK? DUNGEON PLAYER X Y) [function] |
Description | Helper function to determine if a square might be legal to move to. | |
Called By | ||
Calls | ||
Location |
(SATISFIES-OBJ-TYPE? TYPE OBJ) [function] |
Description | Checks if the OBJ satisifies the object-type TYPE. | |
Calls | ||
Location |
(SAVE-BINARY-ARRAY ARR TYPE STR) [function] |
Description | Tries to write the array ARR to the stream STR. | |
Calls | ||
Location |
(SAVE-BINARY-STRING OBJ STREAM) [function] |
Description | Tries to write a var-length string. | |
Calls | ||
Location |
(SAVE-CURRENT-ENVIRONMENT&) [function] |
Description | Attempts to save the environment. | |
Called By | GAME-LOOP& and PLAY-GAME& | |
Calls | ||
Location |
(SAVE-HIGH-SCORE& VARIANT HS FNAME) [generic] |
Description | Saves a given high-score entry to the given high-score file. | |
Location |
(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 |
(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 |
(SETF SAVEHEADER.ENGINE-NUM-VERSION)
((SETF SAVEHEADER.ENGINE-NUM-VERSION) (OBJ SAVEHEADER)) [function] |
(SETF SAVEHEADER.VARIANT-NUM-VERSION)
((SETF SAVEHEADER.VARIANT-NUM-VERSION) (OBJ SAVEHEADER)) [function] |
(SDL-HANDLE-KEY KEY K-EV) [function] |
Description | Translates an incoming key from SDL into a langband key-event K-EV. | |
Called By | ||
Calls | ||
Location |
(SEARCH-AREA! DUNGEON PLAYER) [function] |
Description | Searches nearby grids. | |
Calls | GET-SEARCH-SKILL, LOCATION-X, LOCATION-Y and PLAYER.ENERGY-USE | |
Location |
(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 | ||
Calls | ||
Location |
(SELECT-ITEM DUNGEON PLAYER ALLOW-FROM &KEY PROMPT WHERE SELECTION-FUNCTION) [generic] |
Description | Interactive selection of an item. | |
Called By | ||
Location |
(SELECT-ITEM (DUNGEON DUNGEON) (PLAYER PLAYER) ALLOW-FROM &KEY PROMPT PROMPT-FRAME (WHERE :BACKPACK) SELECTION-FUNCTION) [method] |
Calls | ||
Location |
(SELECT-ITEM-FROM-STORE STORE LOW TOP) [function] |
Description | Reads input from keyboard for selecting an item from a store. | |
Called By | ||
Calls | ||
Location |
(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 |
(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 |
((SETF SETTING-LOOKUP) VALUE SETTING KEY) [function] |
Description | Sets the setting to some value. | |
Calls | ||
Location |
(SHOOT-A-MISSILE DUNGEON SOURCE DESTINATION MISSILE-WEAPON MISSILE &KEY RANGE) [generic] |
Description | Shoots an arrow, queries for direction. | |
Location |
(SHRINK-ARRAY! ARR) [function] |
Description | Shrinks the array and removes NIL gaps. Returns the new size. | |
Location |
(SIGNAL-CONDITION TYPE) [macro] |
Called By |
| ||||||||||||||||||||||
Location |
(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 | ||
Location |
(STOP-CREATURE-ACTIVITY VARIANT CREATURE ACTIVITY) [generic] |
Description | Stops an activity that the creature is doing. | |
Called By | ||
Location |
(STORE-BUYS-ITEM? OBJ STORE) [generic] |
Description | Does the shop buy such items as obj? | |
Called By | ||
Location |
(STORE-DELETE-OBJ! THE-STORE &OPTIONAL OBJ-KEY) [function] |
Description | Just wipes an object from the store. | |
Calls | ||
Location |
(STORE-EMPTY? VARIANT STORE) [function] |
Description | Is the store devoid of objects? | |
Called By | ||
Calls | ITEMS.OBJS, STORE.ITEMS and ZEROP | |
Location |
(STORE-GENERATE-OBJECT VARIANT THE-STORE) [generic] |
Description | Returns an object appropriate for the store, no side-effects. | |
Called By | ||
Location |
(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 |
(STORE-MAINTENANCE! VARIANT THE-STORE) [generic] |
Description | Does maintenance on a store, possibly changing it. | |
Called By | ||
Location |
(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 |
(STORE-MASS-PRODUCE! VARIANT STORE OBJECT) [generic] |
Description | Possibly mass-produces and alters the object, and may add discount. | |
Location |
(SWAP-MONSTERS! DUNGEON PLAYER FROM-X FROM-Y TO-X TO-Y) [function] |
Description | swaps two monsters or move one | |
Called By | ||
Calls | ||
Location |
(SWITCH-MAP-MODE VARIANT DUNGEON PLAYER &OPTIONAL WANTED-MODE) [method] |
Called By | ||
Calls | ACTIVATE-WINDOW, CLEAR-WINDOW, DEACTIVATE-WINDOW, PRINT-MAP, REFRESH-WINDOW, UPDATE-INVENTORY-ROW and VERIFY-VIEWPORT | |
Location |
(SYMBOLIFY DATA) [function] |
Description | Returns a symbol in a form which can be understood when reading code. | |
Location |
(TAG-TILES-NEAR WIN DUNGEON X Y XOFF YOFF) [function] |
Description | Tries to tag tiles near x,y (with offsets) for refreshing. | |
Calls | ||
Location |
((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 |
(TEXT-TO-ASCII STR) [function] |
Description | converts a c-type string to a lisp-string in ascii. | |
Location |
(TEXTURE-BACKGROUND! WIN FNAME ALPHA) [function] |
Description | Tries to texture the background of WIN with image-data from FNAME. | |
Called By | ||
Calls | (SETF WINDOW.BACKGROUND), FIND-IMAGE, LOAD-IMAGE&, ORG.LANGBAND.FFI:C-ADD-FRAME-BG! and WINDOW.NUM-ID | |
Location |
(THROW-OBJECT VARIANT PLAYER ITEM TX TY) [generic] |
Description | The actual throwing of an object towards the tx ty. | |
Called By | ||
Location |
(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 | ||
Location |
(TRIGGER-PRINTFIELD VARIANT DUNGEON PLAYER PRINTFIELD) [function] |
Called By | ||
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 |
(TRIGGER-PRINTFIELD-HOOKS& VARIANT DUNGEON PLAYER KEY) [function] |
Description | Triggers any registered printfield hooks for given key. | |
Called By | ||
Calls | ||
Location |
(TRIGGER-SPECIAL-ABILITY VARIANT CREATURE ABILITY TARGET DUNGEON) [generic] |
Description | Triggers a special ability on a creature in a given setting. | |
Location |
(TRIGGER-VISUAL-EVENT (EVT SPRITE-MOVEMENT) DUNGEON PLAYER CUR-TICK) [method] |
Calls |
| |||||||||||||||||||||||||||||||||||||
Location |
(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 |
(TRY-PRINTING-MESSAGES! (HANDLER MESSAGE-HANDLER-MORE)) [method] (TRY-PRINTING-MESSAGES! (HANDLER MESSAGE-HANDLER-FLOW)) [method] |
(UNCURSE-OBJECT! OBJECT POWER) [generic] |
Description | Tries to uncurse an object with a certain power. | |
Called By | ||
Location |
(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 |
(UNLESS-BIND VAR) [macro] |
Description | generalisation of (let ((var expr)) (unless var ...)). | |
Location |
(UPDATE-BUTTON-ROW VARIANT PLAYER) [function] |
Description | deprecated.. remove eventually. | |
Called By | ||
Calls | ||
Location |
(UPDATE-MAX-HP! VARIANT PLAYER) [generic] |
Description | Updates the max-hp to fit with the hp-table. | |
Called By | ||
Location |
(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 |
(UPDATE-MONSTERS! VARIANT DUNGEON FULL-UPDATE?) [generic] |
Description | Update all monsters in dungeon in various ways, mostly in relation to view. | |
Location |
(UPDATE-PLAYER-STAT! PLAYER STAT ACTION &KEY (AMOUNT 1)) [function] |
Description | Action can be <restore> or a positive or negative integer. | |
Called By | ||
Calls | ||
Location |
(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 |
(UPDATE-STUFF VARIANT DUNGEON PLAYER) [generic] |
Description | Update various stuff based on previously requested updates. | |
Called By | ||
Location |
(UPDATE-TERM-SIZES!) [function] |
Description | Calls the C-side to get the accurate sizes of windows. | ||||||||||||||||||||||
Called By | |||||||||||||||||||||||
Calls |
| ||||||||||||||||||||||
Location |
(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 |
(UPDATE-XP-TABLE! VARIANT PLAYER) [generic] |
Description | Updates the xp-table on the player, and returns updated player. | |
Called By | ||
Location |
(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 |
(USE-OBJECT! VARIANT DUNGEON PLAYER THE-OBJECT &KEY WHICH-USE) [generic] |
Description | Applies the object on the player in the dungeon. | |
Called By | ||
Location |
(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 |
(USING-SOUND?) [function] |
Description | Returns either T or NIL. | |
Called By | ||
Calls | ORG.LANGBAND.FFI:C-GET-SOUND-STATUS | |
Location |
(VARIANT-DATA-FNAME VAR-OBJ DATA-FNAME) [generic] |
Description | Returns a fname for a data-file for the variant. | |
Called By | ||
Location |
(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-ID ID) [function] |
Description | Verifies the id, returns NIL on failure, T when ok. | |
Called By | CREATE-SPELLBOOK, DEFINE-CHARACTER-CLASS, DEFINE-CHARACTER-RACE, DEFINE-DOOR-TYPE, DEFINE-EGO-ITEM, DEFINE-FLOOR-TYPE, DEFINE-MONSTER-KIND, DEFINE-SPELL-EFFECT, DEFINE-TRAP-TYPE, DEFINE-VISUAL-PROJECTILE and PRODUCE-CHARACTER-CLASS | |
Calls | ||
Location |
(VERIFY-VIEWPORT DUNGEON PLAYER) [function] |
Description | verifies that the viewport is correct and scrolls as needed to have the player in there. | |
Called By | ||
Calls | ADJUST-VIEWPORT!, GET-FRAME-HEIGHT, GET-FRAME-WIDTH, INT-/, LOCATION-X, LOCATION-Y, PLAYER.VIEW-X and PLAYER.VIEW-Y | |
Location |
(VIEWPORT-CONTAINS? PLAYER X Y) [function] |
Description | Returns T if the viewport contains the coordinate. | |
Called By | ||
Calls | GET-FRAME-HEIGHT, GET-FRAME-WIDTH, PLAYER.VIEW-X and PLAYER.VIEW-Y | |
Location |
(VINFO-INIT&) [function] |
Description | Inits the *vinfo* object. | ||||||||||||||||||||||||||||
Called By | |||||||||||||||||||||||||||||
Calls |
| ||||||||||||||||||||||||||||
Location |
(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 |
(WANT-REDRAW? CREATURE FLAG) [function] |
Description | Checks if a redraw-flag is set. | |
Called By | ||
Calls | ||
Location |
(WANT-UPDATE? CREATURE FLAG) [function] |
Description | Checks if an update-flag is set. | |
Called By | ||
Calls | ||
Location |
(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 | ||
Location |
(WIN/WRITE-CHAR WIN X Y VAL) [function] |
Called By | ||
Calls | (SETF WINDOW-COORD), CHAR-CODE, ERROR, LOGIOR, PAINT-COORD and TEXT-PAINT-VALUE | |
Location |
(WIN/WRITE-INT WIN X Y INT PADDING) [function] |
Description | Borrowed and modified from CMUCL. | |
Called By | ||
Calls | ||
Location |
(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 | ||
Location |
((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 | ||
Location |
(WITH-DIALOGUE DUMMY) [macro] |
Called By | BROWSE-SPELLS, VAN-INVOKE-SPELL!, VAN-LEARN-SPELL! and VISIT-HOUSE | |
Location |
(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 |
(WITH-FRAME NUM) [macro] |
Called By | %PRINT-TARGET, GET-AIM-DIRECTION, INTERACTIVE-TARGETING!, INVOKE-IN-DIALOGUE, PRINT-DEPTH, PRINT-DEPTH and UPDATE-INVENTORY-ROW | |
Location |
(WRITE-OBJ-DESCRIPTION VARIANT OBJ STREAM &KEY STORE NUMERIC-PREFIX VERBOSITY) [generic] |
Description | Describes the given object to the given stream. | |
Called By | ||
Location |
(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 |
This documentation was generated Autumn 2003 from the original sources by Albert v.0.4.9.