Changeset 10519 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 30, 2007, 9:51:21 PM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/bsp_entity.cc
r10114 r10519 57 57 58 58 this->bspManager = NULL; 59 this->sortTransparency = 1; 60 this->sortTransparencyMore = 0; 61 59 62 60 63 this->name_handle = registerVarId( new SynchronizeableString( &this->name, &this->name_write, "name", PERMISSION_MASTER_SERVER ) ); … … 74 77 75 78 this->bspManager = new BspManager(this); 79 this->bspManager->sortTransparency = this->sortTransparency; 80 this->bspManager->sortTransparencyMore = this->sortTransparencyMore; 76 81 77 82 if(this->bspManager->load(name.c_str(), 0.1f) == -1 ) { … … 87 92 } 88 93 94 void BspEntity::setTransparency(int sort, int sortMore) 95 { 96 this->sortTransparency = sort; 97 this->sortTransparencyMore = sortMore; 98 99 if (this->bspManager != NULL) 100 { 101 this->bspManager->sortTransparency = sort; 102 this->bspManager->sortTransparencyMore = sortMore; 103 } 104 } 89 105 90 106 /** … … 101 117 .describe("Sets the of the BSP file."); 102 118 119 LoadParam(root, "Transparency", this, BspEntity, setTransparency) 120 .describe("1. argument: true -> sort transparent textures; 2. argument: true -> better but slower sorting") 121 .defaultValues(1, 0); 122 103 123 /* LoadParam(root, "Scale", this, BSpEntity, setScale) 104 124 .describe("Sets the scale factore of the bsp level."); -
trunk/src/world_entities/bsp_entity.h
r10033 r10519 26 26 27 27 void setName(const std::string& name); 28 void setTransparency(int sort, int sortMore = 0); 28 29 29 30 void init(); … … 44 45 std::string name_write; //!< temp variable to store name 45 46 int name_handle; //!< handle for name 46 47 int sortTransparency; //!< sort transparent textures 48 int sortTransparencyMore; //!< sort transparent textures better 47 49 }; 48 50 -
trunk/src/world_entities/environments/rotor.cc
r10280 r10519 30 30 { 31 31 this->registerObject(this, Rotor::_objectList); 32 this->toList(OM_ GROUP_00);33 32 this->toList(OM_ENVIRON); 33 34 34 //PRINTF(0)("loading Rotor"); 35 35 … … 63 63 { 64 64 this->shiftDir(Quaternion(rotation.x*dt, Vector(1,0,0)) * Quaternion(rotation.y*dt, Vector(0,1,0)) * Quaternion(rotation.z*dt, Vector(0,0,1))); 65 65 66 66 } 67 67 -
trunk/src/world_entities/npcs/mover.cc
r10487 r10519 20 20 21 21 #include "mover.h" 22 #include "state.h" 23 #include "camera.h" 22 24 23 25 … … 31 33 { 32 34 this->registerObject(this, Mover::_objectList); 33 this->toList(OM_ COMMON);35 this->toList(OM_ENVIRON); 34 36 35 37 this->targetCoordinates = Vector(0, 0, 0); … … 224 226 if (distance < this->actionRadius) 225 227 { 226 this->soundSource_starting.setSourceNode( entity); // bad hack!227 this->soundSource_moving.setSourceNode( entity); // TODO: make the sound louder without228 this->soundSource_ending.setSourceNode( entity); // attaching him to the player228 this->soundSource_starting.setSourceNode((PNode*)State::getCamera()); // bad hack! 229 this->soundSource_moving.setSourceNode((PNode*)State::getCamera()); // TODO: make the sound louder without 230 this->soundSource_ending.setSourceNode((PNode*)State::getCamera()); // attaching him to the player 229 231 return true; 230 232 } -
trunk/src/world_entities/particles/particle_system.cc
r10516 r10519 264 264 emitter->system = this; 265 265 this->emitters.push_back(emitter); 266 267 // init the emitertter with the coordinates of the system 268 emitter->setAbsCoor(this->getAbsCoor()); 269 266 270 } 267 271
Note: See TracChangeset
for help on using the changeset viewer.