Changeset 9232 for code/branches/captureTheFlag/src/orxonox
- Timestamp:
- May 23, 2012, 5:56:57 PM (13 years ago)
- Location:
- code/branches/captureTheFlag
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/captureTheFlag
- Property svn:mergeinfo changed
/code/branches/waypoints (added) merged: 9032,9043,9054,9093,9105,9159,9177,9219
- Property svn:mergeinfo changed
-
code/branches/captureTheFlag/src/orxonox/overlays/OrxonoxOverlay.cc
r8858 r9232 42 42 #include <OgreTechnique.h> 43 43 #include <OgrePass.h> 44 #include <OgreEntity.h> 44 45 45 46 #include "util/Convert.h" … … 83 84 "OrxonoxOverlay_background_" + multi_cast<std::string>(hudOverlayCounter_s++))); 84 85 this->overlay_->add2D(this->background_); 86 87 overlay3d_ = new Ogre::SceneNode(NULL); 88 this->overlay_->add3D(overlay3d_); 85 89 86 90 // Get aspect ratio from the render window. Later on, we get informed automatically … … 448 452 tempTx->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, colour); 449 453 } 454 void OrxonoxOverlay::add3DMesh(Ogre::Entity* entity) 455 { 456 this->overlay3d_->attachObject(entity); 457 } 458 450 459 } -
code/branches/captureTheFlag/src/orxonox/overlays/OrxonoxOverlay.h
r8706 r9232 44 44 #include "core/Super.h" 45 45 #include "core/WindowEventListener.h" 46 46 47 47 48 namespace orxonox … … 186 187 virtual void changedOverlayGroup() 187 188 { this->changedVisibility(); } 189 void add3DMesh(Ogre::Entity* entity); 190 188 191 189 192 protected: … … 195 198 Ogre::Overlay* overlay_; //!< The overlay the entire class is about. 196 199 Ogre::PanelOverlayElement* background_; //!< Background image (blank per default). 200 Ogre::SceneNode* overlay3d_; //!< The scene where one can add 3D objects to the overlay 197 201 198 202 float windowAspectRatio_; //!< Screen.width / screen.height … … 215 219 OverlayGroup* group_; 216 220 Ogre::Pass* backgroundAlphaPass_; 221 217 222 }; 218 223 -
code/branches/captureTheFlag/src/orxonox/worldentities/pawns/Pawn.h
r9016 r9232 161 161 inline unsigned int getExplosionChunks() const 162 162 { return this->numexplosionchunks_; } 163 inline bool hasFlag() const 164 { return this->hasFlag_; } 165 inline void setHasFlag(bool hasFlag) 166 { this->hasFlag_ = hasFlag; } 163 167 164 168 virtual void startLocalHumanControl(); … … 207 211 float reloadWaitTime_; 208 212 float reloadWaitCountdown_; 213 bool hasFlag_; 209 214 210 215 WeakPtr<Pawn> lastHitOriginator_;
Note: See TracChangeset
for help on using the changeset viewer.