2006-02-22 22:40:53 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
|
|
|
* Copyright (C) 2006 The ScummVM project
|
|
|
|
*
|
|
|
|
* cinE Engine is (C) 2004-2005 by CinE Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CINE_VARIOUS_H_
|
|
|
|
#define CINE_VARIOUS_H_
|
|
|
|
|
2006-02-25 01:01:27 +00:00
|
|
|
#include "common/stdafx.h"
|
|
|
|
#include "common/file.h"
|
|
|
|
|
2006-02-22 22:40:53 +00:00
|
|
|
#include "cine/cine.h"
|
|
|
|
|
2006-02-25 00:26:14 +00:00
|
|
|
namespace Cine {
|
|
|
|
|
2006-02-22 22:40:53 +00:00
|
|
|
extern int gameType;
|
|
|
|
|
|
|
|
typedef char commandeType[20];
|
|
|
|
|
2006-02-23 20:02:46 +00:00
|
|
|
int16 makeMenuChoice(const commandeType commandList[], uint16 height, uint16 X, uint16 Y, uint16 width);
|
|
|
|
int16 makeMenuChoice2(const commandeType commandList[], uint16 height, uint16 X, uint16 Y, uint16 width);
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern int16 allowSystemMenu;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-25 00:46:56 +00:00
|
|
|
struct unk1Struct {
|
2006-02-23 09:12:21 +00:00
|
|
|
uint8 *ptr;
|
|
|
|
uint16 len;
|
2006-02-25 00:46:56 +00:00
|
|
|
};
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
#define NUM_MAX_MESSAGE 255
|
|
|
|
|
|
|
|
extern unk1Struct messageTable[NUM_MAX_MESSAGE];
|
|
|
|
|
2006-02-27 21:25:59 +00:00
|
|
|
struct SeqListElement {
|
|
|
|
struct SeqListElement *next;
|
2006-02-23 09:12:21 +00:00
|
|
|
int16 var4;
|
|
|
|
int16 var6;
|
|
|
|
int16 var8;
|
|
|
|
int16 varA;
|
|
|
|
int16 varC;
|
|
|
|
int16 varE;
|
|
|
|
int16 var10;
|
|
|
|
int16 var12;
|
|
|
|
int16 var14;
|
|
|
|
int16 var16;
|
|
|
|
int16 var18;
|
|
|
|
int16 var1A;
|
|
|
|
int16 var1C;
|
|
|
|
int16 var1E;
|
2006-02-22 22:40:53 +00:00
|
|
|
};
|
|
|
|
|
2006-02-27 21:25:59 +00:00
|
|
|
extern SeqListElement seqList;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint32 var6;
|
|
|
|
extern uint32 var8;
|
|
|
|
extern uint8 *var9;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 var2;
|
|
|
|
extern uint16 var3;
|
|
|
|
extern uint16 var4;
|
|
|
|
extern uint16 var5;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
extern Common::File palFileHandle;
|
|
|
|
extern Common::File partFileHandle;
|
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
void processPendingUpdates(int16 param);
|
2006-03-09 23:02:29 +00:00
|
|
|
void freeAnimDataTable(void);
|
2006-02-22 22:40:53 +00:00
|
|
|
void mainLoopSub1(void);
|
2006-03-09 23:02:29 +00:00
|
|
|
void setTextWindow(uint16 param1, uint16 param2, uint16 param3, uint16 param4);
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 errorVar;
|
|
|
|
extern uint8 menuVar;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 20:02:46 +00:00
|
|
|
void gfxFuncGen1(uint8 *param1, uint8 *param2, uint8 *param3, uint8 *param4, int16 param5);
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint8 *page0;
|
|
|
|
extern uint8 *page0c;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
void ptrGfxFunc13(void);
|
|
|
|
void gfxFuncGen2(void);
|
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 allowPlayerInput;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 checkForPendingDataLoadSwitch;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 fadeRequired;
|
|
|
|
extern uint16 isDrawCommandEnabled;
|
|
|
|
extern uint16 waitForPlayerClick;
|
2006-03-02 20:08:41 +00:00
|
|
|
extern uint16 menuCommandLen;
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 var17;
|
|
|
|
extern uint16 var18;
|
|
|
|
extern uint16 var19;
|
|
|
|
extern uint16 var20;
|
|
|
|
extern uint8 var21;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern int16 playerCommand;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
extern char commandBuffer[80];
|
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 c_palette[256];
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
extern char currentPrcName[20];
|
|
|
|
extern char currentRelName[20];
|
|
|
|
extern char currentObjectName[20];
|
|
|
|
extern char currentMsgName[20];
|
|
|
|
extern char newPrcName[20];
|
|
|
|
extern char newRelName[20];
|
|
|
|
extern char newObjectName[20];
|
|
|
|
extern char newMsgName[20];
|
|
|
|
|
|
|
|
extern char currentBgName[8][15];
|
|
|
|
extern char currentCtName[15];
|
|
|
|
extern char currentPartName[15];
|
|
|
|
|
|
|
|
void stopSample(void);
|
|
|
|
void mainLoopSub3(void);
|
2006-02-23 09:12:21 +00:00
|
|
|
uint16 executePlayerInput(void);
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
void drawOverlays(void);
|
|
|
|
void flip(void);
|
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 mouseUpdateStatus;
|
|
|
|
extern uint16 dummyU16;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
void getMouseData(uint16 param, uint16 *pButton, uint16 *pX, uint16 *pY);
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
uint16 processKeyboard(uint16 param);
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
void mainLoopSub6(void);
|
|
|
|
|
|
|
|
void checkForPendingDataLoad(void);
|
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 exitEngine;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
void hideMouse(void);
|
|
|
|
void closeEngine7(void);
|
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 var22;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
void removeExtention(char *dest, const char *source);
|
|
|
|
|
|
|
|
struct selectedObjStruct {
|
2006-02-23 09:12:21 +00:00
|
|
|
int16 idx;
|
|
|
|
int16 param;
|
2006-02-22 22:40:53 +00:00
|
|
|
};
|
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 defaultMenuBoxColor;
|
|
|
|
extern uint16 defaultMenuBoxColor2;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
#define NUM_MAX_ZONE 16
|
2006-02-23 09:12:21 +00:00
|
|
|
extern uint16 zoneData[NUM_MAX_ZONE];
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
void addMessage(uint8 param1, int16 param2, int16 param3, int16 param4, int16 param5);
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
void blitScreen(uint8 *frontBuffer, uint8 *backbuffer);
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
struct mouseStatusStruct {
|
|
|
|
int left;
|
|
|
|
int right;
|
|
|
|
int X;
|
|
|
|
int Y;
|
|
|
|
};
|
|
|
|
|
2006-02-23 09:12:21 +00:00
|
|
|
extern int16 additionalBgVScroll;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-27 21:25:59 +00:00
|
|
|
void addSeqListElement(int16 param0, int16 param1, int16 param2, int16 param3, int16 param4, int16 param5, int16 param6, int16 param7, int16 param8);
|
|
|
|
void resetSeqList();
|
|
|
|
void processSeqList(void);
|
2006-02-23 20:02:46 +00:00
|
|
|
|
2006-02-25 00:26:14 +00:00
|
|
|
} // End of namespace Cine
|
|
|
|
|
2006-02-22 22:40:53 +00:00
|
|
|
#endif
|