Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2008, 1:42:17 AM (15 years ago)
Author:
rgrieder
Message:
  • updated msvc files
  • Fixed build by including util/Integer.h in NetworkPrereqs.h instead of util/Math.h
  • Fixed issue with a this pointer used in the base class c'tor initialisation
  • Fixed build under windows: INFINITE seems to be a macro, defined in winbase.h. Constant was somewhere in the quest files.
  • Fixed build: Only integral types can have header-file value when declared as static const. Float is not supported by the standard.
  • Fixed a potential bug in Planet.cc: "if (cond) doOne; doTwo" —> missing brances (indentation was correct, so I assume there have to be brances)
  • Corrected lots of indentation problems with tabs/spaces mix.
  • Changed all "@file Blubb.h" to "@file": Doxygen then assumes the actual filename. This gives more flexibility.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/overlays/notifications/Notification.cc

    r2385 r2435  
    3434#include "NotificationManager.h"
    3535
    36 namespace orxonox {
    37 
     36namespace orxonox
     37{
    3838    Notification::Notification(BaseObject* creator) : BaseObject(creator)
    3939    {
     
    4141    }
    4242   
    43     Notification::Notification(const std::string & message, const std::string & title, float time) : BaseObject(this)
     43    Notification::Notification(BaseObject* creator, const std::string & message, const std::string & title, float time) : BaseObject(creator)
    4444    {
    4545        this->title_ = title;
     
    5959        this->title_ = "";
    6060        this->message_ = "";
    61         this->displayTime_ = DISPLAY_TIME;
     61        this->displayTime_ = NOTIFICATION_DISPLAY_TIME;
    6262        this->sent_ = false;
    6363    }
     
    6868        if(successful)
    6969            this->sent_ = true;
    70         return successful;
     70        return successful;
    7171    }
    7272   
     
    7575        if(this->isSent())
    7676            return false;
    77         this->title_ = title;
    78         return true;
     77        this->title_ = title;
     78        return true;
    7979    }
    8080   
     
    8383        if(this->isSent())
    8484            return false;
    85         this->message_ = message;
    86         return true;
     85        this->message_ = message;
     86        return true;
    8787    }
    8888   
     
    9292        {
    9393            return false;
    94         }
    95         if(time > 0)
    96         {
    97             this->displayTime_ = time;
    98             return true;
    99         }
    100         return false;
     94        }
     95        if(time > 0)
     96        {
     97            this->displayTime_ = time;
     98            return true;
     99        }
     100        return false;
    101101    }
    102 
    103102}
Note: See TracChangeset for help on using the changeset viewer.