Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2012, 5:56:57 PM (13 years ago)
Author:
decapitb
Message:

safety checkin

Location:
code/branches/captureTheFlag
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/captureTheFlag

  • code/branches/captureTheFlag/src/orxonox/overlays/OrxonoxOverlay.cc

    r8858 r9232  
    4242#include <OgreTechnique.h>
    4343#include <OgrePass.h>
     44#include <OgreEntity.h>
    4445
    4546#include "util/Convert.h"
     
    8384            "OrxonoxOverlay_background_" + multi_cast<std::string>(hudOverlayCounter_s++)));
    8485        this->overlay_->add2D(this->background_);
     86
     87        overlay3d_ = new Ogre::SceneNode(NULL);
     88        this->overlay_->add3D(overlay3d_);
    8589
    8690        // Get aspect ratio from the render window. Later on, we get informed automatically
     
    448452        tempTx->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, colour);
    449453    }
     454    void OrxonoxOverlay::add3DMesh(Ogre::Entity* entity)
     455    {
     456        this->overlay3d_->attachObject(entity);
     457    }
     458
    450459}
  • code/branches/captureTheFlag/src/orxonox/overlays/OrxonoxOverlay.h

    r8706 r9232  
    4444#include "core/Super.h"
    4545#include "core/WindowEventListener.h"
     46
    4647
    4748namespace orxonox
     
    186187        virtual void changedOverlayGroup()
    187188            { this->changedVisibility(); }
     189        void add3DMesh(Ogre::Entity* entity);
     190
    188191
    189192    protected:
     
    195198        Ogre::Overlay* overlay_;                   //!< The overlay the entire class is about.
    196199        Ogre::PanelOverlayElement* background_;    //!< Background image (blank per default).
     200        Ogre::SceneNode* overlay3d_;                               //!< The scene where one can add 3D objects to the overlay
    197201
    198202        float windowAspectRatio_;                  //!< Screen.width / screen.height
     
    215219        OverlayGroup* group_;
    216220        Ogre::Pass* backgroundAlphaPass_;
     221
    217222  };
    218223
  • code/branches/captureTheFlag/src/orxonox/worldentities/pawns/Pawn.h

    r9016 r9232  
    161161            inline unsigned int getExplosionChunks() const
    162162                { return this->numexplosionchunks_; }
     163            inline bool hasFlag() const
     164                { return this->hasFlag_; }
     165            inline void setHasFlag(bool hasFlag)
     166                { this->hasFlag_ = hasFlag; }
    163167
    164168            virtual void startLocalHumanControl();
     
    207211            float reloadWaitTime_;
    208212            float reloadWaitCountdown_;
     213            bool hasFlag_;
    209214
    210215            WeakPtr<Pawn> lastHitOriginator_;
Note: See TracChangeset for help on using the changeset viewer.