Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7039 for code


Ignore:
Timestamp:
May 31, 2010, 9:33:09 AM (14 years ago)
Author:
rgrieder
Message:

Removed some tabs.

Location:
code/branches/presentation3/src
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/libraries/network/ChatListener.h

    r6928 r7039  
    3838    {
    3939        public:
    40             /* constructor, destructor */
     40            /* constructor, destructor */
    4141            ChatListener();
    4242            virtual ~ChatListener() {}
  • code/branches/presentation3/src/modules/designtools/CreateStars.cc

    r7028 r7039  
    121121        XMLPortParam(CreateStars, "radiusDiff", setRadiusDiff, getRadiusDiff, xmlelement, mode);
    122122        XMLPortParam(CreateStars, "radius", setRadius, getRadius, xmlelement, mode);
    123         }
     123    }
    124124
    125125}
  • code/branches/presentation3/src/modules/designtools/ScreenshotManager.cc

    r7015 r7039  
    2525        mDisableOverlays  = overlayFlag;
    2626        //get current window size
    27         mWindowWidth    = pRenderWindow->getWidth();
    28         mWindowHeight    = pRenderWindow->getHeight();
     27        mWindowWidth  = pRenderWindow->getWidth();
     28        mWindowHeight  = pRenderWindow->getHeight();
    2929        //create temporary texture
    3030        mTempTex = Ogre::TextureManager::getSingleton().createManual("ScreenShotTex",
     
    6464        //set the viewport settings
    6565        Ogre::Viewport *vp = mRT->getViewport(0);
    66         vp->setClearEveryFrame(true);   
     66        vp->setClearEveryFrame(true); 
    6767        vp->setOverlaysEnabled(false);
    6868
     
    7878            // Simple case where the contents of the screen are taken directly
    7979            // Also used when an invalid value is passed within gridSize (zero or negative grid size)
    80             mRT->update();              //render
     80            mRT->update();    //render
    8181
    8282            //write the file on the Harddisk
     
    9191           
    9292            // compute the Stepsize for the drid
    93             Ogre::Real frustumGridStepHorizontal        = (originalFrustumRight * 2) / mGridSize;
    94             Ogre::Real frustumGridStepVertical  = (originalFrustumTop * 2) / mGridSize;
     93            Ogre::Real frustumGridStepHorizontal  = (originalFrustumRight * 2) / mGridSize;
     94            Ogre::Real frustumGridStepVertical  = (originalFrustumTop * 2) / mGridSize;
    9595
    9696            // process each grid
     
    103103                // Shoggoth frustum extents setting
    104104                // compute the new frustum extents
    105                 frustumLeft             = originalFrustumLeft + frustumGridStepHorizontal * x;
    106                 frustumRight    = frustumLeft + frustumGridStepHorizontal;
    107                 frustumTop              = originalFrustumTop - frustumGridStepVertical * y;
    108                 frustumBottom   = frustumTop - frustumGridStepVertical;
     105                frustumLeft    = originalFrustumLeft + frustumGridStepHorizontal * x;
     106                frustumRight  = frustumLeft + frustumGridStepHorizontal;
     107                frustumTop    = originalFrustumTop - frustumGridStepVertical * y;
     108                frustumBottom  = frustumTop - frustumGridStepVertical;
    109109               
    110110                // set the frustum extents value to the camera
     
    113113                // ignore time duration between frames
    114114                Ogre::Root::getSingletonPtr()->clearEventTimes();
    115                 mRT->update();          //render
     115                mRT->update();    //render
    116116               
    117117                //define the current
  • code/branches/presentation3/src/modules/designtools/ScreenshotManager.h

    r7022 r7039  
    4040     
    4141    protected:
    42         std::string      mFileExtension;
     42        std::string    mFileExtension;
    4343        unsigned int   mGridSize, mWindowWidth, mWindowHeight;
    4444        bool           mDisableOverlays;
  • code/branches/presentation3/src/modules/designtools/SkyboxGenerator.cc

    r6994 r7039  
    151151        }
    152152    }
    153        
    154         void SkyboxGenerator::createSkybox( )
    155         {
     153
     154    void SkyboxGenerator::createSkybox( )
     155    {
    156156        SkyboxGenerator::getInstance().takeScreenshot_ = true;
    157157        CommandExecutor::execute("pause");
    158         }
     158    }
    159159}
  • code/branches/presentation3/src/modules/pickup/items/ShieldPickup.h

    r6998 r7039  
    5050        A Pickup which can add a Shield to the Pawn.
    5151
    52         1) The percentage: The percentage the shield takes from the damage dealt to a Pawn
    53         2) The hit points: The amount of damage points a shield can teake before collapsing
     52        1) The percentage: The percentage the shield takes from the damage dealt to a Pawn
     53        2) The hit points: The amount of damage points a shield can teake before collapsing
    5454        3) The activation type: 'immediate' or 'onUse'. defines if the item is used when it's picked up or only after the player chooses to use it.
    5555        4) The duration: the activation time of the pickup.
  • code/branches/presentation3/src/modules/weapons/RocketController.h

    r7021 r7039  
    4949        public:
    5050            RocketController(BaseObject* creator);
    51                         virtual ~RocketController();
     51            virtual ~RocketController();
    5252           
    5353            virtual void tick(float dt);
    54                         SimpleRocket* getRocket() const
     54            SimpleRocket* getRocket() const
    5555             {  return this->rocket_;  };
    56                         void setTarget(WorldEntity* target);
     56            void setTarget(WorldEntity* target);
    5757        protected:
    58                         void moveToPosition(const Vector3& target);
    59                         void setTargetPosition();
    60                         void moveToTargetPosition();
     58            void moveToPosition(const Vector3& target);
     59            void setTargetPosition();
     60            void moveToTargetPosition();
    6161
    6262        private:
    63                         SimpleRocket* rocket_; //!<The Rocket it controlls
    64                         Vector3 targetPosition_;
    65                         WeakPtr<PlayerInfo> player_;
    66                                                
    67                         WeakPtr<WorldEntity> target_;
     63            SimpleRocket* rocket_; //!<The Rocket it controlls
     64            Vector3 targetPosition_;
     65            WeakPtr<PlayerInfo> player_;
     66                       
     67            WeakPtr<WorldEntity> target_;
    6868
    6969
  • code/branches/presentation3/src/modules/weapons/projectiles/SimpleRocket.h

    r7025 r7039  
    5151            SimpleRocket(BaseObject* creator);
    5252            virtual ~SimpleRocket();
    53                         virtual void tick(float dt);
     53            virtual void tick(float dt);
    5454            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a SimpleRocket through XML.
    5555
     
    6666            virtual void rotatePitch(const Vector2& value);
    6767            virtual void rotateRoll(const Vector2& value);
    68                         void setDestroy();
     68            void setDestroy();
    6969
    7070            /**
     
    9999            inline void rotatePitch(float value)
    100100            {   
    101                                 this->rotatePitch(Vector2(value, 0)); }
     101                this->rotatePitch(Vector2(value, 0)); }
    102102            /**
    103103            @brief Rotates the SimpleRocket around the z-axis by the specifed amount.
     
    106106            inline void rotateRoll(float value)
    107107            {
    108                                 this->rotateRoll(Vector2(value, 0)); }
     108                this->rotateRoll(Vector2(value, 0)); }
    109109
    110110            void setOwner(Pawn* owner);
  • code/branches/presentation3/src/orxonox/Level.h

    r6926 r7039  
    5757            void playerEntered(PlayerInfo* player);
    5858            void playerLeft(PlayerInfo* player);
    59                        
     59
    6060            MeshLodInformation* getLodInfo(std::string meshName) const;
    6161
  • code/branches/presentation3/src/orxonox/graphics/MeshLodInformation.cc

    r7036 r7039  
    4141
    4242    MeshLodInformation::MeshLodInformation(BaseObject* creator)
    43         : BaseObject(creator), lodLevel_(5), bEnabled_(true), numLevels_(10), reductionRate_(0.15)
     43    : BaseObject(creator), lodLevel_(5), bEnabled_(true), numLevels_(10), reductionRate_(0.15)
    4444    {
    4545        RegisterObject(MeshLodInformation);
     
    6262    std::string MeshLodInformation::getMeshName()
    6363    {
    64                 return MeshLodInformation::getMeshSource();
     64        return MeshLodInformation::getMeshSource();
    6565    }
    66        
    67         void MeshLodInformation::setLodLevel(float lodLevel)
    68         {
     66   
     67    void MeshLodInformation::setLodLevel(float lodLevel)
     68    {
    6969        if(lodLevel>=0)
    70                     lodLevel_=lodLevel;
    71         }
    72         float MeshLodInformation::getLodLevel()
    73         {
    74                 return lodLevel_;
    75         }
    76         void MeshLodInformation::setMeshSource(std::string meshSource)
    77         {
    78                 meshSource_ = meshSource;
    79         }
    80         std::string MeshLodInformation::getMeshSource()
    81         {
    82                 return meshSource_;
    83         }
     70            lodLevel_=lodLevel;
     71    }
     72    float MeshLodInformation::getLodLevel()
     73    {
     74        return lodLevel_;
     75    }
     76    void MeshLodInformation::setMeshSource(std::string meshSource)
     77    {
     78        meshSource_ = meshSource;
     79    }
     80    std::string MeshLodInformation::getMeshSource()
     81    {
     82        return meshSource_;
     83    }
    8484 
    8585}
  • code/branches/presentation3/src/orxonox/worldentities/Drone.cc

    r7034 r7039  
    1 
    2 
    3 
    4 
    5 
    6 
    71/*
    82 *   ORXONOX - the hottest 3D action shooter ever to exist
     
    4741    Drone::Drone(BaseObject* creator) : Pawn(creator)
    4842    {
    49         RegisterObject(Drone);
     43        RegisterObject(Drone);
    5044
    5145        this->myController_ = 0;
     
    8074        SUPER(Drone, XMLPort, xmlelement, mode);
    8175
    82         XMLPortParam(Drone, "primaryThrust_", setPrimaryThrust, getPrimaryThrust, xmlelement, mode);
    83         XMLPortParam(Drone, "auxilaryThrust_", setAuxilaryThrust, getAuxilaryThrust, xmlelement, mode);
    84         XMLPortParam(Drone, "rotationThrust_", setRotationThrust, getRotationThrust, xmlelement, mode);
     76        XMLPortParam(Drone, "primaryThrust_", setPrimaryThrust, getPrimaryThrust, xmlelement, mode);
     77        XMLPortParam(Drone, "auxilaryThrust_", setAuxilaryThrust, getAuxilaryThrust, xmlelement, mode);
     78        XMLPortParam(Drone, "rotationThrust_", setRotationThrust, getRotationThrust, xmlelement, mode);
    8579        XMLPortParam(Drone, "maxDistanceToOwner_", setMaxDistanceToOwner, getMaxDistanceToOwner, xmlelement, mode);
    8680        XMLPortParam(Drone, "minDistanceToOwner_", setMinDistanceToOwner, getMinDistanceToOwner, xmlelement, mode);
  • code/branches/presentation3/src/orxonox/worldentities/Drone.h

    r7034 r7039  
    114114            inline void setMinDistanceToOwner( float distance)
    115115                { this->minDistanceToOwner_=distance; }
    116                        
     116
    117117           
    118118            /**
    119119            @brief Gets the primary thrust to the input amount.
    120             @preturn The amount of thrust.
     120            @return The amount of thrust.
    121121            */
    122122            inline float getPrimaryThrust()
    123123                { return this->primaryThrust_; }
    124             inline float getAuxilaryThrust()
     124            inline float getAuxilaryThrust()
    125125                { return this->auxilaryThrust_; }
    126             inline float getRotationThrust()
     126            inline float getRotationThrust()
    127127                { return this->rotationThrust_; }
    128             inline float getMaxDistanceToOwner()
     128            inline float getMaxDistanceToOwner()
    129129                { return this->maxDistanceToOwner_; }
    130130            inline float getMinDistanceToOwner()
Note: See TracChangeset for help on using the changeset viewer.