$Id$ Cross-reference for functions and variables for the original source code and the ScummVM implementation. BANKS ===== erase() Graphics::bankErase loadbank() Graphics::bankLoad overpack() Graphics::bankOverpack unpack() Graphics::bankUnpack COMMAND ======= CLEAR_COMMAND() - ACTION,ACTION2 CLEVEL COMMANDstr OLDVERB,VERB OLDNOUN,NOUN,NOUN2 PARSE SUBJ1,SUBJ2,SUBJECT CREDIT SCRIPTING SYSTEM ======================= Cinit() Ctext() Cupdate() - Ccol Ccount Cfp Cflag Cfontsize Cjustify Cpausecount Czone CUTAWAY ======= CUTAWAY() Cutaway::run MAKE_COMPLEX_ANIM() Cutaway::makeComplexAnimation SCENE_START() SCENE_END() CUTJOEF CUTON CUTQUIT Cutaway::_quit (rename and move to Logic?) FINAL_ROOM Cutaway::_finalRoom IROOM Cutaway::_initialRoom TROOM Cutaway::_temporaryRoom OBJ_CUT OBJ_ANIM DEBUG ===== cd_sample_check() debuginfo() select_new_room() - AREAVAR (boolean, if true display objects/areas boxes) GRAPHICS ======== bob() Graphics::bobDraw Box() calc_screen_scroll() Display::horizontalScrollUpdate CHECK_PARALLAX() Graphics::bobCustomParallax clearallbobs() Graphics::bobClearAll clearbob() Graphisc::bobClear clearpanel() Display::prepareUpdate drawbobs() Graphics::bobDrawAll drawbackdrop() Display::prepareUpdate drawpanel() Display::prepareUpdate drawscreen() Display::update freeallframes() Graphics::frameEraseAll(true) freeframes() Graphics::frameEraseAll(false) invbob() Graphics::bobDrawInventoryItem loadbackdrop() Graphics::loadBackdrop loadfont() *not needed* loadpanel() Graphics::loadPanel MAKE_SPEAK_BOB Graphics::bobSetText makeanim() Graphics::bobAnimNormal movebob() Graphics::bobMove pastebob() Graphics::bobPaste requestor() shrinkbob() Graphics::bobShrink sortbobs() Graphics::bobSortAll stringanim() Graphics::bobAnimString - bobs Graphics::_bobs BDxres Display::_bdWidth BDyres display::_bdHeight cambob Graphics::_cameraBob clothespal dresspal font TextRenderer::FONT font_sizes TextRenderer::charWidth OUTLINE *not needed* sortedbobs Graphics::_sortedBobs scrollx Display::_horizontalScroll INPUT ===== - drawmouseflag key_commands key_language KEYVERB MKEY MouseButton mouseflag no_check_keys INVENTORY ========= INVDWN() INVENTORY() INVUP() DEL_ITEM_NUM() INS_ITEM_NUM() - INV1,INV2,INV3,INV4 JOE === FACE_JOE() Logic::joeFace GRAB_DIR() GRAB_JOE() SETUP_JOE() Logic::joeSetup - JOE_RESPstr Logic::_joeResponse JOEF,JX,JY,JDIR Logic::_joe.* JOEWALK // legal values = 0,1,2,3 LOGIC ===== DISP_OBJECTS() Logic::roomSetupObjects DISP_ROOM() Logic::roomDisplay FIND_BOB() Logic::findBob FIND_DEFAULT() FIND_FRAME() Logic::findFrame FIND_GRAPHIC() FIND_SCALE() Logic::findScale FIND_VERB() LOOK() LOOK_ICON() LOOK_ITEM() LOOK_ROOM() P1_SET_CONDITIONS() P2_SET_AREAS() P3_SET_OBJECTS() P3_COPY_FROM() P4_SET_ITEMS() REDISP_OBJECT() Logic::roomRefreshObject restart_game() SELECT() SELECT_ITEM() SELECT_NOUN() SELECT_VERB() SETUP_BOBS() Graphics::bobSetupControl SETUP_FURNITURE() Logic::roomSetupFurniture SETUP_ITEMS() SETUP_ROOM() Logic::roomChanged SETUP_SCRVARS() update() Graphics::update USE_UNDERWEAR() USE_CLOTHES() USE_DRESS() USE_JOURNAL() Graphics::useJournal WALK() Logic::joeWalk - A_ANIMstr Logic::_aAnim A_ANIM_MAX Logic::_numAAnim A_NAMEstr Logic::_aName A_NAME_MAX Logic::_numAName A_FILEstr Logic::_aFile A_FILE_MAX Logic::_numAFile ACTOR_DATA_MAX Logic::_numActors AREA Logic::_area AREAMAX Logic::_areaMax COM_A Logic::_cmdArea COM_A_MAX Logic::_numCmdArea COM_O Logic::_cmdObject COM_O_MAX Logic::_numCmdObject COM_G Logic::_cmdGameState COM_G_MAX Logic::_numCmdGameState COM_I Logic::_cmdInventory COM_I_MAX Logic::_numCmdInventory COM_LIST Logic::_cmdList COM_LIST_MAX Logic::_numCmdList DESCTOT Logic::_numDescriptions FMAX Logic::_numFurnitureStatic FMAXA Logic::_numFurnitureAnimated FMAXLEN Logic::_numFurnitureAnimatedLen FRAMES Logic::_numFrames FURN_DATA_MAX Logic::_numFurniture GAMESTATE Logic::_gameState GRAPHIC_ANIM_MAX Logic::_numGraphicAnim GRAPHIC_DATA Logic::_graphicData GRAPHIC_MAX Logic::_numGraphics ITEMTOT Logic::_numItems ITEM_DATA Logic::_itemData NAMETOT Logic::_numNames NEW_ANIM Logic::_newAnim OBJ_DESC_MAX Logic::_numObjDesc OBJECT_BOX Logic::_objectBox OBJECT_DATA Logic::_objectData OBJECT_DESCRstr Logic::_objDescription OBJECT_NAMEstr Logic::_objName OBJMAX Logic::_objMax OBJTOT Logic::_numObjects OLDROOM,ROOM,NEW_ROOM Logic::_*oom ROOMTOT Logic::_numRooms ROOM_DATA Logic::_roomData ROOM_NAMEstr Logic::_roomName VERB_NAMEstr Logic::_verbName WALK_OFF_DATA Logic::_walkOffData WALK_OFF_MAX Logic::_numWalkOffs PERSONS ======= ALLOCATE_PERSON Logic::personAllocate SET_PERSON_DATA Logic::personSetData SETUP_PERSON Logic::personSetup OBJ_PERSON Logic::objectForPerson - PERSON_FACE, PERSON_FACE_MAX PERSON_FRAMES Logic::_personFrames P_ANIMstr Person.anim P_BANK Person.bankNum P_NAMEstr Person.name P_STAND,P_BNUM,P_ROOM Person.actor->* P_X,P_Y,P_COLOR Person.actor->* P_VALUE,P_GAMES Person.actor->* RESOURCE ======== tflen() Resource::fileSize topen() Resource::loadFile tseek() *not needed* SCREEN ====== changejoepal() Display::palSetJoe check_colors() Display::palCustomColors dynalum() Display::dynalumUpdate fadein() Display::palFadeIn fadeout() Display::palFadeOut flashspecial() Display::palCustomFlash palscroll() Display::palScroll putcharacter() TextRenderer::drawChar setpal() Display::palSet - COMPANEL FULLSCREEN Graphics::_fullscreen palette Graphics::_paletteRoom panelflag Graphics::_panelFlag tpal Graphics::_paletteScreen SOUND ===== alter_current_volume() playsong() sfxbusy() sfxplay() - bamflag bamindex SFXNAME Logic::_sfxName tmpbamflag VOLUME STATE ===== ALTER_DEFAULT() ALTER_STATE() FIND_STATE() Logic::findState* TALK ==== FIND_SACTION() Talk::findSpeechParameters MOVE_SPEAK SPEAK Talk::speak SPEAK_SUB Talk::speakSegment talk Talk::talk TALK_PROC Talk::talk - A1,A12 TALK_SELECTED OLDLEVEL,LEVEL TALKHEAD TALKQUIT TALKSPD TALKstr TEXTS ===== blanktexts() Graphics::textClear drawtext() Graphics::textDrawAll Ink() Graphics::textCurrentColor menutext() MIDDLE() text() Graphics::textSet textlen() Graphics::textWidth - textcol Graphics::_curTextColor texts Graphics::_texts WALK ==== CALC_PATH() Walk::calcPath CALC_WALK() Walk::incWalkData CALC_X() Walk::calcC CALC_Y() Walk::calcC CALCSCALE() Area::calcScale FIND_FREE_AREA Walk::findFreeArea FIND_NEWP() Walk::findAreaPosition FIND_OLDP() Walk::findAreaPosition MOVE_JOE() Walk::joeMove MOVE_OTHER() Walk::personMove - AREALIST Walk::_areaList AREASTRIKE Walk::_areaStrike movdata Walk::_moveData NEWP,OLDP * locals in joeMove && personMove * OLDX,X,OLDY,Y * passed as arguments * WALK_DATA Walk::_walkData WALKI Walk::_walkDataCount ZONES ===== ClearZones() Logic::zoneClearAll SETUP_PANEL_ZONES() Logic::zoneSetupPanel SETUP_ZONES() Logic::zoneSetup SetZone() Logic::zoneSet zone() Logic::zoneIn / Logic::zoneInArea - zones Logic::_zones (UNSORTED) ========== in() defs.h InRange() macro game_save() game_load() R_MAP() check_cut_quit() EXECUTE_ACTION() CHECK_PLAYER() SETUP_VARS() SETUP_SCREENS() int prompt_do() SETUP_HERO() Logic::joeSetupInRoom find_cd_cut() find_cd_desc() OPEN_CLOSE_OTHER() CREATE_ANIM() Logic::animCreate - VersionStr Logic::language (add more functions if needed) Gstr PERstr Pstr Kstr WORDstr TEMPstr bank9 OBJECT_DESCRstr PERSON2str JOE2str PKEYstr JOEKEYstr JOEH, NEWDEF, NEWA, MAPC,M,A,XD,YD,RES, FRAME, AM,WX,WY,Y1, A2,PX,PY,LD,DIFF, SFXTOGGLE,VOICETOGGLE,MUSICTOGGLE,TEXTTOGGLE DESC2,DESC, OBJMAXv, OBJ_DESC_DATA, PERSON_DATA, PERSON_OBJ FS,FE,FACE,TY,DY,BS,DS, TEMPA, I2, SFACTOR, // shrink factor, used to scale (down) the bobs ENTRY_OBJ, SCENE, DEFCOMM, N,V, ds,bs,bx,by,dx,dy,SX,SY,IX,IY,X2,X1,IY,SFAC,FDIR, OBJ,E,SF2,T, OLDBANK,RET,OLDS,CH,GSET,OFFSET, OLDG,COND,COM,TEMPI,CURRCOM,TA2,COMMAX,S2,S1,ITEM,TYPE,HEAD,C, BANK,FD,NAME,TL,TI,TS,WC,IMAGE,OWALK,LEVELMAX,JMAX, BNUM,D,P,LI,R,FTOT, CANTQUIT, CURRSONG, walkgameload actiondata nopalscroll in_journal decbase choice config_request (NO NEED TO BE GLOBAL) =============== Nstr,F1,F2,F3,F4,F5,F6,F7,F8,SF,BF,AS,MS ; MOVE_OTHER (struct movdata *) Nstr,S,F,BODY,BF,RF,AF,SANIMstr,FF ; FIND_SACTION (struct action *) CURRBOB ; SETUP_FURNITURE, REDISP_OBJECT, DISP_OBJECTS PSY,PSX,CSX,DX1,DX2,DY1,DY2,PCF,CCF,CSY ; FIND_NEWP, FIND_OLDP tx,ty,SFRAME,EFRAME,SPEED ; FIND_GRAPHIC AREAMAXv CURRY OMAX,OMAXA