- Timestamp:
- Mar 7, 2006, 5:05:50 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 112 edited
- 2 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/defs/class_id.h
r7167 r7193 84 84 CL_WORLD_ENTITY = 0x40000000, 85 85 86 CL_GRAPHICS_EFFECT = 0x80000000, 87 86 CL_RESOURCE = 0x80000000, 88 87 89 88 /// subsuper-classes … … 143 142 CL_MOVIE_LOADER = 0x00000109, 144 143 CL_GAME_RULES = 0x00000110, ///HACK: this is no story entity, bensch: to rebuild 145 CL_MULTIPLAYER_TEAM_DEATHMATCH =0x00000111, ///HACK: this is no story entity: it is a CL_GAME_RULES, bensch: to rebuild144 CL_MULTIPLAYER_TEAM_DEATHMATCH= 0x00000111, ///HACK: this is no story entity: it is a CL_GAME_RULES, bensch: to rebuild 146 145 147 146 /// SUPER-PNodes … … 277 276 CL_SHADER = 0x00000811, 278 277 CL_LIGHT = 0x00000821, 279 CL_FOG_EFFECT = 0x00000841, 280 CL_LENSE_FLARE = 0x00000842, 281 CL_EXPLOSION = 0x00000850, 282 CL_LIGHTNING_BOLT = 0x00000851, 283 284 // Particles 285 CL_PARTICLE_SYSTEM = 0x00a01000, 286 CL_DOT_PARTICLES = 0x00a02000, 287 CL_SPARK_PARTICLES = 0x00a04000, 288 CL_SPRITE_PARTICLES = 0x00a08000, 289 CL_MODEL_PARTICLES = 0x00a10000, 278 279 CL_GRAPHICS_EFFECT = 0x00a01000, 280 281 CL_FOG_EFFECT = 0x00000a10, 282 CL_LENSE_FLARE = 0x00000a12, 283 CL_EXPLOSION = 0x00000a20, 284 CL_LIGHTNING_BOLT = 0x00000a21, 285 286 287 // Particles 288 CL_PARTICLE_SYSTEM = 0x00a02000, 289 CL_DOT_PARTICLES = 0x00000aa1, 290 CL_SPARK_PARTICLES = 0x00000aa2, 291 CL_SPRITE_PARTICLES = 0x00000aa3, 292 CL_MODEL_PARTICLES = 0x00000aa4, 290 293 // CL_PNODE_PARTICLES = 0x00a20000, 291 294 292 293 CL_PARTICLE_EMITTER = 0x00a40000, 294 CL_DOT_EMITTER = 0x00000a21, 295 CL_PLANE_EMITTER = 0x00000a22, 296 CL_BOX_EMITTER = 0x00000a23, 297 CL_SPHERE_EMITTER = 0x00000a24, 295 CL_PARTICLE_EMITTER = 0x00a04000, 296 CL_DOT_EMITTER = 0x00000ab1, 297 CL_PLANE_EMITTER = 0x00000ab2, 298 CL_BOX_EMITTER = 0x00000ab3, 299 CL_SPHERE_EMITTER = 0x00000ab4, 298 300 // CL_MODEL_EMITTER = 0x00000a25, 299 301 -
trunk/src/defs/include_paths.am
r5822 r7193 33 33 AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/animation 34 34 AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/common 35 AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/loading36 35 AM_CXXFLAGS+=-I$(MAINSRCDIR)/util/track 37 36 AM_CXXFLAGS+=-I$(MAINSRCDIR)/subprojects -
trunk/src/lib/Makefile.am
r7165 r7193 16 16 util/executor/executor.cc \ 17 17 \ 18 util/loading/resource_manager.cc \ 19 util/loading/resource.cc \ 20 util/loading/game_loader.cc \ 21 util/loading/load_param.cc \ 22 util/loading/load_param_description.cc \ 23 util/loading/factory.cc \ 24 util/loading/dynamic_loader.cc \ 25 \ 18 26 data/data_tank.cc 19 27 … … 31 39 util/executor/executor_specials.h \ 32 40 util/executor/functor_list.h \ 41 \ 42 util/loading/resource_manager.h \ 43 util/loading/resource.h \ 44 util/loading/game_loader.h \ 45 util/loading/load_param.h \ 46 util/loading/load_param_description.h \ 47 util/loading/factory.h \ 48 util/loading/dynamic_loader.h \ 49 \ 33 50 util/count_pointer.h \ 34 51 util/list.h \ 52 \ 35 53 \ 36 54 data/data_tank.h -
trunk/src/lib/coord/p_node.cc
r7192 r7193 18 18 #include "p_node.h" 19 19 20 #include " load_param.h"20 #include "util/loading/load_param.h" 21 21 #include "class_list.h" 22 22 -
trunk/src/lib/graphics/effects/fog_effect.cc
r7107 r7193 19 19 #include "fog_effect.h" 20 20 21 #include " load_param.h"22 #include " factory.h"21 #include "util/loading/load_param.h" 22 #include "util/loading/factory.h" 23 23 24 24 #include "glincl.h" -
trunk/src/lib/graphics/effects/graphics_effect.cc
r6981 r7193 20 20 #include "graphics_effect.h" 21 21 22 #include " load_param.h"22 #include "util/loading/load_param.h" 23 23 24 24 -
trunk/src/lib/graphics/effects/lense_flare.cc
r7015 r7193 19 19 #include "lense_flare.h" 20 20 21 #include " load_param.h"22 #include " factory.h"21 #include "util/loading/load_param.h" 22 #include "util/loading/factory.h" 23 23 24 24 #include "glincl.h" -
trunk/src/lib/graphics/graphics_engine.cc
r7108 r7193 17 17 18 18 #include "graphics_engine.h" 19 #include " resource_manager.h"19 #include "util/loading/resource_manager.h" 20 20 #include "event_handler.h" 21 21 #include "state.h" … … 44 44 45 45 #include "parser/tinyxml/tinyxml.h" 46 #include " load_param.h"47 #include " factory.h"46 #include "util/loading/load_param.h" 47 #include "util/loading/factory.h" 48 48 #include "class_list.h" 49 49 -
trunk/src/lib/graphics/importer/height_map.cc
r7014 r7193 20 20 #include "p_node.h" 21 21 #include "state.h" 22 #include " resource_manager.h"22 #include "util/loading/resource_manager.h" 23 23 #include "debug.h" 24 24 -
trunk/src/lib/graphics/importer/material.cc
r7057 r7193 21 21 #include "texture.h" 22 22 #include "debug.h" 23 #include " resource_manager.h"23 #include "util/loading/resource_manager.h" 24 24 #include <stdlib.h> 25 25 #include <string.h> 26 26 27 27 //! @todo check if we are in RESOURCE MANAGER-mode 28 #include " resource_manager.h"28 #include "util/loading/resource_manager.h" 29 29 30 30 using namespace std; -
trunk/src/lib/graphics/importer/md2Model.cc
r7123 r7193 19 19 20 20 #include "debug.h" 21 #include " resource_manager.h"21 #include "util/loading/resource_manager.h" 22 22 23 23 -
trunk/src/lib/graphics/importer/media_container.cc
r6877 r7193 25 25 #include "media_container.h" 26 26 27 #include " resource_manager.h"27 #include "util/loading/resource_manager.h" 28 28 29 29 /* header for debug output */ -
trunk/src/lib/graphics/importer/model.h
r7123 r7193 46 46 unsigned int numTexCoor; //!< how many Texture Coordinates in the Model 47 47 48 const float* pVertices; //!< array of the Verti ves48 const float* pVertices; //!< array of the Vertices 49 49 sTriangleExt* pTriangles; //!< array of all triangles 50 50 const float* pNormals; //!< array of the Normals … … 55 55 56 56 //! This class defines the basic components of a model 57 class Model : public BaseObject {57 class Model : virtual public BaseObject { 58 58 59 59 public: -
trunk/src/lib/graphics/importer/movie_player.cc
r6731 r7193 25 25 #include "movie_player.h" 26 26 27 #include " resource_manager.h"27 #include "util/loading/resource_manager.h" 28 28 29 29 // header for debug output -
trunk/src/lib/graphics/light.cc
r7109 r7193 23 23 #include "vector.h" 24 24 #include "parser/tinyxml/tinyxml.h" 25 #include " load_param.h"26 #include " factory.h"25 #include "util/loading/load_param.h" 26 #include "util/loading/factory.h" 27 27 #include "debug.h" 28 28 -
trunk/src/lib/graphics/render2D/billboard.cc
r6889 r7193 17 17 #include "billboard.h" 18 18 19 #include " load_param.h"20 #include " factory.h"19 #include "util/loading/load_param.h" 20 #include "util/loading/factory.h" 21 21 22 22 #include "graphics_engine.h" -
trunk/src/lib/graphics/render2D/element_2d.cc
r7052 r7193 24 24 25 25 #include "graphics_engine.h" 26 #include " load_param.h"26 #include "util/loading/load_param.h" 27 27 #include "class_list.h" 28 28 -
trunk/src/lib/graphics/shader.cc
r7164 r7193 23 23 #include "debug.h" 24 24 25 #include " resource_manager.h"25 #include "util/loading/resource_manager.h" 26 26 27 27 -
trunk/src/lib/graphics/text_engine/text.cc
r6645 r7193 20 20 21 21 #include "graphics_engine.h" 22 #include " resource_manager.h"22 #include "util/loading/resource_manager.h" 23 23 #include "class_list.h" 24 24 #include "debug.h" -
trunk/src/lib/graphics/text_engine/text_engine.cc
r6222 r7193 33 33 34 34 #include "graphics_engine.h" 35 #include " resource_manager.h"35 #include "util/loading/resource_manager.h" 36 36 #include "class_list.h" 37 37 -
trunk/src/lib/gui/gl_gui/glmenu/glmenu_imagescreen.cc
r5750 r7193 22 22 #include "graphics_engine.h" 23 23 #include "material.h" 24 #include " factory.h"25 #include " load_param.h"24 #include "util/loading/factory.h" 25 #include "util/loading/load_param.h" 26 26 27 27 CREATE_FACTORY(GLMenuImageScreen, CL_GLMENU_IMAGE_SCREEN); -
trunk/src/lib/gui/gtk_gui/gui_exec.cc
r5944 r7193 26 26 #include "gui_exec.h" 27 27 28 #include " resource_manager.h"28 #include "util/loading/resource_manager.h" 29 29 #include "parser/ini_parser/ini_parser.h" 30 30 -
trunk/src/lib/lang/base_object.cc
r7123 r7193 19 19 #include "base_object.h" 20 20 21 #include " load_param.h"21 #include "util/loading/load_param.h" 22 22 #include "compiler.h" 23 23 #include "class_list.h" -
trunk/src/lib/network/network_game_manager.cc
r7078 r7193 20 20 #define DEBUG_MODULE_NETWORK 21 21 22 #include " factory.h"22 #include "util/loading/factory.h" 23 23 #include "network_stream.h" 24 24 #include "converter.h" -
trunk/src/lib/particles/box_emitter.cc
r6826 r7193 20 20 #include "particle_system.h" 21 21 22 #include " load_param.h"23 #include " factory.h"22 #include "util/loading/load_param.h" 23 #include "util/loading/factory.h" 24 24 #include "debug.h" 25 25 #include "stdlibincl.h" -
trunk/src/lib/particles/dot_emitter.cc
r6825 r7193 20 20 #include "particle_system.h" 21 21 22 #include " load_param.h"23 #include " factory.h"22 #include "util/loading/load_param.h" 23 #include "util/loading/factory.h" 24 24 #include "debug.h" 25 25 #include "stdlibincl.h" -
trunk/src/lib/particles/dot_particles.cc
r6653 r7193 18 18 #include "dot_particles.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 #include "material.h" 23 23 #include "state.h" -
trunk/src/lib/particles/engine/particle_engine.cc
r7130 r7193 22 22 #include "debug.h" 23 23 #include "stdlibincl.h" 24 #include " load_param.h"24 #include "util/loading/load_param.h" 25 25 26 26 using namespace std; -
trunk/src/lib/particles/model_particles.cc
r6653 r7193 18 18 #include "model_particles.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 #include "material.h" 23 23 #include "state.h" -
trunk/src/lib/particles/particle_emitter.cc
r7027 r7193 20 20 #include "particle_system.h" 21 21 22 #include " load_param.h"22 #include "util/loading/load_param.h" 23 23 #include "debug.h" 24 24 #include "stdlibincl.h" -
trunk/src/lib/particles/particle_system.cc
r7027 r7193 23 23 #include "model.h" 24 24 25 #include " load_param.h"26 #include " factory.h"25 #include "util/loading/load_param.h" 26 #include "util/loading/factory.h" 27 27 #include "material.h" 28 28 #include "state.h" -
trunk/src/lib/particles/plane_emitter.cc
r6873 r7193 20 20 #include "particle_system.h" 21 21 22 #include " load_param.h"23 #include " factory.h"22 #include "util/loading/load_param.h" 23 #include "util/loading/factory.h" 24 24 #include "debug.h" 25 25 #include "stdlibincl.h" -
trunk/src/lib/particles/spark_particles.cc
r6821 r7193 18 18 #include "spark_particles.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 #include "material.h" 23 23 #include "state.h" -
trunk/src/lib/particles/sprite_particles.cc
r7014 r7193 18 18 #include "sprite_particles.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 #include "material.h" 23 23 #include "state.h" -
trunk/src/lib/physics/fields/field.cc
r6512 r7193 20 20 #include "physics_engine.h" 21 21 22 #include " factory.h"23 #include " load_param.h"22 #include "util/loading/factory.h" 23 #include "util/loading/load_param.h" 24 24 using namespace std; 25 25 -
trunk/src/lib/physics/fields/gravity.cc
r6512 r7193 18 18 #include "gravity.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 23 23 using namespace std; -
trunk/src/lib/physics/physics_connection.cc
r6512 r7193 24 24 #include "physics_interface.h" 25 25 26 #include " factory.h"27 #include " load_param.h"26 #include "util/loading/factory.h" 27 #include "util/loading/load_param.h" 28 28 29 29 using namespace std; -
trunk/src/lib/physics/physics_engine.cc
r7130 r7193 20 20 #include "class_list.h" 21 21 #include "parser/tinyxml/tinyxml.h" 22 #include " factory.h"23 #include " load_param.h"22 #include "util/loading/factory.h" 23 #include "util/loading/load_param.h" 24 24 25 25 using namespace std; -
trunk/src/lib/sound/sound_engine.cc
r6858 r7193 24 24 25 25 #include "p_node.h" 26 #include " resource_manager.h"26 #include "util/loading/resource_manager.h" 27 27 #include "debug.h" 28 28 #include "parser/ini_parser/ini_parser.h" -
trunk/src/lib/util/loading/dynamic_loader.h
r7167 r7193 7 7 #define _DYNAMIC_LOADER_H 8 8 9 #include " factory.h"9 #include "util/loading/factory.h" 10 10 11 11 #include <string> -
trunk/src/lib/util/loading/factory.cc
r6341 r7193 15 15 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_LOADING 16 16 17 #include " factory.h"17 #include "util/loading/factory.h" 18 18 19 19 //#include "shell_command.h" -
trunk/src/lib/util/loading/game_loader.cc
r6862 r7193 19 19 20 20 #include "game_loader.h" 21 #include " load_param.h"21 #include "util/loading/load_param.h" 22 22 23 23 #include "shell_command.h" 24 24 #include "campaign.h" 25 25 26 #include " resource_manager.h"26 #include "util/loading/resource_manager.h" 27 27 28 28 #include "event_handler.h" -
trunk/src/lib/util/loading/load_param.cc
r7130 r7193 16 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_LOADING 17 17 18 #include " load_param.h"18 #include "util/loading/load_param.h" 19 19 #include "load_param_description.h" 20 20 -
trunk/src/lib/util/loading/resource.cc
r7192 r7193 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " proto_class.h"18 #include "resource.h" 19 19 20 20 using namespace std; … … 25 25 * @todo this constructor is not jet implemented - do it 26 26 */ 27 ProtoClass::ProtoClass()27 Resource::Resource () 28 28 { 29 this->setClassID(CL_ PROTO_ID, "ProtoClass");29 this->setClassID(CL_RESOURCE, "Resource"); 30 30 31 31 /* If you make a new class, what is most probably the case when you write this file … … 45 45 * standard deconstructor 46 46 */ 47 ProtoClass::~ProtoClass()47 Resource::~Resource () 48 48 { 49 49 // delete what has to be deleted here -
trunk/src/lib/util/loading/resource.h
r7192 r7193 1 1 /*! 2 * @file proto_class.h2 * @file resource.h 3 3 * @brief Definition of ... 4 4 */ 5 5 6 #ifndef _ PROTO_CLASS_H7 #define _ PROTO_CLASS_H6 #ifndef _RESOURCE_H 7 #define _RESOURCE_H 8 8 9 9 #include "base_object.h" 10 #include "multi_type.h" 11 10 12 11 13 // FORWARD DECLARATION … … 14 16 15 17 //! A class for ... 16 class ProtoClass :public BaseObject {18 class Resource : virtual public BaseObject { 17 19 18 20 public: 19 ProtoClass();20 virtual ~ ProtoClass();21 Resource(); 22 virtual ~Resource(); 21 23 24 virtual bool load(const char* fileName, const MultiType& param1, const MultiType& param2); 25 virtual bool reload(); 26 virtual bool unload(); 22 27 23 28 private: … … 25 30 }; 26 31 27 #endif /* _ PROTO_CLASS_H */32 #endif /* _RESOURCE_H */ -
trunk/src/lib/util/loading/resource_manager.cc
r7059 r7193 16 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_LOAD 17 17 18 #include " resource_manager.h"18 #include "util/loading/resource_manager.h" 19 19 20 20 #include "substring.h" … … 592 592 if (resource->count == 0) 593 593 { 594 // deleting the Resource 595 switch(resource->type) 596 { 597 #ifndef NO_MODEL 598 case OBJ: 599 case PRIM: 600 delete (Model*)resource->pointer; 601 break; 602 case MD2: 603 delete (MD2Data*)resource->pointer; 604 break; 605 #endif /* NO_MODEL */ 606 #ifndef NO_AUDIO 607 case WAV: 608 delete (SoundBuffer*)resource->pointer; 609 break; 610 case OGG: 611 delete (OggPlayer*)resource->pointer; 612 break; 613 #endif /* NO_AUDIO */ 614 #ifndef NO_TEXT 615 case TTF: 616 delete (Font*)resource->pointer; 617 break; 618 #endif /* NO_TEXT */ 619 #ifndef NO_TEXTURES 620 case IMAGE: 621 delete (Texture*)resource->pointer; 622 break; 623 #endif /* NO_TEXTURES */ 624 #ifndef NO_SHADERS 625 case SHADER: 626 delete (Shader*)resource->pointer; 627 break; 628 #endif /* NO_SHADERS */ 629 default: 630 PRINTF(2)("NOT YET IMPLEMENTED !!FIX FIX!!\n"); 631 return false; 632 break; 633 } 594 delete resource->pointer; 634 595 // deleting the List Entry: 635 596 PRINTF(4)("Resource %s safely removed.\n", resource->name); -
trunk/src/lib/util/loading/resource_manager.h
r6651 r7193 65 65 }; 66 66 67 //! A Struct that keeps track about Aresource its name its Type, and so on67 //! A Struct that keeps track about a resource its name its Type, and so on 68 68 struct Resource 69 69 { -
trunk/src/orxonox.cc
r7167 r7193 33 33 34 34 #include "parser/ini_parser/ini_parser.h" 35 #include " game_loader.h"35 #include "util/loading/game_loader.h" 36 36 37 37 //ENGINES 38 38 #include "graphics_engine.h" 39 39 #include "sound_engine.h" 40 #include " resource_manager.h"40 #include "util/loading/resource_manager.h" 41 41 #include "cd_engine.h" 42 42 #include "text_engine.h" 43 43 #include "event_handler.h" 44 44 45 #include " factory.h"45 #include "util/loading/factory.h" 46 46 #include "fast_factory.h" 47 47 … … 53 53 #include "shell_buffer.h" 54 54 55 #include " load_param_description.h"55 #include "util/loading/load_param_description.h" 56 56 57 57 #include "network_manager.h" … … 289 289 } 290 290 291 #include " dynamic_loader.h"291 #include "util/loading/dynamic_loader.h" 292 292 293 293 /** -
trunk/src/story_entities/campaign.cc
r7032 r7193 19 19 #include "campaign.h" 20 20 21 #include " factory.h"22 #include " load_param.h"21 #include "util/loading/factory.h" 22 #include "util/loading/load_param.h" 23 23 #include "state.h" 24 24 -
trunk/src/story_entities/campaign_data.cc
r6874 r7193 17 17 #include "campaign_data.h" 18 18 19 #include " factory.h"20 #include " load_param.h"19 #include "util/loading/factory.h" 20 #include "util/loading/load_param.h" 21 21 22 22 #include "story_entity.h" -
trunk/src/story_entities/dedicated_server_world.cc
r6512 r7193 20 20 #include "class_list.h" 21 21 22 #include " load_param.h"22 #include "util/loading/load_param.h" 23 23 #include "fast_factory.h" 24 #include " factory.h"24 #include "util/loading/factory.h" 25 25 26 26 #include "world_entity.h" -
trunk/src/story_entities/game_world.cc
r7132 r7193 20 20 #include "game_world_data.h" 21 21 22 #include " resource_manager.h"22 #include "util/loading/resource_manager.h" 23 23 #include "state.h" 24 24 #include "class_list.h" 25 25 #include "substring.h" 26 26 27 #include " game_loader.h"27 #include "util/loading/game_loader.h" 28 28 29 29 #include "p_node.h" … … 42 42 #include "light.h" 43 43 44 #include " factory.h"44 #include "util/loading/factory.h" 45 45 #include "fast_factory.h" 46 #include " load_param.h"46 #include "util/loading/load_param.h" 47 47 #include "shell_command.h" 48 48 -
trunk/src/story_entities/game_world_data.cc
r7126 r7193 21 21 #include "game_world_data.h" 22 22 23 #include " resource_manager.h"23 #include "util/loading/resource_manager.h" 24 24 #include "state.h" 25 25 #include "class_list.h" 26 26 #include "substring.h" 27 27 28 #include " game_loader.h"28 #include "util/loading/game_loader.h" 29 29 30 30 #include "p_node.h" … … 44 44 #include "light.h" 45 45 46 #include " factory.h"46 #include "util/loading/factory.h" 47 47 #include "fast_factory.h" 48 #include " load_param.h"48 #include "util/loading/load_param.h" 49 49 50 50 #include "graphics_engine.h" -
trunk/src/story_entities/movie_loader.cc
r7049 r7193 17 17 18 18 #include "movie_player.h" 19 #include " factory.h"19 #include "util/loading/factory.h" 20 20 #include "event_handler.h" 21 21 #include "graphics_engine.h" 22 #include " load_param.h"22 #include "util/loading/load_param.h" 23 23 #include "state.h" 24 24 -
trunk/src/story_entities/multi_player_world.cc
r6989 r7193 19 19 #include "multi_player_world_data.h" 20 20 21 #include " factory.h"22 #include " load_param.h"21 #include "util/loading/factory.h" 22 #include "util/loading/load_param.h" 23 23 #include "shell_command.h" 24 24 -
trunk/src/story_entities/multi_player_world_data.cc
r7097 r7193 18 18 #include "multi_player_world_data.h" 19 19 20 #include " resource_manager.h"20 #include "util/loading/resource_manager.h" 21 21 #include "state.h" 22 22 #include "class_list.h" 23 23 #include "substring.h" 24 24 25 #include " game_loader.h"25 #include "util/loading/game_loader.h" 26 26 #include "cd_engine.h" 27 27 … … 39 39 #include "playable.h" 40 40 41 #include " factory.h"41 #include "util/loading/factory.h" 42 42 #include "fast_factory.h" 43 #include " load_param.h"43 #include "util/loading/load_param.h" 44 44 45 45 #include "network_manager.h" -
trunk/src/story_entities/simple_game_menu.cc
r7131 r7193 22 22 #include "class_list.h" 23 23 24 #include " load_param.h"24 #include "util/loading/load_param.h" 25 25 #include "fast_factory.h" 26 #include " factory.h"26 #include "util/loading/factory.h" 27 27 28 28 #include "p_node.h" -
trunk/src/story_entities/single_player_world.cc
r6989 r7193 22 22 #include "class_list.h" 23 23 24 #include " load_param.h"24 #include "util/loading/load_param.h" 25 25 #include "fast_factory.h" 26 #include " factory.h"26 #include "util/loading/factory.h" 27 27 28 28 #include "world_entity.h" -
trunk/src/story_entities/single_player_world_data.cc
r6424 r7193 18 18 #include "single_player_world_data.h" 19 19 20 #include " load_param.h"20 #include "util/loading/load_param.h" 21 21 22 22 -
trunk/src/story_entities/story_entity.cc
r7033 r7193 22 22 #include "story_entity.h" 23 23 24 #include " resource_manager.h"25 #include " load_param.h"24 #include "util/loading/resource_manager.h" 25 #include "util/loading/load_param.h" 26 26 27 27 -
trunk/src/subprojects/collision_detection/collision_test_entity.cc
r7157 r7193 18 18 #include "collision_test_entity.h" 19 19 20 #include " resource_manager.h"20 #include "util/loading/resource_manager.h" 21 21 22 22 #include "vector.h" 23 23 #include "objModel.h" 24 24 #include "obb_tree.h" 25 #include " factory.h"25 #include "util/loading/factory.h" 26 26 27 27 using namespace std; -
trunk/src/subprojects/framework.cc
r7159 r7193 21 21 #include "debug.h" 22 22 #include "light.h" 23 #include " resource_manager.h"23 #include "util/loading/resource_manager.h" 24 24 #include "camera.h" 25 25 #include "parser/ini_parser/ini_parser.h" -
trunk/src/subprojects/importer/importer.cc
r7165 r7193 27 27 #include "vertex_array_model.h" 28 28 29 #include " resource_manager.h"29 #include "util/loading/resource_manager.h" 30 30 31 31 Model* obj; -
trunk/src/subprojects/particles/particle_fun.cc
r5348 r7193 24 24 #include "graphics_engine.h" 25 25 #include "light.h" 26 #include " resource_manager.h"26 #include "util/loading/resource_manager.h" 27 27 28 28 #include <dirent.h> -
trunk/src/util/Makefile.am
r7167 r7193 14 14 animation/animation.cc \ 15 15 animation/animation_player.cc \ 16 \17 loading/resource_manager.cc \18 loading/game_loader.cc \19 loading/load_param.cc \20 loading/load_param_description.cc \21 loading/factory.cc \22 loading/dynamic_loader.cc \23 16 \ 24 17 track/pilot_node.cc \ … … 38 31 animation/t_animation.h \ 39 32 \ 40 loading/resource_manager.h \41 loading/game_loader.h \42 loading/load_param.h \43 loading/load_param_description.h \44 loading/factory.h \45 loading/dynamic_loader.h \46 \47 33 track/pilot_node.h \ 48 34 track/track_manager.h \ -
trunk/src/util/game_rules.cc
r7035 r7193 17 17 #include "game_rules.h" 18 18 19 #include " load_param.h"19 #include "util/loading/load_param.h" 20 20 21 21 -
trunk/src/util/multiplayer_team_deathmatch.cc
r7118 r7193 17 17 #include "multiplayer_team_deathmatch.h" 18 18 19 #include " load_param.h"20 #include " factory.h"19 #include "util/loading/load_param.h" 20 #include "util/loading/factory.h" 21 21 22 22 #include "render2D/billboard.h" -
trunk/src/util/track/track_manager.cc
r7130 r7193 19 19 20 20 #include "base_object.h" 21 #include " load_param.h"21 #include "util/loading/load_param.h" 22 22 #include "p_node.h" 23 23 #include "track_node.h" -
trunk/src/world_entities/creatures/md2_creature.cc
r7078 r7193 22 22 #include "objModel.h" 23 23 #include "md2Model.h" 24 #include " resource_manager.h"24 #include "util/loading/resource_manager.h" 25 25 #include "state.h" 26 26 … … 30 30 #include "weapons/cannon.h" 31 31 32 #include " factory.h"32 #include "util/loading/factory.h" 33 33 #include "key_mapper.h" 34 34 #include "event_handler.h" -
trunk/src/world_entities/effects/lightning_bolt.cc
r7113 r7193 17 17 #include "lightning_bolt.h" 18 18 19 #include " factory.h"19 #include "util/loading/factory.h" 20 20 #include "material.h" 21 21 22 #include " resource_manager.h"22 #include "util/loading/resource_manager.h" 23 23 24 24 -
trunk/src/world_entities/elements/image_entity.cc
r7016 r7193 18 18 #include "image_entity.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 23 23 #include "graphics_engine.h" -
trunk/src/world_entities/elements/text_element.cc
r7021 r7193 18 18 #include "text_element.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 23 23 #include "graphics_engine.h" -
trunk/src/world_entities/environment.cc
r6512 r7193 20 20 #include "environment.h" 21 21 22 #include " resource_manager.h"22 #include "util/loading/resource_manager.h" 23 23 24 24 #include "vector.h" 25 25 #include "objModel.h" 26 26 #include "obb_tree.h" 27 #include " factory.h"27 #include "util/loading/factory.h" 28 28 29 29 using namespace std; -
trunk/src/world_entities/environments/building.cc
r7041 r7193 18 18 #include "building.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 23 23 using namespace std; -
trunk/src/world_entities/environments/model_entity.cc
r7048 r7193 18 18 #include "model_entity.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 23 23 using namespace std; -
trunk/src/world_entities/environments/water.cc
r7126 r7193 17 17 18 18 #include "water.h" 19 #include " factory.h"20 #include " load_param.h"19 #include "util/loading/factory.h" 20 #include "util/loading/load_param.h" 21 21 22 22 #include "grid.h" 23 23 #include "material.h" 24 24 25 #include " resource_manager.h"25 #include "util/loading/resource_manager.h" 26 26 #include "shader.h" 27 27 -
trunk/src/world_entities/movie_entity.cc
r7115 r7193 17 17 18 18 #include "media_container.h" 19 #include " load_param.h"20 #include " factory.h"19 #include "util/loading/load_param.h" 20 #include "util/loading/factory.h" 21 21 22 22 using namespace std; -
trunk/src/world_entities/npcs/ground_turret.cc
r7105 r7193 23 23 24 24 25 #include " factory.h"25 #include "util/loading/factory.h" 26 26 #include "network_game_manager.h" 27 #include " load_param.h"27 #include "util/loading/load_param.h" 28 28 29 29 #include "effects/explosion.h" -
trunk/src/world_entities/planet.cc
r6912 r7193 18 18 #include "planet.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 #include "static_model.h" 23 23 -
trunk/src/world_entities/playable.cc
r7173 r7193 21 21 #include "player.h" 22 22 #include "state.h" 23 #include " load_param.h"23 #include "util/loading/load_param.h" 24 24 25 25 #include "world_entities/projectiles/projectile.h" -
trunk/src/world_entities/power_ups/laser_power_up.cc
r6815 r7193 17 17 18 18 #include "laser_power_up.h" 19 #include " factory.h"19 #include "util/loading/factory.h" 20 20 #include "state.h" 21 21 #include "network_game_manager.h" -
trunk/src/world_entities/power_ups/param_power_up.cc
r7130 r7193 17 17 18 18 #include "param_power_up.h" 19 #include " factory.h"19 #include "util/loading/factory.h" 20 20 #include "state.h" 21 21 22 22 #include "primitive_model.h" 23 23 24 #include " factory.h"25 #include " load_param.h"24 #include "util/loading/factory.h" 25 #include "util/loading/load_param.h" 26 26 #include "network_game_manager.h" 27 27 -
trunk/src/world_entities/power_ups/power_up.cc
r7103 r7193 21 21 #include "primitive_model.h" 22 22 23 #include " resource_manager.h"24 #include " load_param.h"23 #include "util/loading/resource_manager.h" 24 #include "util/loading/load_param.h" 25 25 26 26 using namespace std; -
trunk/src/world_entities/power_ups/turret_power_up.cc
r7065 r7193 17 17 18 18 #include "turret_power_up.h" 19 #include " factory.h"19 #include "util/loading/factory.h" 20 20 #include "network_game_manager.h" 21 21 #include "state.h" -
trunk/src/world_entities/power_ups/weapon_power_up.cc
r7130 r7193 17 17 18 18 #include "weapon_power_up.h" 19 #include " factory.h"19 #include "util/loading/factory.h" 20 20 #include "state.h" 21 21 #include "network_game_manager.h" … … 23 23 #include "primitive_model.h" 24 24 25 #include " factory.h"26 #include " load_param.h"25 #include "util/loading/factory.h" 26 #include "util/loading/load_param.h" 27 27 28 28 using namespace std; -
trunk/src/world_entities/projectiles/bomb.cc
r7084 r7193 19 19 #include "model.h" 20 20 #include "primitive_model.h" 21 22 #include "fast_factory.h"23 24 25 #include "object_manager.h"26 21 27 22 #include "dot_emitter.h" -
trunk/src/world_entities/projectiles/guided_missile.cc
r7102 r7193 17 17 18 18 #include "guided_missile.h" 19 20 #include "fast_factory.h"21 19 22 20 #include "state.h" -
trunk/src/world_entities/projectiles/hyperblast.cc
r7086 r7193 17 17 18 18 #include "hyperblast.h" 19 20 #include "fast_factory.h"21 19 22 20 #include "state.h" -
trunk/src/world_entities/projectiles/laser.cc
r7086 r7193 17 17 18 18 #include "laser.h" 19 #include <assert.h> 20 21 22 #include "fast_factory.h" 19 #include <cassert> 23 20 24 21 #include "state.h" -
trunk/src/world_entities/projectiles/projectile.cc
r7084 r7193 22 22 #include "world_entities/weapons/weapon.h" 23 23 #include "model.h" 24 #include " resource_manager.h"24 #include "util/loading/resource_manager.h" 25 25 26 26 using namespace std; -
trunk/src/world_entities/projectiles/projectile.h
r7084 r7193 11 11 12 12 #include "world_entity.h" 13 #include "fast_factory.h" 13 14 14 15 #include "sound_source.h" -
trunk/src/world_entities/projectiles/rocket.cc
r7086 r7193 17 17 18 18 #include "rocket.h" 19 20 #include "fast_factory.h"21 19 22 20 #include "state.h" -
trunk/src/world_entities/projectiles/test_bullet.cc
r6825 r7193 18 18 #include "test_bullet.h" 19 19 20 #include "fast_factory.h"21 22 20 #include "state.h" 23 21 #include "class_list.h" … … 25 23 #include "dot_emitter.h" 26 24 #include "sprite_particles.h" 27 28 25 29 26 using namespace std; -
trunk/src/world_entities/recorder.cc
r6731 r7193 16 16 #include "recorder.h" 17 17 18 #include " load_param.h"19 #include " factory.h"20 #include " resource_manager.h"18 #include "util/loading/load_param.h" 19 #include "util/loading/factory.h" 20 #include "util/loading/resource_manager.h" 21 21 #include "state.h" 22 22 -
trunk/src/world_entities/satellite.h
r5994 r7193 9 9 #include "world_entity.h" 10 10 #include "comincl.h" 11 #include " resource_manager.h"11 #include "util/loading/resource_manager.h" 12 12 13 13 -
trunk/src/world_entities/skybox.cc
r7125 r7193 18 18 #include "skybox.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 #include "static_model.h" 23 23 … … 27 27 #include "network_game_manager.h" 28 28 #include "converter.h" 29 #include " resource_manager.h"29 #include "util/loading/resource_manager.h" 30 30 31 31 -
trunk/src/world_entities/space_ships/helicopter.cc
r7096 r7193 24 24 #include "weapons/cannon.h" 25 25 26 #include " factory.h"26 #include "util/loading/factory.h" 27 27 #include "key_mapper.h" 28 28 #include "event_handler.h" -
trunk/src/world_entities/space_ships/hover.cc
r7072 r7193 24 24 #include "weapons/cannon.h" 25 25 26 #include " factory.h"26 #include "util/loading/factory.h" 27 27 #include "key_mapper.h" 28 28 #include "event_handler.h" -
trunk/src/world_entities/space_ships/space_ship.cc
r7173 r7193 20 20 #include "space_ship.h" 21 21 22 #include " resource_manager.h"22 #include "util/loading/resource_manager.h" 23 23 24 24 #include "weapons/test_gun.h" … … 29 29 #include "sprite_particles.h" 30 30 31 #include " factory.h"31 #include "util/loading/factory.h" 32 32 #include "key_mapper.h" 33 33 #include "event_handler.h" … … 45 45 #include "player.h" 46 46 47 #include " load_param.h"47 #include "util/loading/load_param.h" 48 48 49 49 -
trunk/src/world_entities/space_ships/turbine_hover.cc
r7126 r7193 24 24 #include "weapons/cannon.h" 25 25 26 #include " factory.h"26 #include "util/loading/factory.h" 27 27 #include "key_mapper.h" 28 28 #include "event_handler.h" -
trunk/src/world_entities/spawning_point.cc
r6512 r7193 17 17 #include "spawning_point.h" 18 18 19 #include " load_param.h"20 #include " factory.h"19 #include "util/loading/load_param.h" 20 #include "util/loading/factory.h" 21 21 22 22 #include "compiler.h" -
trunk/src/world_entities/terrain.cc
r7055 r7193 18 18 #include "terrain.h" 19 19 20 #include " load_param.h"21 #include " factory.h"20 #include "util/loading/load_param.h" 21 #include "util/loading/factory.h" 22 22 #include "spatial_separation.h" 23 23 24 #include " resource_manager.h"24 #include "util/loading/resource_manager.h" 25 25 #include "model.h" 26 26 #include "network_game_manager.h" … … 186 186 { 187 187 PRINTF(4)("fetching %s\n", vegetationFile); 188 this->vegetation = (Model*)ResourceManager::getInstance()->load(vegetationFile, OBJ, RP_CAMPAIGN);188 this->vegetation = dynamic_cast<Model*>(ResourceManager::getInstance()->load(vegetationFile, OBJ, RP_CAMPAIGN)); 189 189 } 190 190 else -
trunk/src/world_entities/test_entity.cc
r7113 r7193 19 19 20 20 #include "executor/executor.h" 21 #include " factory.h"22 #include " load_param.h"21 #include "util/loading/factory.h" 22 #include "util/loading/load_param.h" 23 23 24 24 #include "test_entity.h" -
trunk/src/world_entities/weapons/aim.cc
r6760 r7193 18 18 #include "aim.h" 19 19 20 #include " load_param.h"20 #include "util/loading/load_param.h" 21 21 #include "graphics_engine.h" 22 22 #include "state.h" -
trunk/src/world_entities/weapons/aiming_turret.cc
r7070 r7193 25 25 #include "animation3d.h" 26 26 27 #include " factory.h"27 #include "util/loading/factory.h" 28 28 29 29 CREATE_FACTORY(AimingTurret, CL_AIMING_TURRET); -
trunk/src/world_entities/weapons/cannon.cc
r7130 r7193 27 27 #include "world_entities/projectiles/projectile.h" 28 28 #include "weapon_manager.h" 29 #include " factory.h"29 #include "util/loading/factory.h" 30 30 31 31 #include "vector.h" -
trunk/src/world_entities/weapons/crosshair.cc
r6990 r7193 19 19 #include "event_handler.h" 20 20 21 #include " load_param.h"21 #include "util/loading/load_param.h" 22 22 #include "graphics_engine.h" 23 23 #include "glincl.h" -
trunk/src/world_entities/weapons/hyperblaster.cc
r7130 r7193 27 27 #include "world_entities/projectiles/projectile.h" 28 28 #include "weapon_manager.h" 29 #include " factory.h"29 #include "util/loading/factory.h" 30 30 31 31 #include "animation3d.h" -
trunk/src/world_entities/weapons/targeting_turret.cc
r7081 r7193 25 25 #include "animation3d.h" 26 26 27 #include " factory.h"27 #include "util/loading/factory.h" 28 28 29 29 CREATE_FACTORY(TargetingTurret, CL_TARGETING_TURRET); -
trunk/src/world_entities/weapons/test_gun.cc
r7095 r7193 27 27 #include "static_model.h" 28 28 #include "weapon_manager.h" 29 #include " factory.h"29 #include "util/loading/factory.h" 30 30 31 31 #include "animation3d.h" -
trunk/src/world_entities/weapons/turret.cc
r7070 r7193 25 25 #include "animation3d.h" 26 26 27 #include " factory.h"27 #include "util/loading/factory.h" 28 28 29 29 CREATE_FACTORY(Turret, CL_TURRET); -
trunk/src/world_entities/weapons/weapon.cc
r7126 r7193 24 24 #include "world_entities/projectiles/projectile.h" 25 25 26 #include " resource_manager.h"26 #include "util/loading/resource_manager.h" 27 27 #include "class_list.h" 28 #include " load_param.h"28 #include "util/loading/load_param.h" 29 29 #include "state.h" 30 30 #include "animation3d.h" -
trunk/src/world_entities/weapons/weapon_manager.cc
r6972 r7193 25 25 #include "playable.h" 26 26 27 #include " load_param.h"28 #include " factory.h"27 #include "util/loading/load_param.h" 28 #include "util/loading/factory.h" 29 29 30 30 #include "t_animation.h" -
trunk/src/world_entities/world_entity.cc
r7125 r7193 22 22 #include "model.h" 23 23 #include "md2Model.h" 24 #include " resource_manager.h"25 #include " load_param.h"24 #include "util/loading/resource_manager.h" 25 #include "util/loading/load_param.h" 26 26 #include "vector.h" 27 27 #include "obb_tree.h" … … 86 86 if (this->healthWidget != NULL) 87 87 delete this->healthWidget; 88 89 88 } 90 89 … … 147 146 if (this->scaling <= 0.0) 148 147 { 148 PRINTF(1)("YOU GAVE ME A CRAPY SCALE resetting to 1.0\n"); 149 149 this->scaling = 1.0; 150 PRINTF(1)("YOU GAVE ME A CRAPY SCALE resetting to 1\n");151 150 } 152 151 if(strstr(fileName, ".obj")) 153 152 { 154 153 PRINTF(4)("fetching OBJ file: %s\n", fileName); 155 if (this->scaling == 1.0) 156 this->setModel((Model*)ResourceManager::getInstance()->load(fileName, OBJ, RP_CAMPAIGN), modelNumber); 157 else 158 this->setModel((Model*)ResourceManager::getInstance()->load(fileName, OBJ, RP_CAMPAIGN, this->scaling), modelNumber); 154 BaseObject* loadedModel = ResourceManager::getInstance()->load(fileName, OBJ, RP_CAMPAIGN, this->scaling); 155 if (loadedModel != NULL) 156 this->setModel(dynamic_cast<Model*>(loadedModel), modelNumber); 159 157 160 158 if( modelNumber == 0) … … 190 188 if (this->models[modelNumber] != NULL) 191 189 { 192 Resource* resource = ResourceManager::getInstance()->locateResourceByPointer( this->models[modelNumber]);190 Resource* resource = ResourceManager::getInstance()->locateResourceByPointer(dynamic_cast<BaseObject*>(this->models[modelNumber])); 193 191 if (resource != NULL) 194 192 ResourceManager::getInstance()->unload(resource, RP_LEVEL);
Note: See TracChangeset
for help on using the changeset viewer.