Changeset 7153 for code/branches/presentation3/src/orxonox
- Timestamp:
- Jul 12, 2010, 1:08:58 PM (15 years ago)
- Location:
- code/branches/presentation3
- Files:
-
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3
- Property svn:mergeinfo changed
/code/branches/network2 (added) merged: 6448-6450,6455-6458,6462,6464-6465
- Property svn:mergeinfo changed
-
code/branches/presentation3/src/orxonox/CMakeLists.txt
r7152 r7153 34 34 ChatHistory.cc 35 35 ChatInputHandler.cc 36 # Test.cc 36 37 COMPILATION_BEGIN SceneCompilation.cc 37 38 CameraManager.cc -
code/branches/presentation3/src/orxonox/Level.h
r7105 r7153 48 48 49 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 50 void registerVariables();51 50 52 51 inline void setDescription(const std::string& description) … … 62 61 63 62 private: 63 void registerVariables(); 64 64 void addObject(BaseObject* object); 65 65 BaseObject* getObject(unsigned int index) const; -
code/branches/presentation3/src/orxonox/Test.h
r7105 r7153 50 50 51 51 void setConfigValues(); 52 void registerVariables();53 52 54 53 static void call(unsigned int clientID); … … 87 86 88 87 private: 88 void registerVariables(); 89 89 90 UTYPE u1; 90 91 UTYPE u2; -
code/branches/presentation3/src/orxonox/collisionshapes/CollisionShape.h
r5781 r7153 45 45 46 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 47 void registerVariables();48 47 49 48 inline void setPosition(const Vector3& position) … … 88 87 89 88 private: 89 void registerVariables(); 90 90 91 Vector3 position_; 91 92 Quaternion orientation_; -
code/branches/presentation3/src/orxonox/graphics/Backlight.h
r5781 r7153 45 45 46 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 47 void registerVariables();48 47 49 48 virtual void tick(float dt); … … 81 80 82 81 private: 82 void registerVariables(); 83 83 virtual void startturnonoff(); 84 84 virtual void stopturnonoff(); -
code/branches/presentation3/src/orxonox/graphics/Billboard.h
r5781 r7153 46 46 47 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 48 void registerVariables();49 48 50 49 virtual void changedVisibility(); … … 78 77 79 78 private: 79 void registerVariables(); 80 80 void changedMaterial(); 81 81 // void changedRotation(); -
code/branches/presentation3/src/orxonox/graphics/BlinkingBillboard.cc
r6417 r7153 66 66 void BlinkingBillboard::registerVariables() 67 67 { 68 // registerVariable(this->amplitude_, VariableDirection::ToClient); 69 // registerVariable(this->frequency_, VariableDirection::ToClient); 70 // registerVariable(this->phase_, VariableDirection::ToClient); 68 unregisterVariable(this->getScale3D()); 69 registerVariable(this->amplitude_, VariableDirection::ToClient); 70 registerVariable(this->frequency_, VariableDirection::ToClient); 71 registerVariable(this->phase_, VariableDirection::ToClient); 72 registerVariable(this->bQuadratic_, VariableDirection::ToClient); 71 73 } 72 74 … … 75 77 SUPER(BlinkingBillboard, tick, dt); 76 78 77 if ( GameMode::isMaster() &&this->isActive())79 if (this->isActive()) 78 80 { 79 81 this->time_ += dt; -
code/branches/presentation3/src/orxonox/graphics/BlinkingBillboard.h
r5781 r7153 45 45 46 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 47 void registerVariables();48 47 49 48 virtual void tick(float dt); … … 70 69 71 70 private: 71 void registerVariables(); 72 72 73 float amplitude_; 73 74 float frequency_; -
code/branches/presentation3/src/orxonox/graphics/FadingBillboard.h
r5929 r7153 46 46 47 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 48 void registerVariables();49 48 50 49 virtual void tick(float dt); … … 66 65 67 66 protected: 67 void registerVariables(); 68 68 virtual void startturnonoff(); 69 69 virtual void stopturnonoff(); -
code/branches/presentation3/src/orxonox/graphics/GlobalShader.h
r5781 r7153 45 45 46 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 47 void registerVariables();48 47 49 48 virtual void changedVisibility(); … … 53 52 54 53 private: 54 void registerVariables(); 55 55 void changedCompositor(); 56 56 -
code/branches/presentation3/src/orxonox/graphics/Light.h
r5781 r7153 57 57 58 58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 59 void registerVariables();60 59 61 60 virtual void changedVisibility(); … … 132 131 133 132 private: 133 void registerVariables(); 134 134 void setTypeString(const std::string& type); 135 135 std::string getTypeString() const; -
code/branches/presentation3/src/orxonox/graphics/Model.h
r7127 r7153 45 45 46 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 47 void registerVariables();48 47 49 48 virtual void changedVisibility(); … … 63 62 64 63 protected: 64 void registerVariables(); 65 65 void changedMesh(); 66 66 void changedShadows(); -
code/branches/presentation3/src/orxonox/graphics/ParticleEmitter.h
r5781 r7153 44 44 45 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 46 void registerVariables();47 46 48 47 virtual void changedVisibility(); … … 74 73 std::string source_; 75 74 LODParticle::Value LOD_; 75 76 private: 77 void registerVariables(); 76 78 }; 77 79 } -
code/branches/presentation3/src/orxonox/infos/GametypeInfo.h
r7062 r7153 45 45 virtual ~GametypeInfo(); 46 46 47 void registerVariables();48 49 47 inline bool hasStarted() const 50 48 { return this->bStarted_; } … … 74 72 75 73 private: 74 void registerVariables(); 75 76 76 bool bStarted_; 77 77 bool bEnded_; -
code/branches/presentation3/src/orxonox/infos/HumanPlayer.h
r5781 r7153 43 43 virtual ~HumanPlayer(); 44 44 45 void registerVariables();46 45 void setConfigValues(); 47 46 … … 101 100 std::string gametypeHudTemplate_; 102 101 OverlayGroup* gametypeHud_; 102 private: 103 void registerVariables(); 103 104 }; 104 105 } -
code/branches/presentation3/src/orxonox/infos/PlayerInfo.h
r7072 r7153 43 43 PlayerInfo(BaseObject* creator); 44 44 virtual ~PlayerInfo(); 45 46 void registerVariables();47 45 48 46 virtual void changedName(); … … 92 90 93 91 private: 92 void registerVariables(); 94 93 void networkcallback_changedcontrollableentityID(); 95 94 void networkcallback_changedgtinfoID(); -
code/branches/presentation3/src/orxonox/items/Engine.h
r6711 r7153 46 46 47 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 48 void registerVariables();49 48 void setConfigValues(); 50 49 … … 127 126 128 127 private: 128 void registerVariables(); 129 129 void networkcallback_shipID(); 130 130 -
code/branches/presentation3/src/orxonox/items/MultiStateEngine.h
r6417 r7153 53 53 54 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 55 void registerVariables();56 55 57 56 virtual void tick(float dt); … … 68 67 69 68 private: 69 void registerVariables(); 70 70 71 int state_; 71 72 int oldState_; -
code/branches/presentation3/src/orxonox/sound/BaseSound.cc
r6502 r7153 248 248 else // No source acquired so far, but might be set to playing or paused 249 249 { 250 State state = this->state_; // save250 State state = static_cast<State>(this->state_); // save 251 251 if (this->isPlaying() || this->isPaused()) 252 252 doPlay(); -
code/branches/presentation3/src/orxonox/sound/BaseSound.h
r6417 r7153 112 112 float volume_; 113 113 bool bLooping_; 114 State state_;114 uint8_t state_; // This Variable is actually of type State 115 115 float pitch_; 116 116 -
code/branches/presentation3/src/orxonox/sound/WorldSound.cc
r6417 r7153 58 58 registerVariable(bLooping_, ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::loopingChanged)); 59 59 registerVariable(pitch_, ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::pitchChanged)); 60 registerVariable(( int&)(BaseSound::state_), ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::stateChanged));60 registerVariable((uint8_t&)(BaseSound::state_), ObjectDirection::ToClient, new NetworkCallback<WorldSound>(this, &WorldSound::stateChanged)); 61 61 } 62 62 -
code/branches/presentation3/src/orxonox/worldentities/BigExplosion.cc
r5929 r7153 101 101 this->debrisEntity3_ = new MovableEntity(this); 102 102 this->debrisEntity4_ = new MovableEntity(this); 103 104 this->debrisEntity1_->setSyncMode(0); 105 this->debrisEntity2_->setSyncMode(0); 106 this->debrisEntity3_->setSyncMode(0); 107 this->debrisEntity4_->setSyncMode(0); 103 108 104 109 this->debris1_ = new Model(this); … … 106 111 this->debris3_ = new Model(this); 107 112 this->debris4_ = new Model(this); 113 114 this->debris1_->setSyncMode(0); 115 this->debris2_->setSyncMode(0); 116 this->debris3_->setSyncMode(0); 117 this->debris4_->setSyncMode(0); 108 118 109 119 this->explosion_ = new StaticEntity(this); 120 this->explosion_->setSyncMode(0); 110 121 111 122 this->debrisSmoke1_ = new ParticleInterface(this->getScene()->getSceneManager(), "Orxonox/smoke7", this->LOD_); … … 158 169 effect->setSource("Orxonox/explosion2b"); 159 170 effect->setLifetime(4.0f); 171 effect->setSyncMode(0); 160 172 161 173 ParticleSpawner* effect2 = new ParticleSpawner(this->getCreator()); … … 163 175 effect2->setSource("Orxonox/smoke6"); 164 176 effect2->setLifetime(4.0f); 177 effect2->setSyncMode(0); 165 178 166 179 this->explosion_->attach(effect); … … 181 194 MovableEntity* partEntity1 = new MovableEntity(this); 182 195 MovableEntity* partEntity2 = new MovableEntity(this); 196 197 part1->setSyncMode(0); 198 part2->setSyncMode(0); 199 partEntity1->setSyncMode(0); 200 partEntity2->setSyncMode(0); 183 201 184 202 partEntity1->setVelocity(Vector3(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1))*rnd(10,100)); -
code/branches/presentation3/src/orxonox/worldentities/BigExplosion.h
r5929 r7153 45 45 46 46 virtual void tick(float dt); 47 void registerVariables();48 47 49 48 inline void setLOD(LODParticle::Value level) … … 53 52 54 53 private: 54 void registerVariables(); 55 55 56 56 void LODchanged(); -
code/branches/presentation3/src/orxonox/worldentities/ControllableEntity.h
r7073 r7153 49 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 50 50 virtual void tick(float dt); 51 void registerVariables();52 51 void setConfigValues(); 53 52 … … 167 166 168 167 private: 168 void registerVariables(); 169 169 void setXMLController(Controller* controller); 170 170 -
code/branches/presentation3/src/orxonox/worldentities/ExplosionChunk.h
r5929 r7153 44 44 45 45 virtual void tick(float dt); 46 void registerVariables();47 46 48 47 inline void setLOD(LODParticle::Value level) … … 52 51 53 52 private: 53 void registerVariables(); 54 54 void LODchanged(); 55 55 void checkStop(); -
code/branches/presentation3/src/orxonox/worldentities/MobileEntity.cc
r5781 r7153 46 46 this->angularAcceleration_ = Vector3::ZERO; 47 47 this->angularVelocity_ = Vector3::ZERO; 48 49 this->registerVariables();50 48 } 51 49 -
code/branches/presentation3/src/orxonox/worldentities/MovableEntity.h
r6417 r7153 48 48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 49 49 virtual bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint); 50 void registerVariables();51 50 52 51 using WorldEntity::setPosition; … … 79 78 80 79 private: 80 void registerVariables(); 81 81 void clientConnected(unsigned int clientID); 82 82 void clientDisconnected(unsigned int clientID); -
code/branches/presentation3/src/orxonox/worldentities/StaticEntity.h
r5781 r7153 42 42 virtual ~StaticEntity(); 43 43 44 void registerVariables();45 46 44 using WorldEntity::setPosition; 47 45 using WorldEntity::setOrientation; … … 51 49 52 50 private: 51 void registerVariables(); 53 52 bool isCollisionTypeLegal(CollisionType type) const; 54 53 -
code/branches/presentation3/src/orxonox/worldentities/WorldEntity.h
r7127 r7153 94 94 95 95 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 96 void registerVariables();97 96 98 97 inline const Ogre::SceneNode* getNode() const … … 214 213 215 214 private: 215 void registerVariables(); 216 216 217 inline void lookAt_xmlport(const Vector3& target) 217 218 { this->lookAt(target); } -
code/branches/presentation3/src/orxonox/worldentities/pawns/Pawn.cc
r7075 r7153 130 130 registerVariable(this->shieldAbsorption_, VariableDirection::ToClient); 131 131 registerVariable(this->bReload_, VariableDirection::ToServer); 132 registerVariable(this->aimPosition_, Bidirectionality::ServerMaster, 0, true);132 registerVariable(this->aimPosition_, VariableDirection::ToServer); // For the moment this variable gets only transfered to the server 133 133 } 134 134 -
code/branches/presentation3/src/orxonox/worldentities/pawns/Pawn.h
r7075 r7153 50 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 51 51 virtual void tick(float dt); 52 void registerVariables();53 52 54 53 inline bool isAlive() const … … 166 165 167 166 private: 167 void registerVariables(); 168 168 inline void setWeaponSystem(WeaponSystem* weaponsystem) 169 169 { this->weaponSystem_ = weaponsystem; } -
code/branches/presentation3/src/orxonox/worldentities/pawns/SpaceShip.h
r6711 r7153 47 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 48 48 virtual void tick(float dt); 49 void registerVariables();50 49 void setConfigValues(); 51 50 … … 99 98 100 99 private: 100 void registerVariables(); 101 101 virtual bool isCollisionTypeLegal(WorldEntity::CollisionType type) const; 102 102 103 private:104 103 void loadEngineTemplate(); 105 104 -
code/branches/presentation3/src/orxonox/worldentities/pawns/Spectator.h
r6417 r7153 44 44 45 45 void setConfigValues(); 46 void registerVariables();47 46 virtual void tick(float dt); 48 47 … … 63 62 64 63 private: 64 void registerVariables(); 65 65 void changedGreeting(); 66 66 void changedFlareVisibility();
Note: See TracChangeset
for help on using the changeset viewer.