Changeset 7125 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Feb 12, 2006, 6:06:26 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/effects/explosion.h
r7103 r7125 33 33 34 34 static SpriteParticles* explosionParticles; 35 BoxEmitter* emitter;35 BoxEmitter* emitter; 36 36 }; 37 37 -
trunk/src/world_entities/environments/water.cc
r7117 r7125 55 55 56 56 this->rebuildGrid(); 57 this->waterMaterial = new Material();58 57 this->waterShader = (Shader*)ResourceManager::getInstance()->load("shaders/water.vert", SHADER, RP_GAME, "shaders/water.frag"); 59 58 … … 65 64 { 66 65 delete this->grid; 67 delete this->waterMaterial;68 66 } 69 67 -
trunk/src/world_entities/environments/water.h
r6981 r7125 12 12 /* INCLUDES */ 13 13 #include "world_entity.h" 14 #include "material.h" 15 14 16 15 17 /* FORWARD DECLARATION */ 16 class Material;17 18 class Grid; 18 19 class Shader; … … 53 54 float cohesion; //!< Cohesion. 54 55 55 Material *waterMaterial;56 Material waterMaterial; 56 57 Shader* waterShader; 57 58 float height; //!< The hight of the Water -
trunk/src/world_entities/skybox.cc
r7123 r7125 104 104 { 105 105 PRINTF(5)("Deleting SkyBox\n"); 106 this->setModel(NULL); //< so that WorldEntity does not try to delete it again.107 106 for (int i = 0; i < 6; i++) 108 107 { -
trunk/src/world_entities/space_ships/turbine_hover.cc
r7105 r7125 226 226 dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true); 227 227 228 State::getCameraNode()->setParentSoft(&this->cameraNode); 229 State::getCameraNode()->setRelCoorSoft(-10, 0,0); 230 State::getCameraTargetNode()->setParentSoft(&this->cameraNode); 228 if (State::getCameraNode != NULL) 229 { 230 State::getCameraNode()->setParentSoft(&this->cameraNode); 231 State::getCameraNode()->setRelCoorSoft(-10, 0,0); 232 State::getCameraTargetNode()->setParentSoft(&this->cameraNode); 233 } 231 234 } 232 235 -
trunk/src/world_entities/world_entity.cc
r7123 r7125 74 74 WorldEntity::~WorldEntity () 75 75 { 76 State::getObjectManager()->toList(this, OM_INIT); 77 78 // Delete the model (unregister it with the ResourceManager) 79 for (unsigned int i = 0; i < this->models.size(); i++) 80 this->setModel(NULL, i); 81 76 82 // Delete the obbTree 77 83 if( this->obbTree != NULL) … … 81 87 delete this->healthWidget; 82 88 83 // Delete the model (unregister it with the ResourceManager)84 for (unsigned int i = 0; i < this->models.size(); i++)85 this->setModel(NULL, i);86 87 State::getObjectManager()->toList(this, OM_INIT);88 89 } 89 90
Note: See TracChangeset
for help on using the changeset viewer.