Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2009, 9:50:37 PM (16 years ago)
Author:
rgrieder
Message:

Found out that that Debug.h is officially included in CoreIncludes.h ;)

Location:
code/branches/pch/src/orxonox/interfaces
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/interfaces/RadarViewable.cc

    r3177 r3182  
    3333#include <OgreEntity.h>
    3434
    35 #include "util/Debug.h"
    3635#include "util/String.h"
    3736#include "core/CoreIncludes.h"
     
    159158        return object->getWorldOrientation() * object->getVelocity();
    160159    }
     160
     161    void RadarViewable::validate(const WorldEntity* object) const
     162    {
     163        if (!object)
     164        {
     165            COUT(1) << "Assertation: Every RadarViewable has to be assigned a WorldEntity pointer!" << std::endl;
     166            assert(0);
     167        }
     168    }
    161169}
  • code/branches/pch/src/orxonox/interfaces/RadarViewable.h

    r3177 r3182  
    3737
    3838#include "util/Math.h"
    39 #include "util/Debug.h"
    4039#include "core/OrxonoxClass.h"
    4140
     
    114113
    115114    private:
    116         void validate(const WorldEntity* object) const
    117         {
    118             if (!object)
    119             {
    120                 COUT(1) << "Assertation: Every RadarViewable has to be assigned a WorldEntity pointer!" << std::endl;
    121                 assert(0);
    122             }
    123         }
    124 
     115        void validate(const WorldEntity* object) const;
    125116        bool bVisibility_;
    126117        //Map
Note: See TracChangeset for help on using the changeset viewer.