- Timestamp:
- Apr 8, 2009, 12:36:08 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 8 added
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/objects/worldentities/Backlight.cc
- Property svn:mergeinfo changed
/code/branches/gui/src/orxonox/objects/worldentities/Backlight.cc (added) merged: 2848
r2710 r2907 33 33 #include <OgreSceneManager.h> 34 34 35 #include "core/ Core.h"35 #include "core/GameMode.h" 36 36 #include "core/CoreIncludes.h" 37 37 #include "core/Executor.h" … … 58 58 this->tickcount_ = 0; 59 59 60 if ( Core::showsGraphics())60 if (GameMode::showsGraphics()) 61 61 { 62 62 if (!this->getScene()) - Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/objects/worldentities/Backlight.h
- Property svn:mergeinfo changed
/code/branches/gui/src/orxonox/objects/worldentities/Backlight.h (added) merged: 2843
r2710 r2907 32 32 #include "OrxonoxPrereqs.h" 33 33 #include "FadingBillboard.h" 34 #include " gamestates/GSRoot.h"34 #include "tools/TimeFactorListener.h" 35 35 36 36 namespace orxonox - Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/objects/worldentities/Billboard.cc
r2662 r2907 34 34 #include "core/CoreIncludes.h" 35 35 #include "core/XMLPort.h" 36 #include "core/ Core.h"36 #include "core/GameMode.h" 37 37 #include "objects/Scene.h" 38 38 … … 81 81 if (!this->billboard_.getBillboardSet()) 82 82 { 83 if (this->getScene() && Core::showsGraphics())83 if (this->getScene() && GameMode::showsGraphics()) 84 84 { 85 85 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->material_, this->colour_, 1); … … 98 98 { 99 99 /* 100 if (this->getScene() && Core::showsGraphics() && (this->material_ != ""))100 if (this->getScene() && GameMode::showsGraphics() && (this->material_ != "")) 101 101 { 102 102 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->material_, this->colour_, 1); -
code/branches/questsystem5/src/orxonox/objects/worldentities/Billboard.h
r2662 r2907 34 34 #include "util/Math.h" 35 35 #include "tools/BillboardSet.h" 36 #include "objects/Teamcolourable.h" 36 37 37 38 namespace orxonox 38 39 { 39 class _OrxonoxExport Billboard : public StaticEntity 40 class _OrxonoxExport Billboard : public StaticEntity, public Teamcolourable 40 41 { 41 42 public: … … 61 62 { return this->colour_; } 62 63 64 virtual void setTeamColour(const ColourValue& colour) 65 { this->setColour(colour); } 66 63 67 protected: 64 68 inline BillboardSet& getBillboardSet() -
code/branches/questsystem5/src/orxonox/objects/worldentities/BlinkingBillboard.cc
r2662 r2907 30 30 #include "BlinkingBillboard.h" 31 31 32 #include "core/ Core.h"32 #include "core/GameMode.h" 33 33 #include "core/CoreIncludes.h" 34 34 #include "core/XMLPort.h" … … 77 77 SUPER(BlinkingBillboard, tick, dt); 78 78 79 if ( Core::isMaster() && this->isActive())79 if (GameMode::isMaster() && this->isActive()) 80 80 { 81 81 this->time_ += dt; -
code/branches/questsystem5/src/orxonox/objects/worldentities/CMakeLists.txt
r2710 r2907 19 19 Planet.cc 20 20 SpawnPoint.cc 21 TeamSpawnPoint.cc 22 PongCenterpoint.cc 23 PongBall.cc 24 PongBat.cc 21 25 ) 22 26 -
code/branches/questsystem5/src/orxonox/objects/worldentities/Camera.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/questsystem5/src/orxonox/objects/worldentities/Camera.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/questsystem5/src/orxonox/objects/worldentities/CameraPosition.cc
r2662 r2907 44 44 this->bDrag_ = false; 45 45 this->bAllowMouseLook_ = false; 46 this->bAbsolute_ = false; 46 47 47 48 this->setObjectMode(0x0); … … 58 59 XMLPortParam(CameraPosition, "drag", setDrag, getDrag, xmlelement, mode).defaultValues(false); 59 60 XMLPortParam(CameraPosition, "mouselook", setAllowMouseLook, getAllowMouseLook, xmlelement, mode).defaultValues(false); 61 XMLPortParam(CameraPosition, "absolute", setIsAbsolute, getIsAbsolute, xmlelement, mode).defaultValues(false); 60 62 } 61 63 -
code/branches/questsystem5/src/orxonox/objects/worldentities/CameraPosition.h
r2662 r2907 54 54 { return this->bAllowMouseLook_; } 55 55 56 inline void setIsAbsolute(bool bAbsolute) 57 { this->bAbsolute_ = bAbsolute; } 58 inline bool getIsAbsolute() const 59 { return this->bAbsolute_; } 60 56 61 void attachCamera(Camera* camera); 57 62 … … 59 64 bool bDrag_; 60 65 bool bAllowMouseLook_; 66 bool bAbsolute_; 61 67 }; 62 68 } -
code/branches/questsystem5/src/orxonox/objects/worldentities/ControllableEntity.cc
r2662 r2907 34 34 #include "core/CoreIncludes.h" 35 35 #include "core/ConfigValueIncludes.h" 36 #include "core/ Core.h"36 #include "core/GameMode.h" 37 37 #include "core/XMLPort.h" 38 38 #include "core/Template.h" … … 144 144 void ControllableEntity::addCameraPosition(CameraPosition* position) 145 145 { 146 if (position->getAllowMouseLook()) 147 position->attachToNode(this->cameraPositionRootNode_); 146 if (!position->getIsAbsolute()) 147 { 148 if (position->getAllowMouseLook()) 149 position->attachToNode(this->cameraPositionRootNode_); 150 else 151 this->attach(position); 152 } 148 153 else 149 this->attach(position); 154 { 155 WorldEntity* parent = this->getParent(); 156 if (parent) 157 parent->attach(position); 158 } 150 159 this->cameraPositions_.push_back(position); 151 160 } … … 236 245 this->startLocalHumanControl(); 237 246 238 if (! Core::isMaster())247 if (!GameMode::isMaster()) 239 248 { 240 249 this->client_overwrite_ = this->server_overwrite_; … … 242 251 } 243 252 } 253 254 this->changedPlayer(); 244 255 } 245 256 … … 254 265 this->bHasHumanController_ = false; 255 266 this->setObjectMode(objectDirection::toclient); 267 268 this->changedPlayer(); 256 269 257 270 if (this->bDestroyWhenPlayerLeft_) … … 322 335 } 323 336 337 void ControllableEntity::parentChanged() 338 { 339 WorldEntity::parentChanged(); 340 341 WorldEntity* parent = this->getParent(); 342 if (parent) 343 { 344 for (std::list<CameraPosition*>::iterator it = this->cameraPositions_.begin(); it != this->cameraPositions_.end(); ++it) 345 if ((*it)->getIsAbsolute()) 346 parent->attach((*it)); 347 } 348 } 349 324 350 void ControllableEntity::tick(float dt) 325 351 { … … 331 357 if (!this->isDynamic()) 332 358 { 333 if ( Core::isMaster())359 if (GameMode::isMaster()) 334 360 { 335 361 this->server_position_ = this->getPosition(); … … 446 472 void ControllableEntity::setPosition(const Vector3& position) 447 473 { 448 if ( Core::isMaster())474 if (GameMode::isMaster()) 449 475 { 450 476 MobileEntity::setPosition(position); … … 461 487 void ControllableEntity::setOrientation(const Quaternion& orientation) 462 488 { 463 if ( Core::isMaster())489 if (GameMode::isMaster()) 464 490 { 465 491 MobileEntity::setOrientation(orientation); … … 476 502 void ControllableEntity::setVelocity(const Vector3& velocity) 477 503 { 478 if ( Core::isMaster())504 if (GameMode::isMaster()) 479 505 { 480 506 MobileEntity::setVelocity(velocity); … … 491 517 void ControllableEntity::setAngularVelocity(const Vector3& velocity) 492 518 { 493 if ( Core::isMaster())519 if (GameMode::isMaster()) 494 520 { 495 521 MobileEntity::setAngularVelocity(velocity); … … 507 533 { 508 534 MobileEntity::setWorldTransform(worldTrans); 509 if ( Core::isMaster())535 if (GameMode::isMaster()) 510 536 { 511 537 this->server_position_ = this->getPosition(); -
code/branches/questsystem5/src/orxonox/objects/worldentities/ControllableEntity.h
r2662 r2907 49 49 50 50 virtual void changedGametype(); 51 virtual void changedPlayer() {} 51 52 52 53 virtual void setPlayer(PlayerInfo* player); … … 136 137 virtual void startLocalHumanControl(); 137 138 virtual void stopLocalHumanControl(); 139 virtual void parentChanged(); 138 140 139 141 inline void setHudTemplate(const std::string& name) -
code/branches/questsystem5/src/orxonox/objects/worldentities/ExplosionChunk.cc
r2759 r2907 32 32 #include <OgreParticleSystem.h> 33 33 34 #include "core/ Core.h"34 #include "core/GameMode.h" 35 35 #include "core/CoreIncludes.h" 36 36 #include "core/Executor.h" … … 47 47 RegisterObject(ExplosionChunk); 48 48 49 if ( Core::showsGraphics() && ( !this->getScene() || !this->getScene()->getSceneManager() ) )49 if ( GameMode::showsGraphics() && ( !this->getScene() || !this->getScene()->getSceneManager() ) ) 50 50 ThrowException(AbortLoading, "Can't create ExplosionChunk, no scene or no scene manager given."); 51 51 … … 53 53 this->LOD_ = LODParticle::normal; 54 54 55 if ( Core::showsGraphics() )55 if ( GameMode::showsGraphics() ) 56 56 { 57 57 try … … 75 75 } 76 76 77 if ( Core::isMaster())77 if (GameMode::isMaster()) 78 78 { 79 79 Vector3 velocity(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1)); … … 132 132 this->smoke_->setEnabled(false); 133 133 134 if ( Core::isMaster())134 if (GameMode::isMaster()) 135 135 { 136 136 this->bStop_ = true; … … 148 148 static const unsigned int CHANGES_PER_SECOND = 5; 149 149 150 if ( Core::isMaster() && rnd() < dt*CHANGES_PER_SECOND)150 if (GameMode::isMaster() && rnd() < dt*CHANGES_PER_SECOND) 151 151 { 152 152 float length = this->getVelocity().length(); -
code/branches/questsystem5/src/orxonox/objects/worldentities/Light.cc
r2662 r2907 37 37 #include "util/String.h" 38 38 #include "util/Exception.h" 39 #include "core/ Core.h"39 #include "core/GameMode.h" 40 40 #include "core/CoreIncludes.h" 41 41 #include "core/XMLPort.h" … … 57 57 this->spotlightRange_ = Vector3(40.0f, 30.0f, 1.0f); 58 58 59 if ( Core::showsGraphics())59 if (GameMode::showsGraphics()) 60 60 { 61 61 if (!this->getScene()) -
code/branches/questsystem5/src/orxonox/objects/worldentities/Light.h
r2662 r2907 37 37 38 38 #include "util/Math.h" 39 #include "objects/Teamcolourable.h" 39 40 40 41 namespace orxonox 41 42 { 42 class _OrxonoxExport Light : public StaticEntity 43 class _OrxonoxExport Light : public StaticEntity, public Teamcolourable 43 44 { 44 45 public: … … 68 69 inline const ColourValue& getSpecularColour() const 69 70 { return this->specular_; } 71 72 virtual void setTeamColour(const ColourValue& colour) 73 { this->setDiffuseColour(colour); this->setSpecularColour(colour); } 70 74 71 75 /** -
code/branches/questsystem5/src/orxonox/objects/worldentities/MobileEntity.cc
- Property svn:mergeinfo changed
/code/trunk/src/orxonox/objects/worldentities/MobileEntity.cc merged: 2171-2660
r2710 r2907 182 182 // We use a dynamic body. So we translate our node accordingly. 183 183 this->node_->setPosition(Vector3(worldTrans.getOrigin().x(), worldTrans.getOrigin().y(), worldTrans.getOrigin().z())); 184 this->node_->setOrientation(Quaternion(worldTrans.getRotation().w(), worldTrans.getRotation().x(), worldTrans.getRotation().y(), worldTrans.getRotation().z())); 184 btQuaternion temp(worldTrans.getRotation()); 185 this->node_->setOrientation(Quaternion(temp.w(), temp.x(), temp.y(), temp.z())); 185 186 this->linearVelocity_.x = this->physicalBody_->getLinearVelocity().x(); 186 187 this->linearVelocity_.y = this->physicalBody_->getLinearVelocity().y(); - Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/objects/worldentities/MobileEntity.h
- Property svn:mergeinfo changed
/code/trunk/src/orxonox/objects/worldentities/MobileEntity.h merged: 2171-2660
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/objects/worldentities/Model.cc
r2662 r2907 31 31 #include <OgreEntity.h> 32 32 #include "Model.h" 33 #include "core/GameMode.h" 33 34 #include "core/CoreIncludes.h" 34 35 #include "core/XMLPort.h" … … 70 71 void Model::changedMesh() 71 72 { 72 if ( Core::showsGraphics())73 if (GameMode::showsGraphics()) 73 74 { 74 75 if (this->mesh_.getEntity()) -
code/branches/questsystem5/src/orxonox/objects/worldentities/MovableEntity.cc
r2662 r2907 34 34 #include "core/XMLPort.h" 35 35 #include "core/Executor.h" 36 #include "core/ Core.h"36 #include "core/GameMode.h" 37 37 38 38 namespace orxonox … … 89 89 void MovableEntity::resynchronize() 90 90 { 91 if ( Core::isMaster() && !this->continuousResynchroTimer_)91 if (GameMode::isMaster() && !this->continuousResynchroTimer_) 92 92 { 93 93 // Resynchronise every few seconds because we only work with velocities (no positions) -
code/branches/questsystem5/src/orxonox/objects/worldentities/ParticleEmitter.cc
r2662 r2907 39 39 #include "tools/ParticleInterface.h" 40 40 #include "util/Exception.h" 41 #include "core/GameMode.h" 41 42 #include "core/CoreIncludes.h" 42 43 #include "core/XMLPort.h" … … 51 52 RegisterObject(ParticleEmitter); 52 53 53 if ( Core::showsGraphics() && (!this->getScene() || !this->getScene()->getSceneManager()))54 if (GameMode::showsGraphics() && (!this->getScene() || !this->getScene()->getSceneManager())) 54 55 ThrowException(AbortLoading, "Can't create ParticleEmitter, no scene or no scene manager given."); 55 56 … … 107 108 } 108 109 109 if ( Core::showsGraphics() && this->getScene() && this->getScene()->getSceneManager())110 if (GameMode::showsGraphics() && this->getScene() && this->getScene()->getSceneManager()) 110 111 { 111 112 try -
code/branches/questsystem5/src/orxonox/objects/worldentities/ParticleSpawner.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/questsystem5/src/orxonox/objects/worldentities/ParticleSpawner.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/questsystem5/src/orxonox/objects/worldentities/Planet.cc
r2710 r2907 42 42 #include "CameraManager.h" 43 43 #include "Camera.h" 44 #include "Graphics Engine.h"44 #include "GraphicsManager.h" 45 45 46 46 namespace orxonox -
code/branches/questsystem5/src/orxonox/objects/worldentities/StaticEntity.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/questsystem5/src/orxonox/objects/worldentities/StaticEntity.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/questsystem5/src/orxonox/objects/worldentities/WorldEntity.cc
r2662 r2907 181 181 182 182 // Attach to parent if necessary 183 registerVariable(this->parentID_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity:: parentChanged));183 registerVariable(this->parentID_, variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::networkcallback_parentChanged)); 184 184 } 185 185 … … 188 188 Network function that object this instance to its correct parent. 189 189 */ 190 void WorldEntity:: parentChanged()190 void WorldEntity::networkcallback_parentChanged() 191 191 { 192 192 if (this->parentID_ != OBJECTID_UNKNOWN) … … 362 362 this->parentID_ = newParent->getObjectID(); 363 363 364 this->parentChanged(); 365 364 366 // apply transform to collision shape 365 367 this->collisionShape_->setPosition(this->getPosition()); 366 368 this->collisionShape_->setOrientation(this->getOrientation()); 367 369 // TODO: Scale 368 370 369 371 return true; 370 372 } … … 406 408 this->parent_ = 0; 407 409 this->parentID_ = OBJECTID_UNKNOWN; 410 411 this->parentChanged(); 408 412 409 413 // reset orientation of the collisionShape (cannot be set within a WE usually) … … 488 492 489 493 // Note: These functions are placed in WorldEntity.h as inline functions for the release build. 490 #ifndef _NDEBUG494 #ifndef NDEBUG 491 495 const Vector3& WorldEntity::getPosition() const 492 496 { … … 656 660 case TransformSpace::World: 657 661 ogreRelativeTo = Ogre::Node::TS_WORLD; break; 662 default: OrxAssert(false, "Faulty TransformSpace::Enum assigned."); 658 663 } 659 664 this->node_->setDirection(direction, ogreRelativeTo, localDirectionVector); … … 755 760 { 756 761 case Dynamic: 757 this->physicalBody_->setCollisionFlags(this->physicalBody_->getCollisionFlags() & ! (btCollisionObject::CF_STATIC_OBJECT | btCollisionObject::CF_KINEMATIC_OBJECT));762 this->physicalBody_->setCollisionFlags(this->physicalBody_->getCollisionFlags() & !btCollisionObject::CF_STATIC_OBJECT & !btCollisionObject::CF_KINEMATIC_OBJECT); 758 763 break; 759 764 case Kinematic: -
code/branches/questsystem5/src/orxonox/objects/worldentities/WorldEntity.h
r2662 r2907 33 33 #include "OrxonoxPrereqs.h" 34 34 35 #ifdef _NDEBUG35 #ifdef NDEBUG 36 36 #include <OgreSceneNode.h> 37 37 #else … … 176 176 177 177 protected: 178 virtual void parentChanged() {} 179 178 180 Ogre::SceneNode* node_; 179 181 … … 191 193 192 194 // network callbacks 193 void parentChanged();195 void networkcallback_parentChanged(); 194 196 inline void scaleChanged() 195 197 { this->setScale3D(this->getScale3D()); } … … 269 271 @brief 270 272 Sets how much reaction is applied in a collision. 271 273 272 274 Consider two equal spheres colliding with equal velocities: 273 275 Restitution 1 means that both spheres simply reverse their velocity (no loss of energy) … … 419 421 420 422 // Inline heavily used functions for release builds. In debug, we better avoid including OgreSceneNode here. 421 #ifdef _NDEBUG423 #ifdef NDEBUG 422 424 inline const Vector3& WorldEntity::getPosition() const 423 425 { return this->node_->getPosition(); } 424 426 inline const Quaternion& WorldEntity::getOrientation() const 425 { return this->node_->get rOrientation(); }427 { return this->node_->getOrientation(); } 426 428 inline const Vector3& WorldEntity::getScale3D(void) const 427 429 { return this->node_->getScale(); } -
code/branches/questsystem5/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2662 r2907 30 30 #include "Pawn.h" 31 31 32 #include "core/ Core.h"32 #include "core/GameMode.h" 33 33 #include "core/CoreIncludes.h" 34 34 #include "core/XMLPort.h" … … 63 63 this->getPickUp().setPlayer(this); 64 64 65 if ( Core::isMaster())65 if (GameMode::isMaster()) 66 66 { 67 67 this->weaponSystem_ = new WeaponSystem(this); … … 133 133 } 134 134 135 void Pawn::setPlayer(PlayerInfo* player) 136 { 137 ControllableEntity::setPlayer(player); 138 139 if (this->getGametype()) 140 this->getGametype()->playerStartsControllingPawn(player, this); 141 } 142 143 void Pawn::removePlayer() 144 { 145 if (this->getGametype()) 146 this->getGametype()->playerStopsControllingPawn(this->getPlayer(), this); 147 148 ControllableEntity::removePlayer(); 149 } 150 135 151 void Pawn::setHealth(float health) 136 152 { … … 140 156 void Pawn::damage(float damage, Pawn* originator) 141 157 { 142 this->setHealth(this->health_ - damage); 143 this->lastHitOriginator_ = originator; 144 145 // play damage effect 158 if (this->getGametype() && this->getGametype()->allowPawnDamage(this, originator)) 159 { 160 this->setHealth(this->health_ - damage); 161 this->lastHitOriginator_ = originator; 162 163 // play damage effect 164 } 146 165 } 147 166 148 167 void Pawn::hit(Pawn* originator, const Vector3& force, float damage) 149 168 { 150 this->damage(damage, originator); 151 this->setVelocity(this->getVelocity() + force); 152 153 // play hit effect 169 if (this->getGametype() && this->getGametype()->allowPawnHit(this, originator)) 170 { 171 this->damage(damage, originator); 172 this->setVelocity(this->getVelocity() + force); 173 174 // play hit effect 175 } 154 176 } 155 177 … … 176 198 void Pawn::death() 177 199 { 178 // Set bAlive_ to false and wait for PawnManager to do the destruction 179 this->bAlive_ = false; 180 181 this->setDestroyWhenPlayerLeft(false); 182 183 if (this->getGametype()) 184 this->getGametype()->pawnKilled(this, this->lastHitOriginator_); 185 186 if (this->getPlayer()) 187 this->getPlayer()->stopControl(this); 188 189 if (Core::isMaster()) 190 this->deatheffect(); 200 if (this->getGametype() && this->getGametype()->allowPawnDeath(this, this->lastHitOriginator_)) 201 { 202 // Set bAlive_ to false and wait for PawnManager to do the destruction 203 this->bAlive_ = false; 204 205 this->setDestroyWhenPlayerLeft(false); 206 207 if (this->getGametype()) 208 this->getGametype()->pawnKilled(this, this->lastHitOriginator_); 209 210 if (this->getPlayer()) 211 this->getPlayer()->stopControl(this); 212 213 if (GameMode::isMaster()) 214 this->deatheffect(); 215 } 216 else 217 this->setHealth(1); 191 218 } 192 219 … … 222 249 ExplosionChunk* chunk = new ExplosionChunk(this->getCreator()); 223 250 chunk->setPosition(this->getPosition()); 224 225 251 } 226 252 } … … 234 260 { 235 261 this->setHealth(this->initialHealth_); 236 if ( Core::isMaster())262 if (GameMode::isMaster()) 237 263 this->spawneffect(); 238 264 } … … 243 269 } 244 270 271 272 /* WeaponSystem: 273 * functions load Slot, Set, Pack from XML and make sure all parent-pointers are set. 274 * with setWeaponPack you can not just load a Pack from XML but if a Pack already exists anywhere, you can attach it. 275 * --> e.g. Pickup-Items 276 */ 245 277 void Pawn::setWeaponSlot(WeaponSlot * wSlot) 246 278 { -
code/branches/questsystem5/src/orxonox/objects/worldentities/pawns/Pawn.h
r2662 r2907 47 47 virtual void tick(float dt); 48 48 void registerVariables(); 49 50 virtual void setPlayer(PlayerInfo* player); 51 virtual void removePlayer(); 49 52 50 53 inline bool isAlive() const -
code/branches/questsystem5/src/orxonox/objects/worldentities/pawns/Spectator.cc
r2662 r2907 34 34 #include "core/CoreIncludes.h" 35 35 #include "core/ConfigValueIncludes.h" 36 #include "core/ Core.h"36 #include "core/GameMode.h" 37 37 #include "objects/worldentities/Model.h" 38 38 #include "objects/Scene.h" … … 63 63 this->setDestroyWhenPlayerLeft(true); 64 64 65 if ( Core::showsGraphics())65 if (GameMode::showsGraphics()) 66 66 { 67 67 this->greetingFlare_ = new BillboardSet(); … … 206 206 this->bGreeting_ = !this->bGreeting_; 207 207 208 if ( Core::isMaster())208 if (GameMode::isMaster()) 209 209 { 210 210 this->bGreetingFlareVisible_ = this->bGreeting_; -
code/branches/questsystem5/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/questsystem5/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/branches/questsystem5/src/orxonox/objects/worldentities/triggers/Trigger.cc
- Property svn:mergeinfo changed
/code/branches/gui/src/orxonox/objects/worldentities/triggers/Trigger.cc (added) merged: 2848
r2710 r2907 36 36 #include "core/ConsoleCommand.h" 37 37 #include "core/XMLPort.h" 38 #include "core/ Core.h"38 #include "core/GameMode.h" 39 39 #include "objects/Scene.h" 40 40 … … 67 67 // this->bUpdating_ = false; 68 68 69 if (this->getScene() && Core::showsGraphics())69 if (this->getScene() && GameMode::showsGraphics()) 70 70 { 71 71 this->debugBillboard_.setBillboardSet(this->getScene()->getSceneManager(), "Examples/Flare", ColourValue(1.0, 0.0, 0.0), 1); - Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/objects/worldentities/triggers/Trigger.h
- Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset
for help on using the changeset viewer.