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/objects/quest/QuestListener.h

    r2385 r2435  
    2828
    2929/**
    30     @file QuestListener.h
     30    @file
    3131    @brief Definition of the QuestListener class.
    3232*/
     
    4444#include "Quest.h"
    4545
    46 namespace questListenerMode
     46namespace orxonox
    4747{
     48    namespace questListenerMode
     49    {
    4850
    49     //! The mode of the QuestListener.
    50     enum Enum
    51     {
    52         all,
    53         start,
    54         fail,
    55         complete
    56     };
     51        //! The mode of the QuestListener.
     52        enum Enum
     53        {
     54            all,
     55            start,
     56            fail,
     57            complete
     58        };
    5759
    58 }
    59 
    60 namespace orxonox {
     60    }
    6161
    6262    /**
     
    7575        </BaseObject>
    7676    @author
    77         Damian 'Mozork' Frick
     77    Damian 'Mozork' Frick
    7878    */
    7979    class _OrxonoxExport QuestListener : public BaseObject
    8080    {
    81         public:
    82             QuestListener(BaseObject* creator);
    83             virtual ~QuestListener();
    84            
    85             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a QuestListener object through XML.
    86            
    87             static void advertiseStatusChange(std::list<QuestListener*> & listeners, const std::string & status); //!< Makes all QuestListener in the list aware that a certain status change has occured.
    88            
    89             bool setQuestId(const std::string & id); //!< Sets the questId of the Quest the QuestListener reacts to.
    90             bool setMode(const std::string & mode); //!< Sets the mode of the QuestListener.
    91            
    92             const std::string getMode(void); //!< Get the mode of the QuestListener.
    93            
    94             /**
    95             @brief Get the questId of the Quest the QuestListener reacts to.
    96             @return Returns the questId of the Quest the QuestListener reacts to.
    97             */
    98             inline const std::string & getQuestId(void)
     81    public:
     82        QuestListener(BaseObject* creator);
     83        virtual ~QuestListener();
     84       
     85        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a QuestListener object through XML.
     86       
     87        static void advertiseStatusChange(std::list<QuestListener*> & listeners, const std::string & status); //!< Makes all QuestListener in the list aware that a certain status change has occured.
     88       
     89        bool setQuestId(const std::string & id); //!< Sets the questId of the Quest the QuestListener reacts to.
     90        bool setMode(const std::string & mode); //!< Sets the mode of the QuestListener.
     91       
     92        const std::string getMode(void); //!< Get the mode of the QuestListener.
     93       
     94        /**
     95        @brief Get the questId of the Quest the QuestListener reacts to.
     96        @return Returns the questId of the Quest the QuestListener reacts to.
     97        */
     98        inline const std::string & getQuestId(void)
    9999                { return this->quest_->getId(); }
    100            
    101             bool execute(void); //!< Executes the QuestListener, resp. fires an Event.
    102            
    103         private:
    104             questListenerMode::Enum mode_; //!< The mode of the QuestListener.
    105             Quest* quest_; //!< A pointer to the Quest the QuestListener is reacting to.
     100       
     101        bool execute(void); //!< Executes the QuestListener, resp. fires an Event.
     102       
     103    private:
     104        questListenerMode::Enum mode_; //!< The mode of the QuestListener.
     105        Quest* quest_; //!< A pointer to the Quest the QuestListener is reacting to.
    106106   
    107107    };
Note: See TracChangeset for help on using the changeset viewer.