00001 /****************************************************************************************/ 00002 /* Game.h */ 00003 /* */ 00004 /* Author: John Pollard */ 00005 /* Description: */ 00006 /* */ 00007 /* Copyright (c) 1997, 1999, Eclipse Entertainment; All rights reserved. */ 00008 /* */ 00009 /* See the accompanying file LICENSE.TXT for terms on the use of this library. */ 00010 /* This library is distributed in the hope that it will be useful but WITHOUT */ 00011 /* ANY WARRANTY OF ANY KIND and without any implied warranty of MERCHANTABILITY */ 00012 /* or FITNESS FOR ANY PURPOSE. Refer to LICENSE.TXT for more details. */ 00013 /* */ 00014 /****************************************************************************************/ 00015 #ifndef GAME_H 00016 #define GAME_H 00017 00018 #include <Windows.h> 00019 00020 #include "Genesis.h" 00021 #include "Ram.h" 00022 00023 #include "GenVSI.h" 00024 #include "GPlayer.h" 00025 #include "GenVS.h" 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00031 00032 //=========================================== 00033 // This is also defined if Fx.h !!!!! 00034 #define FX_SMOKE_TRAIL (1<<0) 00035 #define FX_PARTICLE_TRAIL (1<<1) 00036 #define FX_SHREDDER (1<<2) 00037 00038 // Spawnable fx 00039 #define FX_EXPLODE1 0 00040 #define FX_EXPLODE2 1 00041 //=========================================== 00042 00043 //=========================================================================== 00044 // Struct defs 00045 //=========================================================================== 00046 00047 //=========================================================================== 00048 // Function prototypes 00049 //=========================================================================== 00050 // Server_Main is called upon server-side initialization 00051 // Client_Main is called for client only computers 00052 geBoolean Server_Main(GenVSI *VSI, const char *LevelName); 00053 geBoolean Client_Main(GenVSI *VSI); 00054 00055 // Client is a human controlled player, while a bot is a computer controlled player, that acts 00056 // like a human controlled player... 00057 geBoolean Game_SpawnClient(GenVSI *VSI, geWorld *World, void *PlayerData, void *ClassData); 00058 geBoolean Game_SpawnBot(GenVSI *VSI, geWorld *World, void *PlayerData, void *ClassData); 00059 void Game_DestroyClient(GenVSI *VSI, void *PlayerData, void *ClassData); 00060 00061 00062 #ifdef __cplusplus 00063 } 00064 #endif 00065 00066 #endif
1.3.2