Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Completed documentation of finished classes.

File:
1 edited

Legend:

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

    r2146 r2159  
    2727 */
    2828
     29/**
     30    @file Rewardable.h
     31    @brief
     32        Definition of the Rewardable class.
     33*/
     34
    2935#ifndef _Rewardable_H__
    3036#define _Rewardable_H__
     
    3844    /**
    3945    @brief
    40         Rewardable is an Interface, that can be implemented by any object to enable it to be given as reward to a player through QuestEffects.
     46        Rewardable is an Interface, that can be implemented by any object to enable it to be given as reward to a player through QuestEffects. (With the AddReward effect.)
     47       
     48        It just needs to inherit form Rewardable, and implement the reward() method.
    4149    @author
    4250        Damian 'Mozork' Frick
     
    4957            virtual ~Rewardable();
    5058
    51             virtual bool reward(ControllableEntity* player) = 0; //!<Method to transcribe a rewardable object to the player.
     59            /**
     60            @brief
     61                Method to transcribe a rewardable object to the player.
     62                Must be implemented by every class inheriting from Rewardable.
     63            @param player
     64                A pointer to the ControllableEntity, do whatever you want with it.
     65            @return
     66                Return true if successful.
     67            */
     68            virtual bool reward(ControllableEntity* player) = 0; //!<
    5269
    5370    };
Note: See TracChangeset for help on using the changeset viewer.