Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 8, 2008, 7:58:49 PM (15 years ago)
Author:
dafrick
Message:

Completed documentation of finished classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem2/src/orxonox/objects/quest/AddReward.h

    r2146 r2159  
    2727 */
    2828
     29/**
     30    @file AddReward.h
     31    @brief
     32        Definition of the AddReward class.
     33*/
     34
    2935#ifndef _AddReward_H__
    3036#define _AddReward_H__
     
    5157            virtual ~AddReward();
    5258
    53             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     59            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a AddReward object through XML.
    5460
    5561            virtual bool invoke(ControllableEntity* player); //!< Invokes the effect.
    5662
    5763        private:
    58             std::list<Rewardable*> rewards_;
     64            std::list<Rewardable*> rewards_; //!< A list of rewards to be added to the player invoking the effect.
    5965
    60             void initialize(void); //!< Initializes the object.
    61 
    62             inline void addRewardable(Rewardable* reward)
     66            inline void addRewardable(Rewardable* reward) //!< Add a rewardable object to the list of objects to be awarded to the player invoking the effect.
    6367                { this->rewards_.push_back(reward); }
    64             const Rewardable* getRewardables(unsigned int index) const;
     68            const Rewardable* getRewardables(unsigned int index) const; //!< Returns the rewardable object at the given index.
    6569
    6670    };
Note: See TracChangeset for help on using the changeset viewer.