Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

GGlobals.h

Go to the documentation of this file.
00001 
00007 #ifndef _GAME_GLOBALS_H_
00008 #define _GAME_GLOBALS_H_
00009 
00010 #include "Player.h"
00011 #include "Characters.h"
00012 #include "../Util/MilkShape.h"
00013 #include "../Util/Console.h"
00014 #include "../Util/OpenGL/OpenGLConsole.h"
00015 #include "../Sound/Music.h"
00016 
00017 #define SCENE_UNDEFINED         0
00018 #define SCENE_DEMO                      1
00019 #define SCENE_MENU                      2
00020 #define SCENE_CREATE            3
00021 #define SCENE_JOIN                      4
00022 #define SCENE_PLAY                      5
00023 #define SCENE_SCORES            6
00024 
00025 #define MAX_LVL_LIST            16
00026 
00027 #define JOIN_GALAXY_MAX_LVLS    5
00028 #define JOIN_GALAXIES                   6
00029 #define JOIN_GALAXY_ICE                 0
00030 #define JOIN_GALAXY_LAVA                1
00031 #define JOIN_GALAXY_PINK                2
00032 #define JOIN_GALAXY_ELECTRONIC  3
00033 #define JOIN_GALAXY_ICE2                4
00034 #define JOIN_GALAXY_LAVA2               5
00035 //#define JOIN_GALAXY_PINK2             6
00036 //#define JOIN_GALAXY_ELECTRONIC2       7
00037 
00038 #define GAME_STATE_WAITING              0
00039 #define GAME_STATE_RUNNING              1
00040 #define GAME_STATE_GAME_OVER    2
00041 #define GAME_STATE_END                  3
00042 
00043 #define MODELS                          3
00044 #define MODEL_ROBOT1            0
00045 #define MODEL_VIPER                     1
00046 #define MODEL_ROBOT2            2
00047 
00048 struct SModelInfo {
00049         bool isSet;
00050         char file[128];
00051         char avatar[128];
00052         char skin[128];
00053 };
00054 
00055 struct SLevelInfo {
00056         bool isSet;
00057         char name[32];
00058         char file[32];
00059 };
00060 
00061 struct SGalaxyInfo {
00062         bool isSet;
00063         char name[32];
00064         int nLvls;
00065         SLevelInfo      lvls[JOIN_GALAXY_MAX_LVLS];
00066         TextureID tex;
00067         Vec3 pos;
00068 };
00069 
00070 struct SLight {
00071         Vec3 pos;
00072         Vec3 clr;
00073 };
00074 
00075 struct SGameInfo {
00076         char serverName[32];                    // common
00077         bool isServer;
00078         //int port;
00079         //int maxPlayers;
00080         
00081         int gameState;
00082 
00083         //SLevelInfo lvlList[MAX_LVL_LIST];
00084         int lvlList[MAX_LVL_LIST][3];           // 0 = isSet, 1 = galaxy, 2 = level
00085         int thisLevel;
00086         int nLvls;
00087         int currLvl[1];                                         // 0 = galaxy, 2 = level
00088 
00089         bool joinInGame;                                // play
00090 
00091         //int galaxy;                                           // menu
00092         //int level;
00093 };
00094 
00095 extern SPlayer                  g_players[SPLAYER_MAX_PLAYERS];
00096 extern MilkShape                g_models[SPLAYER_MAX_PLAYERS];
00097 extern OpenGLConsole    console;
00098 extern SGameInfo                g_gameInfo;
00099 extern unsigned int             g_selectedScene;
00100 extern int                              g_numPlayers;
00101 extern int                              g_myPlayerID;
00102 extern Gne                              *gne;
00103 extern SGalaxyInfo              g_galaxies[JOIN_GALAXIES];
00104 extern SModelInfo               g_allModels[MODELS];
00105 extern Music                    g_music;
00106 
00107 #endif

Generated on Sun Jun 5 15:47:03 2005 for Defacto by  doxygen 1.4.3