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