00001 /* 00002 Autor: $Author: kunkel $ State: $State: Exp $ 00003 Datum: $Date: 2005/05/30 12:35:25 $ 00004 Version: $Revision: 1.1 $ 00005 */ 00006 00012 #ifndef CONFIGURATION_H 00013 #define CONFIGURATION_H 00014 00015 #include <fstream> 00016 #include "config.h" 00017 #include "Object.h" 00018 #include "Integrator.h" 00019 00024 class Configuration { 00025 private: 00026 void saveConfiguration(ostream & FILE); 00027 void loadConfiguration(istream & FILE); 00028 00029 public: 00030 00034 bool showMenu; 00035 00039 bool showOptionMenu; 00040 00044 bool constructMode; 00045 00049 double speed; 00050 00054 enum speedTypeEnum{SECOND,HOUR,DAY,MONTH,YEAR}; 00055 00059 int speedType; 00060 00064 double linearScaleFactor; 00065 00069 int freezeAnimation; 00070 00074 int viewVectors; 00075 00079 int viewToObjectsFlightDirection; 00080 00084 int followObject; 00085 00089 int cameraSaveSlot; 00090 00094 int radiusAdaption; 00095 00099 int autoAdaption; 00100 00104 int movelike3Dshooter; 00105 00109 int showLighting; 00110 00114 int showTextures; 00115 00119 int viewModel; 00120 00125 int drawOldPositionsTimeSteps; 00129 int drawOldPositions; 00130 00134 int sphereDetaillevel; 00135 00139 char filename[SIZEOFGLUISTRING]; 00140 00144 Integrator * integrator; 00145 00149 Object * clickedObject; 00150 00151 Configuration(); 00152 00153 void saveWorld(const string & filename, bool use_extensions=false); 00154 void loadWorld(const string & filename, bool use_extensions=false); 00155 00156 double getTime(); 00157 }; 00158 00159 extern Configuration ourConfiguration; 00160 00161 #endif