|
Odamex
Setting the Standard in Multiplayer Doom
|
00001 // Emacs style mode select -*- C++ -*- 00002 //----------------------------------------------------------------------------- 00003 // 00004 // $Id: sc_man.h 1991 2010-11-18 17:33:34Z hypereye $ 00005 // 00006 // sc_man.h : Heretic 2 : Raven Software, Corp. 00007 // Copyright (C) 2006-2010 by The Odamex Team. 00008 // 00009 // This program is free software; you can redistribute it and/or 00010 // modify it under the terms of the GNU General Public License 00011 // as published by the Free Software Foundation; either version 2 00012 // of the License, or (at your option) any later version. 00013 // 00014 // This program is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 // GNU General Public License for more details. 00018 // 00019 // DESCRIPTION: 00020 // 00021 // General lump script parser from Hexen (MAPINFO, etc) 00022 // 00023 //----------------------------------------------------------------------------- 00024 00025 #ifndef __SC_MAN_H__ 00026 #define __SC_MAN_H__ 00027 00028 void SC_Open (const char *name); 00029 void SC_OpenFile (const char *name); 00030 void SC_OpenMem (const char *name, char *buffer, int size); 00031 void SC_OpenLumpNum (int lump, const char *name); 00032 void SC_Close (void); 00033 void SC_SavePos (void); 00034 void SC_RestorePos (void); 00035 BOOL SC_GetString (void); 00036 void SC_MustGetString (void); 00037 void SC_MustGetStringName (const char *name); 00038 BOOL SC_GetNumber (void); 00039 void SC_MustGetNumber (void); 00040 BOOL SC_GetFloat (void); 00041 void SC_MustGetFloat (void); 00042 void SC_UnGet (void); 00043 //boolean SC_Check(void); 00044 BOOL SC_Compare (const char *text); 00045 int SC_MatchString (const char **strings); 00046 int SC_MustMatchString (const char **strings); 00047 void SC_ScriptError (const char *message, const char **args = NULL); 00048 00049 extern char *sc_String; 00050 extern int sc_Number; 00051 extern float sc_Float; 00052 extern int sc_Line; 00053 extern BOOL sc_End; 00054 extern BOOL sc_Crossed; 00055 extern BOOL sc_FileScripts; 00056 extern char *sc_ScriptsDir; 00057 00058 #endif //__SC_MAN_H__ 00059