67 void registerVariables();
70 {
return this->sceneManager_; }
72 {
return this->rootSceneNode_; }
74 {
return this->renderQueueListener_; }
78 {
return this->skybox_; }
80 void setAmbientLight(
const ColourValue&
colour);
82 {
return this->ambientLight_; }
84 void setShadow(
bool bShadow);
86 {
return this->bShadows_; }
89 { this->soundReferenceDistance_ = distance; }
91 {
return this->soundReferenceDistance_; }
94 {
return this->radar_; }
96 virtual inline uint32_t
getSceneID()
const override {
return this->getObjectID(); }
98 virtual void tick(
float dt)
override;
102 BaseObject* getObject(
unsigned int index)
const;
105 { this->setSkybox(this->skybox_); }
107 { this->setAmbientLight(this->ambientLight_); }
109 { this->setShadow(this->bShadows_); }
130 {
return this->physicalWorld_ !=
nullptr; }
131 void setPhysicalWorld(
bool wantsPhysics);
133 void setNegativeWorldRange(
const Vector3& range);
135 {
return this->negativeWorldRange_; }
137 void setPositiveWorldRange(
const Vector3& range);
139 {
return this->positiveWorldRange_; }
141 void setGravity(
const Vector3& gravity);
143 {
return this->gravity_; }
149 {
return this->bIsUpdatingPhysics_; }
151 void setDebugDrawPhysics(
bool bDraw,
bool bFill,
float fillAlpha);
153 static void consoleCommand_debugDrawPhysics(
bool bDraw,
bool bFill,
float fillAlpha);
157 { this->setPhysicalWorld(this->bHasPhysics_); }
159 { this->setNegativeWorldRange(this->negativeWorldRange_); }
161 { this->setPositiveWorldRange(this->positiveWorldRange_); }
163 { this->setGravity(this->gravity_); }
166 static bool collisionCallback(btManifoldPoint& cp,
const btCollisionObject* colObj0,
int partId0,
167 int index0,
const btCollisionObject* colObj1,
int partId1,
int index1);
The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
Radar * radar_
This is a pointer to a Radar object assigned with this scene.
Definition: Scene.h:120
std::string skybox_
This string holds information about the skybox we're using.
Definition: Scene.h:115
WeakPtr< GlobalShader > glowShader_
Definition: Scene.h:121
std::list< BaseObject * > objects_
This list holds all the objects created in our scene.
Definition: Scene.h:117
Ogre::SceneManager * getSceneManager() const
Definition: Scene.h:69
bool bIsUpdatingPhysics_
Definition: Scene.h:185
bool getShadow() const
Definition: Scene.h:85
This class is the base class of all the Objects in the universe that need to be synchronised over the...
Definition: Synchronisable.h:142
Declaration of the Tickable interface.
bool bHasPhysics_
Definition: Scene.h:178
float getSoundReferenceDistance() const
Definition: Scene.h:90
::std::string string
Definition: gtest-port.h:756
btCollisionDispatcher * dispatcher_
Definition: Scene.h:173
bool bShadows_
Do we want shadows in our scene?
Definition: Scene.h:118
float soundReferenceDistance_
This holds a reference distance, which represents the distance between our scene and the listener...
Definition: Scene.h:119
Radar * getRadar()
Definition: Scene.h:93
const Vector3 & getNegativeWorldRange() const
Definition: Scene.h:134
btSequentialImpulseConstraintSolver * solver_
Definition: Scene.h:174
void networkcallback_negativeWorldRange()
Definition: Scene.h:158
RenderQueueListener * getRenderQueueListener() const
Definition: Scene.h:73
void networkcallback_applySkybox()
Definition: Scene.h:104
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
std::set< WorldEntity * > physicalObjects_
Definition: Scene.h:177
Ogre::ColourValue colour(const btVector3 &color, btScalar alpha)
Definition: OgreBulletUtils.h:41
Declaration the SetConsoleCommand() macro.
btDefaultCollisionConfiguration * collisionConfig_
Definition: Scene.h:172
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
const Vector3 & getPositiveWorldRange() const
Definition: Scene.h:138
void setSoundReferenceDistance(float distance)
Definition: Scene.h:88
xmlelement
Definition: Super.h:519
void networkcallback_applyShadows()
Definition: Scene.h:108
Vector3 positiveWorldRange_
Definition: Scene.h:180
bool hasPhysics() const
Definition: Scene.h:129
Declaration and implementation of several math-functions, typedefs of some Ogre::Math classes to the ...
bool bDebugDrawPhysics_
Definition: Scene.h:184
Vector3 negativeWorldRange_
Definition: Scene.h:179
Originally from http://www.ogre3d.org/tikiwiki/BulletDebugDrawer&structure=Cookbook This source code ...
Definition: BulletDebugDrawer.h:19
Ogre::SceneNode * getRootSceneNode() const
Definition: Scene.h:71
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Shared library macros, enums, constants and forward declarations for the orxonox library ...
void networkcallback_gravity()
Definition: Scene.h:162
Declaration of BaseObject, the base class of all objects in Orxonox.
Vector3 gravity_
Definition: Scene.h:181
btDiscreteDynamicsWorld * physicalWorld_
Definition: Scene.h:170
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
bool isUpdatingPhysics() const
Definition: Scene.h:148
const ColourValue & getAmbientLight() const
Definition: Scene.h:81
This class derives from the Ogre-Class RenderQueueListener and provides a way to define new rendering...
Definition: RenderQueueListener.h:65
const Vector3 & getGravity() const
Definition: Scene.h:142
Ogre::SceneNode * rootSceneNode_
This is a pointer to the root node of the Scene tree.
Definition: Scene.h:112
BulletDebugDrawer * debugDrawer_
Definition: Scene.h:183
void networkcallback_hasPhysics()
Definition: Scene.h:156
virtual uint32_t getSceneID() const override
Definition: Scene.h:96
const std::string & getSkybox() const
Definition: Scene.h:77
void networkcallback_applyAmbientLight()
Definition: Scene.h:106
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
std::set< WorldEntity * > physicalObjectQueue_
Definition: Scene.h:176
ColourValue ambientLight_
This variable holds the color value for the ambient light in our scene, usually black in space...
Definition: Scene.h:116
void networkcallback_positiveWorldRange()
Definition: Scene.h:160
RenderQueueListener * renderQueueListener_
this is a pointer to the RenderQueueListener we're using for this Scene
Definition: Scene.h:113
bt32BitAxisSweep3 * broadphase_
Definition: Scene.h:171
Ogre::SceneManager * sceneManager_
This is a pointer to the Ogre SceneManager we're using to render the Scene.
Definition: Scene.h:111