Changeset 4556 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 8, 2005, 2:35:10 PM (20 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/Makefile.am
r4380 r4556 1 AUTOMAKE_OPTIONS = foreign no-installman no-installinfo 1 AUTOMAKE_OPTIONS = foreign no-installman no-installinfo 2 2 3 SUBDIRS = src 3 SUBDIRS = src 4 4 5 5 EXTRA_DIST = CODING-STANDARDS \ 6 7 8 9 10 11 12 13 14 doc/doxyconf/project 6 IDEAS \ 7 TASKS \ 8 doc/CREDITS \ 9 doc/doxyconf/build \ 10 doc/doxyconf/confopts \ 11 doc/doxyconf/input \ 12 doc/doxyconf/preprocessor \ 13 doc/doxyconf/progress \ 14 doc/doxyconf/project 15 15 16 16 ## doxygen stuff … … 19 19 20 20 ## Exclude the application wizard templates, and some file templates 21 DOXYGEN_EXCLUDE = 21 DOXYGEN_EXCLUDE = 22 22 23 DOXYGEN_EXAMPLE_PATH = 23 DOXYGEN_EXAMPLE_PATH = 24 24 25 25 ## Use Search engine (Versions 1.3.4 and above only!) -
orxonox/trunk/Makefile.in
r4380 r4556 180 180 target_os = @target_os@ 181 181 target_vendor = @target_vendor@ 182 AUTOMAKE_OPTIONS = foreign no-installman no-installinfo 183 SUBDIRS = src 182 AUTOMAKE_OPTIONS = foreign no-installman no-installinfo 183 SUBDIRS = src 184 184 EXTRA_DIST = CODING-STANDARDS \ 185 186 187 188 189 190 191 192 193 doc/doxyconf/project 185 IDEAS \ 186 TASKS \ 187 doc/CREDITS \ 188 doc/doxyconf/build \ 189 doc/doxyconf/confopts \ 190 doc/doxyconf/input \ 191 doc/doxyconf/preprocessor \ 192 doc/doxyconf/progress \ 193 doc/doxyconf/project 194 194 195 195 @DOXYGEN_TRUE@DOXYGEN_INPUT = "src" -
orxonox/trunk/configure
r4531 r4556 3942 3942 3943 3943 if test x$DEBUG = xno; then 3944 3945 3946 3944 echo "no" 3945 echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." 3946 DEBUG=4 3947 3947 elif test x$DEBUG = xyes; then 3948 3949 3950 3951 else 3952 3948 echo "yes" 3949 echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." 3950 DEBUG=4 3951 else 3952 echo "yes: setting debuglevel to to $DEBUG" 3953 3953 fi 3954 3954 … … 3973 3973 3974 3974 if test x$MODULAR_DEBUG = xno; then 3975 3975 echo "no" 3976 3976 elif test x$MODULAR_DEBUG = xyes; then 3977 3977 echo "yes" 3978 3978 3979 3979 cat >>confdefs.h <<_ACEOF … … 4285 4285 4286 4286 # checking gl header 4287 4287 #done before loop 4288 4288 4289 4289 # checking gl header … … 4580 4580 4581 4581 if test x$FOUND_opengl32 = xyes ; then 4582 4582 LIBS="$LIBS -lopengl32" 4583 4583 else 4584 4585 4586 4587 4588 4584 echo "------------------" 4585 echo "opengl not found." 4586 echo "please install the opengl package which can be found at http://www.opengl.org" 4587 echo "------------------" 4588 exit -1 4589 4589 fi 4590 4590 … … 4809 4809 4810 4810 if test x$FOUND_glu32 = xyes ; then 4811 4811 LIBS="$LIBS -lGLU32" 4812 4812 else 4813 4814 4815 4816 4817 4813 echo "------------------" 4814 echo "GLU library not found." 4815 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 4816 echo "------------------" 4817 exit -1 4818 4818 fi 4819 4819 … … 4882 4882 4883 4883 if test x$FOUND_mingw32 = xyes; then 4884 4884 LIBS="$LIBS -lmingw32" 4885 4885 fi 4886 4886 # checking for SDL-headers … … 5423 5423 LIBS="$LIBS -lGL" 5424 5424 else 5425 5426 5427 5428 5429 5425 echo "------------------" 5426 echo "opengl not found." 5427 echo "please install the opengl package which can be found at http://www.opengl.org" 5428 echo "------------------" 5429 exit -1 5430 5430 fi 5431 5431 … … 5657 5657 LIBS="$LIBS -lGLU" 5658 5658 else 5659 5660 5661 5662 5663 5659 echo "------------------" 5660 echo "GLU library not found." 5661 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 5662 echo "------------------" 5663 exit -1 5664 5664 fi 5665 5665 … … 5888 5888 echo "------------------" 5889 5889 echo "SDL library not found." 5890 5890 echo "please install the SDL library, which can be found at http://www.libsdl.org" 5891 5891 echo "------------------" 5892 5892 exit -1 … … 6481 6481 echo "------------------" 6482 6482 echo "openal library not found." 6483 6483 echo "please install the openal library, which can be found at http://www.openal.org" 6484 6484 echo "------------------" 6485 6485 exit -1 … … 6712 6712 echo "------------------" 6713 6713 echo "ogg library not found." 6714 6714 echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 6715 6715 echo "------------------" 6716 6716 exit -1 … … 6788 6788 echo "------------------" 6789 6789 echo "vorbis library not found." 6790 6790 echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 6791 6791 echo "------------------" 6792 6792 exit -1 … … 7019 7019 echo "------------------" 7020 7020 echo "vorbisfile library not found." 7021 7021 echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 7022 7022 echo "------------------" 7023 7023 exit -1 … … 7251 7251 echo "------------------" 7252 7252 echo "SDL_ttf library not found." 7253 7253 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 7254 7254 echo "------------------" 7255 7255 exit -1 … … 7490 7490 #-----# 7491 7491 if test x$def_gtk = xyes; then 7492 7493 7492 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 7493 echo "$as_me:$LINENO: checking for gtk2.0" >&5 7494 7494 echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 7495 7496 7497 7498 7499 7495 if `$PKG_CONFIG --exists gtk+-2.0`; then 7496 echo "yes" 7497 have_gtk2=yes 7498 GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 7499 GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 7500 7500 7501 7501 cat >>confdefs.h <<_ACEOF … … 7503 7503 _ACEOF 7504 7504 7505 7506 7507 7508 7509 7510 7511 7505 if test $DEBUG -ge 3; then 7506 echo "cflags: $GTK2_CFLAGS" 7507 echo "libs: $GTK2_LIBS" 7508 fi 7509 else 7510 echo "no" 7511 fi 7512 7512 7513 7513 fi -
orxonox/trunk/src/Makefile.am
r4539 r4556 6 6 7 7 8 bin_PROGRAMS = orxonox 8 bin_PROGRAMS = orxonox 9 9 10 10 orxonox_DEPENDENCIES = lib/gui/libORXgui.a \ 11 12 13 14 15 16 lib/tinyxml/libtinyxml.a 11 lib/sound/libORXsound.a \ 12 lib/event/libORXevent.a \ 13 lib/physics/libORXphysics.a \ 14 lib/particles/libORXparticles.a \ 15 lib/collision_detection/libORXcd.a \ 16 lib/tinyxml/libtinyxml.a 17 17 18 18 orxonox_LDADD = lib/gui/libORXgui.a \ 19 20 21 22 23 19 lib/sound/libORXsound.a \ 20 lib/event/libORXevent.a \ 21 lib/physics/libORXphysics.a \ 22 lib/particles/libORXparticles.a \ 23 lib/collision_detection/libORXcd.a \ 24 24 lib/tinyxml/libtinyxml.a \ 25 25 $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS) 26 26 27 27 28 orxonox_SOURCES = orxonox.cc \29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 28 orxonox_SOURCES = orxonox.cc \ 29 util/loading/game_loader.cc \ 30 util/track/track_manager.cc \ 31 util/track/track_node.cc \ 32 util/track/pilot_node.cc \ 33 util/animation/animation.cc \ 34 util/animation/animation3d.cc \ 35 util/animation/animation_player.cc \ 36 util/object_manager.cc \ 37 util/garbage_collector.cc \ 38 util/resource_manager.cc \ 39 util/loading/factory.cc \ 40 util/loading/load_param.cc \ 41 util/state.cc \ 42 story_entities/story_entity.cc \ 43 story_entities/campaign.cc \ 44 story_entities/world.cc \ 45 world_entities/world_entity.cc \ 46 world_entities/camera.cc \ 47 world_entities/player.cc \ 48 world_entities/environment.cc \ 49 world_entities/skysphere.cc \ 50 world_entities/skybox.cc \ 51 world_entities/terrain.cc \ 52 world_entities/weapon.cc \ 53 world_entities/projectile.cc \ 54 world_entities/satellite.cc \ 55 world_entities/character_attributes.cc \ 56 world_entities/test_gun.cc \ 57 world_entities/test_bullet.cc \ 58 world_entities/test_entity.cc \ 59 lib/coord/p_node.cc \ 60 lib/coord/null_parent.cc \ 61 lib/coord/helper_parent.cc \ 62 lib/graphics/graphics_engine.cc \ 63 lib/graphics/light.cc \ 64 lib/graphics/text_engine.cc \ 65 lib/graphics/importer/array.cc \ 66 lib/graphics/importer/objModel.cc \ 67 lib/graphics/importer/md2Model.cc \ 68 lib/graphics/importer/primitive_model.cc \ 69 lib/graphics/importer/model.cc \ 70 lib/graphics/importer/material.cc \ 71 lib/graphics/importer/texture.cc \ 72 lib/lang/base_object.cc \ 73 lib/util/ini_parser.cc \ 74 lib/util/substring.cc \ 75 lib/math/vector.cc \ 76 lib/math/curve.cc \ 77 glmenu/glmenu_imagescreen.cc \ 78 subprojects/benchmark.cc 79 79 80 80 noinst_HEADERS = orxonox.h \ 81 81 ability.h \ 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 subprojects/benchmark.h 82 defs/message_structures.h \ 83 util/loading/game_loader.h \ 84 util/track/track_manager.h \ 85 util/track/track_node.h \ 86 util/track/pilot_node.h \ 87 util/animation/animation.h \ 88 util/animation/t_animation.h \ 89 util/animation/animation3d.h \ 90 util/animation/animation_player.h \ 91 util/object_manager.h \ 92 util/garbage_collector.h \ 93 util/state.h \ 94 util/resource_manager.h \ 95 util/loading/factory.h \ 96 util/loading/load_param.h \ 97 story_entities/story_entity.h \ 98 story_entities/story_def.h \ 99 story_entities/campaign.h \ 100 story_entities/world.h \ 101 world_entities/world_entity.h \ 102 world_entities/camera.h \ 103 world_entities/player.h \ 104 world_entities/npc.h \ 105 world_entities/environment.h \ 106 world_entities/skysphere.h \ 107 world_entities/skybox.h \ 108 world_entities/power_up.h \ 109 world_entities/terrain.h \ 110 world_entities/weapon.h \ 111 world_entities/projectile.h \ 112 world_entities/satellite.h \ 113 world_entities/character_attributes.h \ 114 world_entities/test_gun.h \ 115 world_entities/test_bullet.h \ 116 world_entities/test_entity.h \ 117 defs/stdincl.h \ 118 defs/stdlibincl.h \ 119 defs/sdlincl.h \ 120 defs/glincl.h \ 121 defs/alincl.h \ 122 defs/comincl.h \ 123 defs/confincl.h \ 124 defs/error.h \ 125 defs/debug.h \ 126 defs/globals.h \ 127 defs/compiler.h \ 128 defs/class_list.h \ 129 lib/coord/p_node.h \ 130 lib/coord/null_parent.h \ 131 lib/coord/helper_parent.h \ 132 lib/graphics/graphics_engine.h \ 133 lib/graphics/light.h \ 134 lib/graphics/text_engine.h \ 135 lib/graphics/importer/array.h \ 136 lib/graphics/importer/abstract_model.h \ 137 lib/graphics/importer/objModel.h \ 138 lib/graphics/importer/md2Model.h \ 139 lib/graphics/importer/primitive_model.h \ 140 lib/graphics/importer/model.h \ 141 lib/graphics/importer/material.h \ 142 lib/graphics/importer/texture.h \ 143 lib/graphics/importer/anorms.h \ 144 lib/graphics/importer/anormtab.h \ 145 lib/lang/base_object.h \ 146 lib/util/ini_parser.h \ 147 lib/util/substring.h \ 148 lib/util/list.h \ 149 lib/math/vector.h \ 150 lib/math/curve.h \ 151 glmenu/glmenu_imagescreen.h \ 152 subprojects/benchmark.h 153 153 154 154 155 155 ## orxonox.conf will be used from home-dir instead. 156 156 EXTRA_DIST = proto/proto_class.h \ 157 proto/proto_class.cc \ 158 proto/proto_singleton.h \ 159 proto/proto_singleton.cc \ 160 proto/proto_world_entity.h \ 161 proto/proto_world_entity.cc \ 162 defs/include_paths.am 157 proto/proto_class.cc \ 158 proto/proto_singleton.h \ 159 proto/proto_singleton.cc \ 160 proto/proto_world_entity.h \ 161 proto/proto_world_entity.cc \ 162 defs/include_paths.am 163 163 164 if SUB_PROJECTS 164 165 SUB_PROGS = subprojects 165 166 else 166 SUB_PROGS = 167 SUB_PROGS = 167 168 endif 168 169 169 170 SUBDIRS = lib \ 170 171 171 . \ 172 $(SUB_PROGS) 172 173 173 # uncomment the following if orxonox requires the math library174 #orxonox_LDADD=-lm175 174 176 175 #EXTRA_DIST=orxonox.lsm.in orxonox.spec.in orxonox.texinfo -
orxonox/trunk/src/Makefile.in
r4539 r4556 240 240 MAINSRCDIR = . 241 241 orxonox_DEPENDENCIES = lib/gui/libORXgui.a \ 242 243 244 245 246 247 lib/tinyxml/libtinyxml.a 242 lib/sound/libORXsound.a \ 243 lib/event/libORXevent.a \ 244 lib/physics/libORXphysics.a \ 245 lib/particles/libORXparticles.a \ 246 lib/collision_detection/libORXcd.a \ 247 lib/tinyxml/libtinyxml.a 248 248 249 249 orxonox_LDADD = lib/gui/libORXgui.a \ 250 251 252 253 254 250 lib/sound/libORXsound.a \ 251 lib/event/libORXevent.a \ 252 lib/physics/libORXphysics.a \ 253 lib/particles/libORXparticles.a \ 254 lib/collision_detection/libORXcd.a \ 255 255 lib/tinyxml/libtinyxml.a \ 256 256 $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS) 257 257 258 258 orxonox_SOURCES = orxonox.cc \ 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 259 util/loading/game_loader.cc \ 260 util/track/track_manager.cc \ 261 util/track/track_node.cc \ 262 util/track/pilot_node.cc \ 263 util/animation/animation.cc \ 264 util/animation/animation3d.cc \ 265 util/animation/animation_player.cc \ 266 util/object_manager.cc \ 267 util/garbage_collector.cc \ 268 util/resource_manager.cc \ 269 util/loading/factory.cc \ 270 util/loading/load_param.cc \ 271 util/state.cc \ 272 story_entities/story_entity.cc \ 273 story_entities/campaign.cc \ 274 story_entities/world.cc \ 275 world_entities/world_entity.cc \ 276 world_entities/camera.cc \ 277 world_entities/player.cc \ 278 world_entities/environment.cc \ 279 world_entities/skysphere.cc \ 280 world_entities/skybox.cc \ 281 world_entities/terrain.cc \ 282 world_entities/weapon.cc \ 283 world_entities/projectile.cc \ 284 world_entities/satellite.cc \ 285 world_entities/character_attributes.cc \ 286 world_entities/test_gun.cc \ 287 world_entities/test_bullet.cc \ 288 world_entities/test_entity.cc \ 289 lib/coord/p_node.cc \ 290 lib/coord/null_parent.cc \ 291 lib/coord/helper_parent.cc \ 292 lib/graphics/graphics_engine.cc \ 293 lib/graphics/light.cc \ 294 lib/graphics/text_engine.cc \ 295 lib/graphics/importer/array.cc \ 296 lib/graphics/importer/objModel.cc \ 297 lib/graphics/importer/md2Model.cc \ 298 lib/graphics/importer/primitive_model.cc \ 299 lib/graphics/importer/model.cc \ 300 lib/graphics/importer/material.cc \ 301 lib/graphics/importer/texture.cc \ 302 lib/lang/base_object.cc \ 303 lib/util/ini_parser.cc \ 304 lib/util/substring.cc \ 305 lib/math/vector.cc \ 306 lib/math/curve.cc \ 307 glmenu/glmenu_imagescreen.cc \ 308 subprojects/benchmark.cc 309 309 310 310 noinst_HEADERS = orxonox.h \ 311 311 ability.h \ 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 subprojects/benchmark.h 312 defs/message_structures.h \ 313 util/loading/game_loader.h \ 314 util/track/track_manager.h \ 315 util/track/track_node.h \ 316 util/track/pilot_node.h \ 317 util/animation/animation.h \ 318 util/animation/t_animation.h \ 319 util/animation/animation3d.h \ 320 util/animation/animation_player.h \ 321 util/object_manager.h \ 322 util/garbage_collector.h \ 323 util/state.h \ 324 util/resource_manager.h \ 325 util/loading/factory.h \ 326 util/loading/load_param.h \ 327 story_entities/story_entity.h \ 328 story_entities/story_def.h \ 329 story_entities/campaign.h \ 330 story_entities/world.h \ 331 world_entities/world_entity.h \ 332 world_entities/camera.h \ 333 world_entities/player.h \ 334 world_entities/npc.h \ 335 world_entities/environment.h \ 336 world_entities/skysphere.h \ 337 world_entities/skybox.h \ 338 world_entities/power_up.h \ 339 world_entities/terrain.h \ 340 world_entities/weapon.h \ 341 world_entities/projectile.h \ 342 world_entities/satellite.h \ 343 world_entities/character_attributes.h \ 344 world_entities/test_gun.h \ 345 world_entities/test_bullet.h \ 346 world_entities/test_entity.h \ 347 defs/stdincl.h \ 348 defs/stdlibincl.h \ 349 defs/sdlincl.h \ 350 defs/glincl.h \ 351 defs/alincl.h \ 352 defs/comincl.h \ 353 defs/confincl.h \ 354 defs/error.h \ 355 defs/debug.h \ 356 defs/globals.h \ 357 defs/compiler.h \ 358 defs/class_list.h \ 359 lib/coord/p_node.h \ 360 lib/coord/null_parent.h \ 361 lib/coord/helper_parent.h \ 362 lib/graphics/graphics_engine.h \ 363 lib/graphics/light.h \ 364 lib/graphics/text_engine.h \ 365 lib/graphics/importer/array.h \ 366 lib/graphics/importer/abstract_model.h \ 367 lib/graphics/importer/objModel.h \ 368 lib/graphics/importer/md2Model.h \ 369 lib/graphics/importer/primitive_model.h \ 370 lib/graphics/importer/model.h \ 371 lib/graphics/importer/material.h \ 372 lib/graphics/importer/texture.h \ 373 lib/graphics/importer/anorms.h \ 374 lib/graphics/importer/anormtab.h \ 375 lib/lang/base_object.h \ 376 lib/util/ini_parser.h \ 377 lib/util/substring.h \ 378 lib/util/list.h \ 379 lib/math/vector.h \ 380 lib/math/curve.h \ 381 glmenu/glmenu_imagescreen.h \ 382 subprojects/benchmark.h 383 383 384 384 EXTRA_DIST = proto/proto_class.h \ 385 386 387 388 389 390 385 proto/proto_class.cc \ 386 proto/proto_singleton.h \ 387 proto/proto_singleton.cc \ 388 proto/proto_world_entity.h \ 389 proto/proto_world_entity.cc \ 390 defs/include_paths.am 391 391 392 392 @SUB_PROJECTS_FALSE@SUB_PROGS = 393 393 @SUB_PROJECTS_TRUE@SUB_PROGS = subprojects 394 394 SUBDIRS = lib \ 395 396 395 . \ 396 $(SUB_PROGS) 397 397 398 398 all: all-recursive … … 1591 1591 include $(MAINSRCDIR)/defs/include_paths.am 1592 1592 1593 # uncomment the following if orxonox requires the math library1594 #orxonox_LDADD=-lm1595 1596 1593 #EXTRA_DIST=orxonox.lsm.in orxonox.spec.in orxonox.texinfo 1597 1594 -
orxonox/trunk/src/lib/particles/Makefile.am
r4428 r4556 2 2 include $(MAINSRCDIR)/defs/include_paths.am 3 3 4 noinst_LIBRARIES = libORXparticles.a 4 noinst_LIBRARIES = libORXparticles.a 5 5 6 6 libORXparticles_a_SOURCES = particle_engine.cc \ 7 8 9 quick_animation.cc 7 particle_emitter.cc \ 8 particle_system.cc \ 9 quick_animation.cc 10 10 11 11 12 12 noinst_HEADERS= particle_engine.h \ 13 14 15 13 particle_emitter.h \ 14 particle_system.h \ 15 quick_animation.h -
orxonox/trunk/src/lib/particles/Makefile.in
r4506 r4556 185 185 target_vendor = @target_vendor@ 186 186 MAINSRCDIR = ../.. 187 noinst_LIBRARIES = libORXparticles.a 187 noinst_LIBRARIES = libORXparticles.a 188 188 libORXparticles_a_SOURCES = particle_engine.cc \ 189 190 191 quick_animation.cc 189 particle_emitter.cc \ 190 particle_system.cc \ 191 quick_animation.cc 192 192 193 193 noinst_HEADERS = particle_engine.h \ 194 195 196 194 particle_emitter.h \ 195 particle_system.h \ 196 quick_animation.h 197 197 198 198 all: all-am -
orxonox/trunk/src/orxonox.cc
r4504 r4556 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 16 16 You should have received a copy of the GNU General Public License 17 17 along with this program; if not, write to the Free Software Foundation, 18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 19 20 20 … … 68 68 \brief remove Orxonox from memory 69 69 */ 70 Orxonox::~Orxonox () 70 Orxonox::~Orxonox () 71 71 { 72 72 int i =0; … … 96 96 /** 97 97 \brief this finds the config file 98 98 99 99 Since the config file varies from user to user and since one may want to specify different config files 100 100 for certain occasions or platforms this function finds the right config file for every occasion and stores … … 115 115 // parse command line 116 116 // config file 117 117 118 118 getConfigFile (argc, argv); 119 119 SDL_Init (SDL_INIT_TIMER); … … 130 130 //printf("> Initializing world\n"); 131 131 //if( init_world () == -1) return -1; PB: world will be initialized when started 132 132 133 133 return 0; 134 134 } … … 137 137 \brief initializes SDL and OpenGL 138 138 */ 139 int Orxonox::initVideo() 139 int Orxonox::initVideo() 140 140 { 141 141 PRINTF(3)("> Initializing video\n"); 142 142 143 143 GraphicsEngine::getInstance(); 144 144 145 145 return 0; 146 146 } … … 150 150 \brief initializes the sound engine 151 151 */ 152 int Orxonox::initSound() 152 int Orxonox::initSound() 153 153 { 154 154 PRINT(3)("> Initializing sound\n"); … … 162 162 \brief initializes input functions 163 163 */ 164 int Orxonox::initInput() 164 int Orxonox::initInput() 165 165 { 166 166 this->eventHandler = EventHandler::getInstance(); 167 167 this->eventHandler->init(); 168 168 169 169 return 0; 170 170 } … … 174 174 \brief initializes network system 175 175 */ 176 int Orxonox::initNetworking() 176 int Orxonox::initNetworking() 177 177 { 178 178 printf("Not yet implemented\n"); … … 184 184 \brief initializes and loads resource files 185 185 */ 186 int Orxonox::initResources() 186 int Orxonox::initResources() 187 187 { 188 188 PRINT(3)("initializing ResourceManager\n"); … … 200 200 memset (namebuf, 0, 256); 201 201 memset (valuebuf, 0, 256); 202 202 203 203 while( parser.nextVar (namebuf, valuebuf) != -1) 204 204 { 205 205 if (!strcmp(namebuf, CONFIG_NAME_DATADIR)) 206 207 208 209 210 211 212 213 214 206 { 207 // printf("Not yet implemented\n"); 208 if (!resourceManager->setDataDir(valuebuf)) 209 { 210 PRINTF(1)("Data Could not be located\n"); 211 exit(-1); 212 } 213 } 214 215 215 memset (namebuf, 0, 256); 216 216 memset (valuebuf, 0, 256); 217 217 } 218 218 219 219 if (!resourceManager->checkDataDir(DEFAULT_DATA_DIR_CHECKFILE)) 220 220 { 221 221 PRINTF(1)("The DataDirectory %s could not be verified\nPlease Change in File %s Section %s Entry %s to a suitable value\n", 222 223 224 225 222 resourceManager->getDataDir(), 223 DEFAULT_CONFIG_FILE, 224 CONFIG_SECTION_DATA, 225 CONFIG_NAME_DATADIR); 226 226 exit(-1); 227 227 } … … 250 250 void Orxonox::start() 251 251 { 252 252 253 253 this->gameLoader = GameLoader::getInstance(); 254 254 this->gameLoader->loadCampaign("worlds/DefaultCampaign.oxc"); … … 261 261 /** 262 262 \brief handles sprecial events from localinput 263 \param event: an event not handled by the CommandNode 263 \param event: an event not handled by the CommandNode 264 264 */ 265 265 void Orxonox::graphicsHandler(SDL_Event* event) … … 274 274 } 275 275 } 276 276 277 277 278 278 /** … … 292 292 here the journey begins 293 293 */ 294 int main(int argc, char** argv) 295 { 294 int main(int argc, char** argv) 295 { 296 296 297 297 // here the pre-arguments are loaded, these are needed to go either to orxonx itself, Help, or Benchmark. … … 333 333 { 334 334 if (ResourceManager::isFile("~/.orxonox/orxonox.lock")) 335 336 335 ResourceManager::deleteFile("~/.orxonox/orxonox.lock"); 336 337 337 // starting the GUI 338 338 Gui* gui = new Gui(argc, argv); … … 340 340 341 341 if (! gui->startOrxonox) 342 343 342 return 0; 343 344 344 delete gui; 345 345 } 346 346 347 347 PRINT(0)(">>> Starting Orxonox <<<\n"); 348 348 … … 350 350 351 351 Orxonox *orx = Orxonox::getInstance(); 352 352 353 353 if((*orx).init(argc, argv) == -1) 354 354 { … … 356 356 return -1; 357 357 } 358 358 359 359 orx->start(); 360 360 361 361 delete orx; 362 362 ResourceManager::deleteFile("~/.orxonox/orxonox.lock"); 363 364 } 363 364 }
Note: See TracChangeset
for help on using the changeset viewer.