Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8166 for code


Ignore:
Timestamp:
Apr 1, 2011, 9:33:37 PM (14 years ago)
Author:
kmaurus
Message:

updated to style guide: underlines at the end of member variables added

Location:
code/branches/spaceboundaries/src/orxonox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/spaceboundaries/src/orxonox/infos/GametypeInfo.cc

    r7163 r8166  
    77 *
    88 *   This program is free software; you can redistribute it and/or
    9  *   modify it under the terms of the GNU General Public License
     9 *   modify it under the terms of the GNU General Public Licens
    1010 *   as published by the Free Software Foundation; either version 2
    1111 *   of the License, or (at your option) any later version.
  • code/branches/spaceboundaries/src/orxonox/worldentities/SpaceBoundaries.cc

    r8164 r8166  
    4242#include <infos/PlayerInfo.h>
    4343
    44 #include <OgreTextAreaOverlayElement.h>
     44//#include <OgreTextAreaOverlayElement.h>
    4545#include <OgreOverlayManager.h>
    46 #include <overlays/OverlayText.h>
     46//#include <overlays/OverlayText.h>
    4747
    4848namespace orxonox
     
    5555        COUT(0) << "Test ob Konstruktor aufgerufen wird." << std::endl; //!< message for debugging
    5656        // Show Boundaries on the radar.
    57          m_pColoredTextAreaOverlayElementFactory = new ColoredTextAreaOverlayElementFactory();
     57//         m_pColoredTextAreaOverlayElementFactory = new ColoredTextAreaOverlayElementFactory();
    5858    }
    5959    SpaceBoundaries::~SpaceBoundaries()
    6060    {
    61         delete pColoredTextAreaOverlayElementFactory;
     61//        delete pColoredTextAreaOverlayElementFactory;
    6262    }
    6363   
    6464    void SpaceBoundaries::setCenter(Vector3 r)
    6565    {
    66         this->center = r;
     66        this->center_ = r;
    6767    }
    6868    Vector3 SpaceBoundaries::getCenter()
    6969    {
    70         return this->center;
     70        return this->center_;
    7171    }
    7272   
    7373    void SpaceBoundaries::setMaxDistance(float r)
    7474    {
    75         this->maxDistance = r;
     75        this->maxDistance_ = r;
    7676    }
    7777    float SpaceBoundaries::getMaxDistance()
    7878    {
    79         return this->maxDistance;
     79        return this->maxDistance_;
    8080    }
    8181   
    8282    void SpaceBoundaries::setWarnDistance(float r)
    8383    {
    84         this->warnDistance = r;
     84        this->warnDistance_ = r;
    8585    }
    8686    float SpaceBoundaries::getWarnDistance()
    8787    {
    88         return this->warnDistance;
     88        return this->warnDistance_;
    8989    }
    9090
     
    111111                COUT(0) << "Pawn wird erkannt!!!" << std::endl; //!< message for debugging
    112112                COUT(0) << "Distanz:" << distance << std::endl; //!< message for debugging
    113                 if(distance > this->warnDistance /*&& distance < this->maxDistance*/)
     113                if(distance > this->warnDistance_ /*&& distance < this->maxDistance*/)
    114114                {
    115115                    COUT(0) << "You are leaving the area" << std::endl; //!< message for debugging
     
    121121                   
    122122                    }
    123                 } else if(distance > maxDistance)
     123                } else if(distance > maxDistance_)
    124124                {
    125125                    // Decrease Health
     
    138138    {
    139139        Vector3 itemPosition = item->getPosition();
    140         return (itemPosition.distance(this->center));
     140        return (itemPosition.distance(this->center_));
    141141    }
    142142   
     
    159159        warning.show();*/
    160160        // Register the overlay element
    161          OverlayManager::getSingleton().addOverlayElementFactory(pColoredTextAreaOverlayElementFactory);
     161/*         OverlayManager::getSingleton().addOverlayElementFactory(pColoredTextAreaOverlayElementFactory);
    162162         
    163163        Ogre::TextAreaOverlayElement *pTextArea =
    164164                (Ogre::TextAreaOverlayElement*)Ogre::OverlayManager.createOverlayElement("TextArea", "MyTextArea");
    165165        pTextArea->setCaption("Some plain text");
    166 
     166*/
    167167       
    168168    }
  • code/branches/spaceboundaries/src/orxonox/worldentities/SpaceBoundaries.h

    r8164 r8166  
    4040#include "worldentities/WorldEntity.h"
    4141
    42 #include <ColoredTextAreaOverlayElementFactory.h>
     42//#include <ColoredTextAreaOverlayElementFactory.h>
    4343
    4444#include <string>
     
    6767
    6868        private:
    69             Vector3 center;
    70             float maxDistance;
    71             float warnDistance;
     69            Vector3 center_;
     70            float maxDistance_;
     71            float warnDistance_;
    7272       
    7373            float computeDistance(WorldEntity *item); //!< Auf den Mittelpunkt 'center' bezogen.
    7474            void displayWarning(const std::string warnText);
    7575            bool isHumanPlayer(Pawn *item);
    76             ColoredTextAreaOverlayElementFactory* pColoredTextAreaOverlayElementFactory;
     76 //           ColoredTextAreaOverlayElementFactory* pColoredTextAreaOverlayElementFactory;
    7777    };
    7878}
Note: See TracChangeset for help on using the changeset viewer.