Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

globalvar.h

00001 /***************************************************************************
00002                         GlobalVar.h    -  description
00003                             -------------------
00004     begin                : oct 17th, 2006
00005     copyright            : (C) 2006 by Duong-Khang NGUYEN
00006     email                : neoneurone @ users sourceforge net
00007     
00008     $Id$
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; either version 2 of the License, or     *
00016  *   any later version.                                                    *
00017  *                                                                         *
00018  ***************************************************************************/
00019 
00020 #ifndef _OPENCITY_GLOBALVAR_H_
00021 #define _OPENCITY_GLOBALVAR_ 1
00022 
00023 #include "main.h"
00024 #include "audiomanager.h"       // Audio support
00025 #include "graphicmanager.h"
00026 #include "map.h"
00027 #include "propertymanager.h"
00028 #include "renderer.h"
00029 #include "networking.h"         // Networking support
00030 #include "movementmanager.h"
00031 #include "kernel.h"             // MAS kernel
00032 #include "environment.h"        // MAS environment
00033 #include "pathfinder.h"
00034 
00035 
00036 //========================================================================
00040 struct GlobalVar
00041 {
00042 // Config file and command line options
00043     bool gboolUseAudio;
00044     bool gboolFullScreen;
00045     bool gboolServerMode;
00046     uint guiCityWidth;
00047     uint guiCityLength;
00048     uint guiMsPerFrame;
00049     uint guiScreenWidth;
00050     uint guiScreenHeight;
00051     uint guiVideoBpp;
00052 
00053     OC_FLOAT gfMsSimDelayMax;
00054     string gsZenServer;
00055 
00056 // The mutex that all the simulators depend on
00057     SDL_mutex* gpmutexSim;
00058 
00059 // The famous renderer
00060     Renderer* gpRenderer;
00061 
00062 // Datamanagers
00063     AudioManager* gpAudioMgr;
00064     GraphicManager* gpGraphicMgr;
00065     PropertyManager* gpPropertyMgr;
00066     Map* gpMapMgr;
00067     Networking* gpNetworking;
00068     PathFinder* gpPathFinder;
00069     MovementManager* gpMoveMgr;
00070 
00071 // Multi-Agent System
00072     Kernel* gpKernel;
00073     Environment* gpEnvironment;
00074 
00075 // The SDL video surface
00076     SDL_Surface* gpVideoSrf;
00077 };
00078 
00079 
00080 #endif
00081 
00082 
00083 
00084 
00085 
00086 
00087 
00088 
00089 
00090 
00091 
00092 
00093 
00094 
00095 
00096 
00097 
00098 
00099 
00100 
00101 
00102 
00103 
00104 
00105 
00106 
00107 
00108 
00109 
00110 
00111 
00112 

Generated on Sat Nov 11 10:21:10 2006 for OpenCity by  doxygen 1.4.2