Changeset 7193 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Mar 7, 2006, 5:05:50 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 46 edited
Legend:
- Unmodified
- Added
- Removed
-
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.