Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2008, 11:56:40 PM (15 years ago)
Author:
landauf
Message:

merged questsystem2 back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/objects/quest/AddQuestHint.h

    r2096 r2261  
    2727 */
    2828
     29/**
     30    @file AddQuestHint.h
     31    @brief
     32    Definition of the AddQuestHint class.
     33*/
     34
    2935#ifndef _AddQuestHint_H__
    3036#define _AddQuestHint_H__
     
    3844namespace orxonox {
    3945
    40     class Player; //Forward declaration, remove when fully integrated into the objecthirarchy.
    41 
    4246    /**
    4347    @brief
    44         Adds a QuestHint, resp. Activates the QuestHint.
     48        Adds a QuestHint, resp. activates the QuestHint of the given id for the player the QuestEffect is invoked on.
     49       
     50    Creating a AddQuestHint through XML goes as follows:
     51       
     52        <AddQuestHint hintId="id" />  //Where id is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information, and identifies the QuestHint that should be added.
    4553    @author
    4654        Damian 'Mozork' Frick
     
    5260            virtual ~AddQuestHint();
    5361
    54             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     62            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a AddQuestHint object through XML.
    5563
    56             virtual bool invoke(Player* player); //!< Invokes the effect.
     64            virtual bool invoke(PlayerInfo* player); //!< Invokes the QuestEffect.
    5765
    5866        private:
    59             std::string hintId_;
     67            std::string hintId_; //!< The id of the QuestHint.
    6068
     69            /**
     70            @brief Returns the id of the QuestHint.
     71            @return Returns the id of the QuestHint.
     72            */
    6173            inline const std::string & getHintId(void) const
    6274                { return this->hintId_; }
    63             void setHintId(const std::string & id);
     75            bool setHintId(const std::string & id); //!< Sets the id of the QuestHint.
    6476
    6577    };
Note: See TracChangeset for help on using the changeset viewer.