Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 23, 2008, 10:40:38 PM (17 years ago)
Author:
rgrieder
Message:

merged revisions 2260 - 2508 from trunk to buggy.
I'm sorry that I have to commit every merge. But otherwise I get tons of conflicts I have to solve ten times over.
Note: did not merge deletion of src/util/testing, tortoise wasn't very friendly with that.

Location:
code/branches/bugger
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/bugger

  • code/branches/bugger/src/orxonox/objects/quest/Rewardable.h

    r2096 r2530  
    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__
     
    3642namespace orxonox {
    3743
    38     class Player; //Forward declaration, remove when fully integrated in objecthirarchy.
    39 
    4044    /**
    4145    @brief
    42         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.
    4349    @author
    4450        Damian 'Mozork' Frick
     
    5157            virtual ~Rewardable();
    5258
    53             virtual bool reward(Player* 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(PlayerInfo* player) = 0; //!<
    5469
    5570    };
Note: See TracChangeset for help on using the changeset viewer.