Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Removed some tabs.

Location:
code/branches/presentation3/src/orxonox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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.