1 /* ScummVM - Graphic Adventure Engine 2 * 3 * ScummVM is the legal property of its developers, whose names 4 * are too numerous to list here. Please refer to the COPYRIGHT 5 * file distributed with this source distribution. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Text utility defines 22 */ 23 24 #ifndef TINSEL_TINLIB_H // prevent multiple includes 25 #define TINSEL_TINLIB_H 26 27 #include "tinsel/dw.h" 28 #include "tinsel/object.h" 29 #include "tinsel/palette.h" 30 31 namespace Tinsel { 32 33 enum EXTREME { 34 EX_USEXY, EX_BOTTOM, EX_BOTTOMLEFT, 35 EX_BOTTOMRIGHT, EX_LEFT, EX_RIGHT, 36 EX_TOP, EX_TOPLEFT, EX_TOPRIGHT 37 }; 38 39 enum WHICH_VER {VER_GLITTER, VER_COMPILE}; 40 #define VER_LEN 10 41 42 // Support functions 43 void TinGetVersion(WHICH_VER which, char *buffer, int length); 44 45 // Library functions in TINLIB.C 46 47 void ActorBrightness(int actor, int brightness); 48 void ActorPalette(int actor, int startColor, int length); 49 void Control(int param); 50 void HookScene(SCNHANDLE scene, int entrance, int transition); 51 void NewScene(CORO_PARAM, SCNHANDLE scene, int entrance, int transition); 52 void Offset(EXTREME extreme, int x, int y); 53 void FnRestartGame(); 54 void RestoreScene(); 55 void ResumeLastGame(); 56 void SaveScene(CORO_PARAM); 57 void Stand(CORO_PARAM, int actor, int x, int y, SCNHANDLE film); 58 void SetTextPal(COLORREF col); 59 60 void KeepOnScreen(OBJECT *pText, int *pTextX, int *pTextY); 61 62 enum SPEECH_TYPE { IS_SAY, IS_SAYAT, IS_TALK, IS_TALKAT }; 63 64 } // End of namespace Tinsel 65 66 #endif // TINSEL_TINLIB_H 67