Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

scriplib.h

Go to the documentation of this file.
00001 /*
00002 ===========================================================================
00003 Copyright (C) 1999-2005 Id Software, Inc.
00004 
00005 This file is part of Quake III Arena source code.
00006 
00007 Quake III Arena source code is free software; you can redistribute it
00008 and/or modify it under the terms of the GNU General Public License as
00009 published by the Free Software Foundation; either version 2 of the License,
00010 or (at your option) any later version.
00011 
00012 Quake III Arena source code is distributed in the hope that it will be
00013 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Foobar; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 ===========================================================================
00021 */
00022 // scriplib.h
00023 
00024 #ifndef __CMDLIB__
00025 #include "cmdlib.h"
00026 #endif
00027 #ifndef __MATHLIB__
00028 #include "mathlib.h"
00029 #endif
00030 
00031 #define MAXTOKEN    1024
00032 
00033 extern  char    token[MAXTOKEN];
00034 extern  char    *scriptbuffer,*script_p,*scriptend_p;
00035 extern  int     grabbed;
00036 extern  int     scriptline;
00037 extern  qboolean    endofscript;
00038 
00039 
00040 void LoadScriptFile( const char *filename );
00041 void ParseFromMemory (char *buffer, int size);
00042 
00043 qboolean GetToken (qboolean crossline);
00044 void UnGetToken (void);
00045 qboolean TokenAvailable (void);
00046 
00047 void MatchToken( char *match );
00048 
00049 void Parse1DMatrix (int x, vec_t *m);
00050 void Parse2DMatrix (int y, int x, vec_t *m);
00051 void Parse3DMatrix (int z, int y, int x, vec_t *m);
00052 
00053 void Write1DMatrix (FILE *f, int x, vec_t *m);
00054 void Write2DMatrix (FILE *f, int y, int x, vec_t *m);
00055 void Write3DMatrix (FILE *f, int z, int y, int x, vec_t *m);

Generated on Thu Aug 25 12:38:08 2005 for Quake III Arena by  doxygen 1.3.9.1