Changeset 2710 for code/trunk/src/orxonox
- Timestamp:
- Feb 28, 2009, 7:46:37 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 11 deleted
- 96 edited
- 7 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore deleted
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/CMakeLists.txt
r2662 r2710 1 SET( ORXONOX_SRC_FILES 1 # 2 # ORXONOX - the hottest 3D action shooter ever to exist 3 # > www.orxonox.net < 4 # 5 # This program is free software; you can redistribute it and/or 6 # modify it under the terms of the GNU General Public License 7 # as published by the Free Software Foundation; either version 2 8 # of the License, or (at your option) any later version. 9 # 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License along 16 # with this program; if not, write to the Free Software Foundation, 17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 # 19 20 SET_SOURCE_FILES(ORXONOX_SRC_FILES 2 21 CameraManager.cc 3 22 GraphicsEngine.cc … … 6 25 PawnManager.cc 7 26 PlayerManager.cc 8 Settings.cc9 10 tolua/tolua_bind.cc11 27 ) 28 ADD_SUBDIRECTORY(gamestates) 29 ADD_SUBDIRECTORY(gui) 30 ADD_SUBDIRECTORY(objects) 31 ADD_SUBDIRECTORY(overlays) 32 ADD_SUBDIRECTORY(tools) 33 GET_ALL_HEADER_FILES(ORXONOX_HDR_FILES) 34 SET(ORXONOX_FILES ${ORXONOX_SRC_FILES} ${ORXONOX_HDR_FILES}) 12 35 13 ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES gamestates) 14 ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES gui) 15 ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES objects) 16 ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES overlays) 17 ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES tools) 36 GENERATE_SOURCE_GROUPS(${ORXONOX_FILES}) 37 GENERATE_TOLUA_BINDINGS(Orxonox ORXONOX_FILES INPUTFILES gui/GUIManager.h) 18 38 19 GET_TARGET_PROPERTY(TOLUA_EXE tolua_orxonox LOCATION) 20 ADD_CUSTOM_COMMAND( 21 OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/tolua/tolua_bind.cc ${CMAKE_CURRENT_SOURCE_DIR}/tolua/tolua_bind.h 22 COMMAND ${TOLUA_EXE} -n Orxonox -o ../../src/orxonox/tolua/tolua_bind.cc -H ../../src/orxonox/tolua/tolua_bind.h ../../src/orxonox/tolua/tolua.pkg 23 DEPENDS 24 tolua_orxonox 25 tolua/tolua.pkg 26 gui/GUIManager.h 27 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib 28 ) 39 # Not using precompiled header files: Avoid dependencies 40 INCLUDE_DIRECTORIES(pch/nopch) 29 41 30 31 ADD_EXECUTABLE( orxonox ${ORXONOX_SRC_FILES} ) 42 ADD_EXECUTABLE(orxonox ${ORXONOX_FILES}) 43 GET_TARGET_PROPERTY(_exec_loc orxonox LOCATION) 44 GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME) 45 SET(ORXONOX_EXECUTABLE_NAME ${_exec_name} CACHE INTERNAL "") 32 46 33 47 IF(NETWORKTRAFFIC_TESTING_ENABLED) 34 35 SET( ORXONOXS_SRC_FILES 48 SET(ORXONOXS_SRC_FILES 36 49 GraphicsEngine.cc 37 50 objects/Camera.cc 38 51 CameraManager.cc 39 52 ) 40 41 ADD_LIBRARY(orxonoxs SHARED ${ORXONOX_SRC_FILES}) 53 ADD_LIBRARY(orxonoxs SHARED ${ORXONOXS_SRC_FILES}) 42 54 ENDIF(NETWORKTRAFFIC_TESTING_ENABLED) 43 55 44 TARGET_LINK_LIBRARIES( 45 ${OGRE_LIBRAR IES}46 ${CEGUI_LIBRAR IES}47 lua_orxonox48 ceguilua_orxonox49 tinyxml_orxonox50 tolualib_orxonox51 BulletDynamics52 BulletCollision53 LinearMath56 TARGET_LINK_LIBRARIES(orxonox 57 ${OGRE_LIBRARY} 58 ${CEGUI_LIBRARY} 59 ${LUA_LIBRARIES} 60 ${CEGUILUA_LIBRARY} 61 ${Boost_SYSTEM_LIBRARY} 62 ogreceguirenderer_orxonox 63 tinyxml++_orxonox 64 tolua++_orxonox 65 bullet_orxonox 54 66 util 55 67 core 56 audio57 68 network 69 #audio 58 70 ) 59 71 72 ORXONOX_INSTALL(orxonox) 73 74 75 # When using Visual Studio we want to use the output directory as working 76 # directory and we also want to specify where the external dlls 77 # (lua, ogre, etc.) are. The problem hereby is that these information cannot 78 # be specified in CMake because they are not stored in the actual project file. 79 # This workaround will create a configured *.vcproj.user file that holds the 80 # right values. When starting the solution for the first time, 81 # these get written to the *vcproj.yourPCname.yourname.user 82 IF(MSVC) 83 IF(CMAKE_CL_64) 84 SET(MSVC_PLATFORM "x64") 85 ELSE() 86 SET(MSVC_PLATFORM "Win32") 87 ENDIF() 88 STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?) .*$" "\\1" 89 VISUAL_STUDIO_VERSION_SIMPLE "${CMAKE_GENERATOR}") 90 CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox.vcproj.user" "${CMAKE_CURRENT_BINARY_DIR}/orxonox.vcproj.user") 91 ENDIF(MSVC) -
code/trunk/src/orxonox/CameraManager.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/CameraManager.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/CameraManager.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/CameraManager.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/Main.cc
r2662 r2710 30 30 /** 31 31 @file 32 @brief Entry point of the program. Platform specific code.32 @brief Entry point of the program. 33 33 */ 34 34 … … 38 38 #include <cassert> 39 39 40 #include " util/OrxonoxPlatform.h"40 #include "OrxonoxConfig.h" 41 41 #include "util/Debug.h" 42 42 #include "util/SignalHandler.h" … … 57 57 #include "gamestates/GSIOConsole.h" 58 58 59 #if ORXONOX_PLATFORM ==ORXONOX_PLATFORM_APPLE59 #ifdef ORXONOX_PLATFORM_APPLE 60 60 #include <CoreFoundation/CoreFoundation.h> 61 61 … … 85 85 86 86 87 //#ifdef __cplusplus88 //extern "C" {89 //#endif90 91 87 SetCommandLineArgument(settingsFile, "orxonox.ini"); 88 SetCommandLineArgument(configFileDirectory, ""); 92 89 93 90 int main(int argc, char** argv) … … 95 92 using namespace orxonox; 96 93 97 // create a signal handler (only worksfor linux)94 // create a signal handler (only active for linux) 98 95 SignalHandler signalHandler; 99 signalHandler.doCatch(argv[0], "orxonox.log");96 signalHandler.doCatch(argv[0], Core::getLogPathString() + "orxonox_crash.log"); 100 97 101 98 // Parse command line arguments … … 109 106 COUT(0) << "Usage:" << std::endl << "orxonox " << CommandLine::getUsageInformation() << std::endl; 110 107 } 108 109 // Do this after parsing the command line to allow customisation 110 Core::postMainInitialisation(); 111 111 112 112 // Create the ConfigFileManager before creating the GameStates in order to have … … 157 157 return 0; 158 158 } 159 160 //#ifdef __cplusplus161 //}162 //#endif -
code/trunk/src/orxonox/OrxonoxPrereqs.h
r2662 r2710 35 35 #define _OrxonoxPrereqs_H__ 36 36 37 #include " util/OrxonoxPlatform.h"37 #include "OrxonoxConfig.h" 38 38 39 39 //----------------------------------------------------------------------- 40 40 // Shared library settings 41 41 //----------------------------------------------------------------------- 42 #if (ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32) && !(defined(ORXONOX_STATIC_BUILD) || defined(ORXONOX_NO_EXPORTS)) 42 #define ORXONOX_NO_EXPORTS // This is an executable that needs no exports 43 #if defined(ORXONOX_PLATFORM_WINDOWS) && !(defined(ORXONOX_STATIC_BUILD) || defined(ORXONOX_NO_EXPORTS)) 43 44 # ifdef ORXONOX_SHARED_BUILD 44 45 # define _OrxonoxExport __declspec(dllexport) -
code/trunk/src/orxonox/gamestates/CMakeLists.txt
- Property svn:eol-style set to native
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 GSDedicated.cc 3 3 GSClient.cc … … 10 10 GSStandalone.cc 11 11 ) 12 13 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/gamestates/GSGraphics.cc
r2662 r2710 31 31 32 32 #include <fstream> 33 #include <boost/filesystem.hpp> 34 33 35 #include <OgreCompositorManager.h> 34 36 #include <OgreConfigFile.h> … … 43 45 #include <OgreWindowEventUtilities.h> 44 46 47 #include "SpecialConfig.h" 45 48 #include "util/Debug.h" 46 49 #include "util/Exception.h" 50 #include "util/String.h" 51 #include "util/SubString.h" 47 52 #include "core/ConsoleCommand.h" 48 53 #include "core/ConfigValueIncludes.h" … … 57 62 #include "gui/GUIManager.h" 58 63 #include "tools/WindowEventListener.h" 59 #include "Settings.h"60 64 61 65 // for compatibility … … 92 96 SetConfigValue(ogreConfigFile_, "ogre.cfg") 93 97 .description("Location of the Ogre config file"); 94 SetConfigValue(ogrePluginsFile_, "plugins.cfg") 95 .description("Location of the Ogre plugins file"); 98 SetConfigValue(ogrePluginsFolder_, ORXONOX_OGRE_PLUGINS_FOLDER) 99 .description("Folder where the Ogre plugins are located."); 100 SetConfigValue(ogrePlugins_, ORXONOX_OGRE_PLUGINS) 101 .description("Comma separated list of all plugins to load."); 96 102 SetConfigValue(ogreLogFile_, "ogre.log") 97 103 .description("Logfile for messages from Ogre. Use \"\" to suppress log file creation."); … … 102 108 SetConfigValue(ogreLogLevelCritical_, 2) 103 109 .description("Corresponding orxonox debug level for ogre Critical"); 104 SetConfigValue(defaultMasterKeybindings_, "def_masterKeybindings.ini")105 .description("Filename of default master keybindings.");106 110 } 107 111 … … 115 119 // Ogre setup procedure 116 120 setupOgre(); 121 // load all the required plugins for Ogre 122 loadOgrePlugins(); 123 // read resource declaration file 117 124 this->declareResources(); 118 this->loadRenderer(); // creates the render window 125 // Reads ogre config and creates the render window 126 this->loadRenderer(); 127 119 128 // TODO: Spread this so that this call only initialises things needed for the Console and GUI 120 129 this->initialiseResources(); … … 127 136 // load debug overlay 128 137 COUT(3) << "Loading Debug Overlay..." << std::endl; 129 this->debugOverlay_ = new XMLFile( Settings::getDataPath() + "overlay/debug.oxo");138 this->debugOverlay_ = new XMLFile((Core::getMediaPath() / "overlay" / "debug.oxo").file_string()); 130 139 Loader::open(debugOverlay_); 131 140 … … 138 147 // Configure master input state with a KeyBinder 139 148 masterKeyBinder_ = new KeyBinder(); 140 masterKeyBinder_->loadBindings("masterKeybindings.ini" , defaultMasterKeybindings_);149 masterKeyBinder_->loadBindings("masterKeybindings.ini"); 141 150 inputManager_->getMasterInputState()->addKeyHandler(masterKeyBinder_); 142 151 … … 200 209 delete this->ogreRoot_; 201 210 202 //#if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32203 211 // delete the ogre log and the logManager (since we have created it). 204 212 this->ogreLogger_->getDefaultLog()->removeListener(this); 205 213 this->ogreLogger_->destroyLog(Ogre::LogManager::getSingleton().getDefaultLog()); 206 214 delete this->ogreLogger_; 207 //#endif208 215 209 216 delete graphicsEngine_; … … 276 283 COUT(3) << "Setting up Ogre..." << std::endl; 277 284 278 // TODO: LogManager doesn't work on oli platform. The why is yet unknown. 279 //#if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32 285 if (ogreConfigFile_ == "") 286 { 287 COUT(2) << "Warning: Ogre config file set to \"\". Defaulting to config.cfg" << std::endl; 288 ModifyConfigValue(ogreConfigFile_, tset, "config.cfg"); 289 } 290 if (ogreLogFile_ == "") 291 { 292 COUT(2) << "Warning: Ogre log file set to \"\". Defaulting to ogre.log" << std::endl; 293 ModifyConfigValue(ogreLogFile_, tset, "ogre.log"); 294 } 295 296 boost::filesystem::path ogreConfigFilepath(Core::getConfigPath() / this->ogreConfigFile_); 297 boost::filesystem::path ogreLogFilepath(Core::getLogPath() / this->ogreLogFile_); 298 280 299 // create a new logManager 300 // Ogre::Root will detect that we've already created a Log 281 301 ogreLogger_ = new Ogre::LogManager(); 282 302 COUT(4) << "Ogre LogManager created" << std::endl; … … 284 304 // create our own log that we can listen to 285 305 Ogre::Log *myLog; 286 if (this->ogreLogFile_ == "") 287 myLog = ogreLogger_->createLog("ogre.log", true, false, true); 288 else 289 myLog = ogreLogger_->createLog(this->ogreLogFile_, true, false, false); 306 myLog = ogreLogger_->createLog(ogreLogFilepath.file_string(), true, false, false); 290 307 COUT(4) << "Ogre Log created" << std::endl; 291 308 292 309 myLog->setLogDetail(Ogre::LL_BOREME); 293 310 myLog->addListener(this); 294 //#endif 295 296 // Root will detect that we've already created a Log 311 297 312 COUT(4) << "Creating Ogre Root..." << std::endl; 298 313 299 if (ogrePluginsFile_ == "")300 {301 COUT(2) << "Warning: Ogre plugins file set to \"\". Defaulting to plugins.cfg" << std::endl;302 ModifyConfigValue(ogrePluginsFile_, tset, "plugins.cfg");303 }304 if (ogreConfigFile_ == "")305 {306 COUT(2) << "Warning: Ogre config file set to \"\". Defaulting to config.cfg" << std::endl;307 ModifyConfigValue(ogreConfigFile_, tset, "config.cfg");308 }309 if (ogreLogFile_ == "")310 {311 COUT(2) << "Warning: Ogre log file set to \"\". Defaulting to ogre.log" << std::endl;312 ModifyConfigValue(ogreLogFile_, tset, "ogre.log");313 }314 315 314 // check for config file existence because Ogre displays (caught) exceptions if not 316 std::ifstream probe; 317 probe.open(ogreConfigFile_.c_str()); 318 if (!probe) 315 if (!boost::filesystem::exists(ogreConfigFilepath)) 319 316 { 320 317 // create a zero sized file 321 318 std::ofstream creator; 322 creator.open(ogreConfigFile _.c_str());319 creator.open(ogreConfigFilepath.file_string().c_str()); 323 320 creator.close(); 324 321 } 325 else 326 probe.close(); 327 328 ogreRoot_ = new Ogre::Root(ogrePluginsFile_, ogreConfigFile_, ogreLogFile_); 329 330 #if 0 // Ogre 1.4.3 doesn't yet support setDebugOutputEnabled(.) 331 #if ORXONOX_PLATFORM != ORXONOX_PLATFORM_WIN32 332 // tame the ogre ouput so we don't get all the mess in the console 333 Ogre::Log* defaultLog = Ogre::LogManager::getSingleton().getDefaultLog(); 334 defaultLog->setDebugOutputEnabled(false); 335 defaultLog->setLogDetail(Ogre::LL_BOREME); 336 defaultLog->addListener(this); 337 #endif 338 #endif 322 323 // Leave plugins file empty. We're going to do that part manually later 324 ogreRoot_ = new Ogre::Root("", ogreConfigFilepath.file_string(), ogreLogFilepath.file_string()); 339 325 340 326 COUT(3) << "Ogre set up done." << std::endl; 327 } 328 329 void GSGraphics::loadOgrePlugins() 330 { 331 // just to make sure the next statement doesn't segfault 332 if (ogrePluginsFolder_ == "") 333 ogrePluginsFolder_ = "."; 334 335 boost::filesystem::path folder(ogrePluginsFolder_); 336 // Do some SubString magic to get the comma separated list of plugins 337 SubString plugins(ogrePlugins_, ",", " ", false, 92, false, 34, false, 40, 41, false, '\0'); 338 for (unsigned int i = 0; i < plugins.size(); ++i) 339 ogreRoot_->loadPlugin((folder / plugins[i]).file_string()); 341 340 } 342 341 … … 357 356 try 358 357 { 359 cf.load( Settings::getDataPath() + resourceFile_);358 cf.load((Core::getMediaPath() / resourceFile_).file_string()); 360 359 } 361 360 catch (...) … … 383 382 384 383 Ogre::ResourceGroupManager::getSingleton().addResourceLocation( 385 std::string(Settings::getDataPath() + archName), typeName, secName);384 (Core::getMediaPath() / archName).directory_string(), typeName, secName); 386 385 } 387 386 } -
code/trunk/src/orxonox/gamestates/GSGraphics.h
r2662 r2710 60 60 61 61 void setupOgre(); 62 void loadOgrePlugins(); 62 63 void declareResources(); 63 64 void loadRenderer(); … … 98 99 std::string resourceFile_; //!< resources file name 99 100 std::string ogreConfigFile_; //!< ogre config file name 100 std::string ogrePluginsFile_; //!< ogre plugins file name 101 std::string ogrePluginsFolder_; //!< Folder where the Ogre plugins are located 102 std::string ogrePlugins_; //!< Comma separated list of all plugins to load 101 103 std::string ogreLogFile_; //!< log file name for Ogre log messages 102 104 int ogreLogLevelTrivial_; //!< Corresponding Orxonx debug level for LL_TRIVIAL 103 105 int ogreLogLevelNormal_; //!< Corresponding Orxonx debug level for LL_NORMAL 104 106 int ogreLogLevelCritical_; //!< Corresponding Orxonx debug level for LL_CRITICAL 105 std::string defaultMasterKeybindings_; //!< Filename of default master keybindings.106 107 107 108 // console commands -
code/trunk/src/orxonox/gamestates/GSLevel.cc
r2662 r2710 46 46 #include "LevelManager.h" 47 47 #include "PlayerManager.h" 48 #include "Settings.h"49 48 50 49 namespace orxonox … … 76 75 { 77 76 SetConfigValue(keyDetectorCallbackCode_, "KeybindBindingStringKeyName="); 78 SetConfigValue(defaultKeybindings_, "def_keybindings.ini")79 .description("Filename of default keybindings.");80 77 } 81 78 … … 86 83 inputState_ = InputManager::getInstance().createInputState<SimpleInputState>("game", 20); 87 84 keyBinder_ = new KeyBinder(); 88 keyBinder_->loadBindings("keybindings.ini" , defaultKeybindings_);85 keyBinder_->loadBindings("keybindings.ini"); 89 86 inputState_->setHandler(keyBinder_); 90 87 … … 205 202 std::string levelName; 206 203 CommandLine::getValue("level", &levelName); 207 startFile_ = new XMLFile( Settings::getDataPath() + std::string("levels/")+ levelName);204 startFile_ = new XMLFile(Core::getMediaPathString() + "levels" + CP_SLASH + levelName); 208 205 Loader::open(startFile_); 209 206 } -
code/trunk/src/orxonox/gamestates/GSLevel.h
r2662 r2710 66 66 //##### ConfigValues ##### 67 67 std::string keyDetectorCallbackCode_; 68 //! Filename of default keybindings.69 std::string defaultKeybindings_;70 68 71 69 // console commands -
code/trunk/src/orxonox/gamestates/GSRoot.cc
r2662 r2710 44 44 #include "tools/Timer.h" 45 45 #include "objects/Tickable.h" 46 #include "Settings.h" 47 48 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32 46 47 #ifdef ORXONOX_PLATFORM_WINDOWS 49 48 # ifndef WIN32_LEAN_AND_MEAN 50 49 # define WIN32_LEAN_AND_MEAN … … 63 62 namespace orxonox 64 63 { 65 SetCommandLineArgument(dataPath, "").information("PATH");66 64 SetCommandLineArgument(limitToCPU, 1).information("0: off | #cpu"); 67 65 … … 71 69 , bPaused_(false) 72 70 , timeFactorPauseBackup_(1.0f) 73 , settings_(0)74 71 , tclBind_(0) 75 72 , tclThreadManager_(0) … … 113 110 this->luaBind_ = new LuaBind(); 114 111 115 // instantiate Settings class116 this->settings_ = new Settings();117 118 std::string dataPath = CommandLine::getValue("dataPath");119 if (dataPath != "")120 {121 if (*dataPath.end() != '/' && *dataPath.end() != '\\')122 Settings::tsetDataPath(dataPath + "/");123 else124 Settings::tsetDataPath(dataPath);125 }126 127 112 // initialise TCL 128 this->tclBind_ = new TclBind( Settings::getDataPath());113 this->tclBind_ = new TclBind(Core::getMediaPathPOSIXString()); 129 114 this->tclThreadManager_ = new TclThreadManager(tclBind_->getTclInterpreter()); 130 115 … … 182 167 delete this->tclBind_; 183 168 184 delete this->settings_;185 169 delete this->luaBind_; 186 170 … … 269 253 void GSRoot::setThreadAffinity(unsigned int limitToCPU) 270 254 { 271 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32255 #ifdef ORXONOX_PLATFORM_WINDOWS 272 256 // Get the current process core mask 273 257 DWORD procMask; -
code/trunk/src/orxonox/gamestates/GSRoot.h
r2662 r2710 81 81 bool bPaused_; 82 82 float timeFactorPauseBackup_; 83 Settings* settings_;84 83 TclBind* tclBind_; 85 84 TclThreadManager* tclThreadManager_; -
code/trunk/src/orxonox/gui/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 GUIManager.cc 3 OgreCEGUIRenderer.cpp4 OgreCEGUIResourceProvider.cpp5 OgreCEGUITexture.cpp6 3 ) 7 8 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/gui/GUIManager.cc
r2662 r2710 36 36 #include "GUIManager.h" 37 37 38 #include <boost/filesystem.hpp> 38 39 #include <OgreRenderWindow.h> 39 40 #include <OgreRoot.h> 40 41 #include <CEGUI.h> 41 #include "ceguilua/CEGUILua.h" 42 #include <CEGUIDefaultLogger.h> 43 #include <ogreceguirenderer/OgreCEGUIRenderer.h> 44 #include "SpecialConfig.h" // Configures the macro below 45 #ifdef CEGUILUA_USE_INTERNAL_LIBRARY 46 # include <ceguilua/CEGUILua.h> 47 #else 48 # include <CEGUILua.h> 49 #endif 50 42 51 #include "util/Exception.h" 43 52 #include "core/input/InputManager.h" 44 53 #include "core/input/SimpleInputState.h" 45 #include "core/tolua/tolua_bind.h"46 54 #include "core/ConsoleCommand.h" 47 55 #include "core/Core.h" 48 #include "tolua/tolua_bind.h" 49 #include "OgreCEGUIRenderer.h" 50 51 #include "lua/lua.hpp" 56 #include "ToluaBindCore.h" 57 #include "ToluaBindOrxonox.h" 58 59 extern "C" { 60 #include <lua.h> 61 } 52 62 53 63 namespace orxonox … … 100 110 lua_pushnil(luaState_); 101 111 lua_setglobal(luaState_, "Core"); 102 // TODO: deleting the script module fails an assert ation.112 // TODO: deleting the script module fails an assertion. 103 113 // However there is not much we can do about it since it occurs too when 104 114 // we don't open Core or Orxonox. Might be a CEGUI issue. … … 141 151 this->luaState_ = this->scriptModule_->getLuaState(); 142 152 153 // Create our own logger to specify the filepath 154 boost::filesystem::path ceguiLogFilepath(Core::getLogPath() / "cegui.log"); 155 this->ceguiLogger_ = new DefaultLogger(); 156 this->ceguiLogger_->setLogFilename(ceguiLogFilepath.file_string()); 157 // set the log level according to ours (translate by subtracting 1) 158 this->ceguiLogger_->setLoggingLevel( 159 (LoggingLevel)(Core::getSoftDebugLevel(OutputHandler::LD_Logfile) - 1)); 160 143 161 // create the CEGUI system singleton 144 162 this->guiSystem_ = new System(this->guiRenderer_, this->resourceProvider_, 0, this->scriptModule_); 145 146 // set the log level according to ours (translate by subtracting 1)147 Logger::getSingleton().setLoggingLevel(148 (LoggingLevel)(Core::getSoftDebugLevel(OutputHandler::LD_Logfile) - 1));149 163 150 164 // do this after 'new CEGUI::Sytem' because that creates the lua state in the first place -
code/trunk/src/orxonox/gui/GUIManager.h
r1887 r2710 42 42 #include "core/input/InputInterfaces.h" 43 43 44 namespace orxonox // tolua_export 45 { // tolua_export 44 // Forward declaration 45 namespace CEGUI { class DefaultLogger; } 46 47 // tolua_begin 48 namespace orxonox 49 { 46 50 /** 47 51 @brief 48 52 Provides a simple interface to CEGUI with tolua methods and console commands 49 53 */ 50 class _OrxonoxExport GUIManager : public KeyHandler, public MouseHandler51 /* 52 class GUIManager { // tolua_export53 */ 54 class _OrxonoxExport GUIManager 55 // tolua_end 56 : public KeyHandler, public MouseHandler 57 // tolua_begin 54 58 { 59 // tolua_end 55 60 public: 56 61 enum State … … 117 122 CEGUI::ResourceProvider* resourceProvider_; 118 123 CEGUI::LuaScriptModule* scriptModule_; 124 CEGUI::DefaultLogger* ceguiLogger_; 119 125 CEGUI::System* guiSystem_; 120 126 CEGUI::Imageset* backgroundImage_; -
code/trunk/src/orxonox/objects/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 EventListener.cc 3 3 EventDispatcher.cc … … 14 14 ) 15 15 16 ADD_S OURCE_DIRECTORY(SRC_FILEScollisionshapes)17 ADD_S OURCE_DIRECTORY(SRC_FILEScontrollers)18 ADD_S OURCE_DIRECTORY(SRC_FILESgametypes)19 ADD_S OURCE_DIRECTORY(SRC_FILESinfos)20 ADD_S OURCE_DIRECTORY(SRC_FILESitems)21 ADD_S OURCE_DIRECTORY(SRC_FILESpickup)22 ADD_S OURCE_DIRECTORY(SRC_FILESquest)23 ADD_S OURCE_DIRECTORY(SRC_FILESweaponSystem)24 ADD_S OURCE_DIRECTORY(SRC_FILESworldentities)16 ADD_SUBDIRECTORY(collisionshapes) 17 ADD_SUBDIRECTORY(controllers) 18 ADD_SUBDIRECTORY(gametypes) 19 ADD_SUBDIRECTORY(infos) 20 ADD_SUBDIRECTORY(items) 21 ADD_SUBDIRECTORY(pickup) 22 ADD_SUBDIRECTORY(quest) 23 ADD_SUBDIRECTORY(weaponSystem) 24 ADD_SUBDIRECTORY(worldentities) 25 25 26 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/Level.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/Level.cc (added) merged: 2664,2685,2702
r2662 r2710 35 35 #include "core/XMLFile.h" 36 36 #include "core/Template.h" 37 #include "core/Core.h" 37 38 38 #include "Settings.h"39 39 #include "LevelManager.h" 40 40 #include "objects/infos/PlayerInfo.h" … … 55 55 this->xmlfilename_ = this->getFilename(); 56 56 57 if (this->xmlfilename_.length() >= Settings::getDataPath().length())58 this->xmlfilename_ = this->xmlfilename_.substr( Settings::getDataPath().length());57 if (this->xmlfilename_.length() >= Core::getMediaPathString().length()) 58 this->xmlfilename_ = this->xmlfilename_.substr(Core::getMediaPathString().length()); 59 59 } 60 60 … … 97 97 mask.include(Class(OverlayGroup)); // HACK to include the ChatOverlay 98 98 99 this->xmlfile_ = new XMLFile( Settings::getDataPath() + this->xmlfilename_, mask);99 this->xmlfile_ = new XMLFile(Core::getMediaPathString() + this->xmlfilename_, mask); 100 100 101 101 Loader::open(this->xmlfile_); - Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/Level.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/Level.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/collisionshapes
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/collisionshapes (added) merged: 2665
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/collisionshapes/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 BoxCollisionShape.cc 3 3 CollisionShape.cc … … 8 8 WorldEntityCollisionShape.cc 9 9 ) 10 11 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/controllers/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Controller.cc 3 3 HumanController.cc … … 6 6 ScriptController.cc 7 7 ) 8 9 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/gametypes/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Gametype.cc 3 3 ) 4 5 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/gametypes/Gametype.cc
r2662 r2710 43 43 #include "objects/worldentities/SpawnPoint.h" 44 44 #include "objects/worldentities/Camera.h" 45 #include "Settings.h"46 45 47 46 #include "network/Host.h" -
code/trunk/src/orxonox/objects/infos/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Bot.cc 3 3 Info.cc … … 6 6 GametypeInfo.cc 7 7 ) 8 9 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/items/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Item.cc 3 3 Engine.cc 4 4 MultiStateEngine.cc 5 5 ) 6 7 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/pickup/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 PickupSpawner.cc 3 3 BaseItem.cc … … 5 5 ShipEquipment.cc 6 6 ) 7 8 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/pickup/Usable.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/pickup/Usable.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddQuest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddQuest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddQuest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddQuest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddQuestHint.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddQuestHint.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddQuestHint.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddQuestHint.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddReward.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddReward.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddReward.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddReward.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 AddQuest.cc 3 3 AddQuestHint.cc … … 18 18 Rewardable.cc 19 19 ) 20 21 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/quest/ChangeQuestStatus.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/ChangeQuestStatus.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/ChangeQuestStatus.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/ChangeQuestStatus.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/CompleteQuest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/CompleteQuest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/CompleteQuest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/CompleteQuest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/FailQuest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/FailQuest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/FailQuest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/FailQuest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/GlobalQuest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/GlobalQuest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/GlobalQuest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/GlobalQuest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/LocalQuest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/LocalQuest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/LocalQuest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/LocalQuest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/Quest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/Quest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/Quest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/Quest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestDescription.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestDescription.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestDescription.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestDescription.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestEffect.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestEffect.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestEffect.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestEffect.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestHint.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestHint.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestHint.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestHint.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestItem.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestItem.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestItem.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestItem.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestManager.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestManager.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestManager.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestManager.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/Rewardable.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/Rewardable.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/Rewardable.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/Rewardable.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/weaponSystem/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Munition.cc 3 3 Weapon.cc … … 8 8 ) 9 9 10 ADD_SOURCE_DIRECTORY(SRC_FILES munitions) 11 ADD_SOURCE_DIRECTORY(SRC_FILES projectiles) 12 ADD_SOURCE_DIRECTORY(SRC_FILES weapons) 13 14 ADD_SOURCE_FILES(SRC_FILES) 10 ADD_SUBDIRECTORY(munitions) 11 ADD_SUBDIRECTORY(projectiles) 12 ADD_SUBDIRECTORY(weapons) -
code/trunk/src/orxonox/objects/weaponSystem/WeaponPack.cc
- Property svn:eol-style set to native
-
code/trunk/src/orxonox/objects/weaponSystem/WeaponPack.h
- Property svn:eol-style set to native
-
code/trunk/src/orxonox/objects/weaponSystem/WeaponSystem.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/weaponSystem/WeaponSystem.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/weaponSystem/WeaponSystem.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/weaponSystem/WeaponSystem.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/weaponSystem/munitions/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 LaserGunMunition.cc 3 3 ) 4 5 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/weaponSystem/projectiles/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 BillboardProjectile.cc 3 3 ParticleProjectile.cc 4 4 Projectile.cc 5 5 ) 6 7 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/weaponSystem/weapons/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Fusion.cc 3 3 LaserGun.cc 4 4 # Missile.cc 5 5 ) 6 7 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/weaponSystem/weapons/Fusion.cc
- Property svn:eol-style set to native
-
code/trunk/src/orxonox/objects/weaponSystem/weapons/Fusion.h
- Property svn:eol-style set to native
-
code/trunk/src/orxonox/objects/worldentities/Backlight.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Backlight.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/Backlight.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Backlight.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 WorldEntity.cc 3 3 StaticEntity.cc … … 21 21 ) 22 22 23 ADD_SOURCE_DIRECTORY(SRC_FILES pawns) 24 ADD_SOURCE_DIRECTORY(SRC_FILES triggers) 25 26 ADD_SOURCE_FILES(SRC_FILES) 23 ADD_SUBDIRECTORY(pawns) 24 ADD_SUBDIRECTORY(triggers) -
code/trunk/src/orxonox/objects/worldentities/Camera.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Camera.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/Camera.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Camera.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/MobileEntity.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/MobileEntity.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/ParticleSpawner.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/ParticleSpawner.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/ParticleSpawner.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/ParticleSpawner.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/Planet.cc
r2662 r2710 74 74 if(activeCamera) 75 75 { 76 Realdistance = this->getPosition().distance( activeCamera->getWorldPosition() );76 float distance = this->getPosition().distance( activeCamera->getWorldPosition() ); 77 77 // COUT(2) << distance << std::endl; 78 RealplanetRadius = this->getScale();78 float planetRadius = this->getScale(); 79 79 80 RealnewScale = 2 * distance / sqrt(distance*distance - planetRadius*planetRadius);81 Real tempTest = newScale*(1+Real(this->atmosphereSize)/Real(this->imageSize));80 float newScale = 2 * distance / sqrt(distance*distance - planetRadius*planetRadius); 81 float tempTest = newScale*(1+float(this->atmosphereSize)/float(this->imageSize)); 82 82 newScale = tempTest; 83 83 … … 90 90 void Planet::init() 91 91 { 92 RealscaleFactor = this->getScale();92 float scaleFactor = this->getScale(); 93 93 94 94 this->distList.push_back(10.0*scaleFactor); … … 103 103 this->distList.push_back(55.0*scaleFactor); 104 104 105 RealreductionValue = 0.2;105 float reductionValue = 0.2; 106 106 107 107 this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, reductionValue); -
code/trunk/src/orxonox/objects/worldentities/Planet.h
r2662 r2710 71 71 } 72 72 73 inline void setAtmosphereSize( Realsize){73 inline void setAtmosphereSize(float size){ 74 74 this->atmosphereSize = size; 75 75 } 76 76 77 inline RealgetAtmosphereSize(){77 inline float getAtmosphereSize(){ 78 78 return this->atmosphereSize; 79 79 } … … 87 87 } 88 88 89 inline void setImageSize( Realsize){89 inline void setImageSize(float size){ 90 90 this->imageSize = size; 91 91 } 92 92 93 inline RealgetImageSize(){93 inline float getImageSize(){ 94 94 return this->imageSize; 95 95 } … … 106 106 std::string atmosphere_; 107 107 Mesh mesh_; 108 RealatmosphereSize;109 RealimageSize;108 float atmosphereSize; 109 float imageSize; 110 110 Ogre::Mesh::LodDistanceList distList; 111 111 BillboardSet billboard_; -
code/trunk/src/orxonox/objects/worldentities/StaticEntity.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/StaticEntity.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/pawns/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Spectator.cc 3 3 Pawn.cc 4 4 SpaceShip.cc 5 5 ) 6 7 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/worldentities/triggers/CMakeLists.txt
r2261 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Trigger.cc 3 3 DistanceTrigger.cc … … 5 5 PlayerTrigger.cc 6 6 ) 7 8 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/triggers/Trigger.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/Trigger.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/triggers/Trigger.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/Trigger.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/overlays/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 OrxonoxOverlay.cc 3 3 OverlayGroup.cc … … 5 5 ) 6 6 7 ADD_S OURCE_DIRECTORY(SRC_FILESconsole)8 ADD_S OURCE_DIRECTORY(SRC_FILESdebug)9 ADD_S OURCE_DIRECTORY(SRC_FILEShud)10 ADD_S OURCE_DIRECTORY(SRC_FILESnotifications)11 ADD_S OURCE_DIRECTORY(SRC_FILESstats)7 ADD_SUBDIRECTORY(console) 8 ADD_SUBDIRECTORY(debug) 9 ADD_SUBDIRECTORY(hud) 10 ADD_SUBDIRECTORY(notifications) 11 ADD_SUBDIRECTORY(stats) 12 12 13 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/overlays/console/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 InGameConsole.cc 3 3 ) 4 5 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/overlays/debug/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 DebugFPSText.cc 3 3 DebugRTRText.cc 4 4 ) 5 6 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/overlays/hud/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 HUDBar.cc 3 3 HUDNavigation.cc … … 8 8 GametypeStatus.cc 9 9 ) 10 11 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/overlays/hud/HUDBar.cc
r2662 r2710 117 117 if (this->colours_.size() > 0) 118 118 { 119 ColourValue colour1, colour2 = (*this->colours_.rbegin()).second; 120 float value1, value2 = (*this->colours_.rbegin()).first; 119 ColourValue colour1(0, 0, 0, 1); 120 ColourValue colour2 = (*this->colours_.rbegin()).second; 121 float value1(0); 122 float value2 = (*this->colours_.rbegin()).first; 121 123 for (std::map<float, ColourValue>::reverse_iterator it = this->colours_.rbegin(); it != this->colours_.rend(); ++it) 122 124 { -
code/trunk/src/orxonox/overlays/notifications/CMakeLists.txt
- Property svn:eol-style set to native
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Notification.cc 3 3 NotificationManager.cc 4 4 NotificationQueue.cc 5 5 ) 6 7 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/overlays/stats/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 CreateLines.cc 3 3 Scoreboard.cc … … 5 5 StatsTest.cc 6 6 ) 7 8 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/tools/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 BillboardSet.cc 3 3 Mesh.cc … … 8 8 WindowEventListener.cc 9 9 ) 10 11 ADD_SOURCE_FILES(SRC_FILES)
Note: See TracChangeset
for help on using the changeset viewer.