Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 17, 2010, 10:50:43 PM (14 years ago)
Author:
dafrick
Message:

Resolving some TODOs and doing some additional cleanup. Almost done now…

Location:
code/trunk/src/modules/questsystem/effects
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/questsystem/effects/AddQuest.cc

    r7456 r7552  
    8383    bool AddQuest::invoke(PlayerInfo* player)
    8484    {
    85         //TODO: Replace with assert?
    86         if(player == NULL) // Null-pointers are badass.
    87         {
    88             COUT(2) << "Input player is NULL." << std::endl;
    89             return false;
    90         }
     85        assert(player);
    9186
    9287        COUT(5) << "AddQuest on player: " << player << " ." << std::endl;
  • code/trunk/src/modules/questsystem/effects/AddQuest.h

    r7456 r7552  
    4141namespace orxonox
    4242{
     43
    4344    /**
    4445    @brief
     
    4950        <AddQuest questId="id" />  //Where id identifies the Quest that should be added.
    5051        @endcode
     52
    5153    @author
    5254        Damian 'Mozork' Frick
     55
     56    @ingroup QuestEffects
    5357    */
    5458    class _QuestsystemExport AddQuest : public ChangeQuestStatus
  • code/trunk/src/modules/questsystem/effects/AddQuestHint.cc

    r7456 r7552  
    106106    bool AddQuestHint::invoke(PlayerInfo* player)
    107107    {
    108         //TODO: Replace with assert?
    109         if(player == NULL) // NULL-pointers are evil!
    110         {
    111             COUT(2) << "The input player is NULL." << std::endl;
    112             return false;
    113         }
     108        assert(player);
    114109
    115110        COUT(5) << "AddQuestHint on player: " << player << " ." << std::endl;
  • code/trunk/src/modules/questsystem/effects/AddQuestHint.h

    r7456 r7552  
    4343namespace orxonox
    4444{
     45
    4546    /**
    4647    @brief
     
    5152        <AddQuestHint hintId="id" />  //Where id identifies the QuestHint that should be added.
    5253        @endcode
     54
    5355    @author
    5456        Damian 'Mozork' Frick
     57
     58    @ingroup QuestEffects
    5559    */
    5660    class _QuestsystemExport AddQuestHint : public QuestEffect
  • code/trunk/src/modules/questsystem/effects/AddReward.h

    r7456 r7552  
    4343namespace orxonox
    4444{
     45   
    4546    /**
    4647    @brief
     
    5556        </AddReward>
    5657        @endcode
     58
    5759    @author
    5860        Damian 'Mozork' Frick
     61
     62    @ingroup QuestEffects
    5963    */
    6064    class _QuestsystemExport AddReward : public QuestEffect
  • code/trunk/src/modules/questsystem/effects/ChangeQuestStatus.h

    r7456 r7552  
    4343namespace orxonox
    4444{
     45
    4546    /**
    4647    @brief
    4748        A QuestEffect which changes the status of a specified @ref orxonox::Quest "Quest" for the player invoking the QuestEffect.
     49
    4850    @author
    4951        Damian 'Mozork' Frick
     52
     53    @ingroup QuestEffects
    5054    */
    5155    class _QuestsystemExport ChangeQuestStatus : public QuestEffect
  • code/trunk/src/modules/questsystem/effects/CompleteQuest.cc

    r7456 r7552  
    8383    bool CompleteQuest::invoke(PlayerInfo* player)
    8484    {
    85         //TODO: Replace with assert?
    86         if(player == NULL) // You know, what we think of NULL-pointers...
    87         {
    88             COUT(2) << "Input player is NULL." << std::endl;
    89             return false;
    90         }
     85        assert(player);
    9186
    9287        COUT(5) << "CompleteQuest on player: " << player << " ." << std::endl;
  • code/trunk/src/modules/questsystem/effects/CompleteQuest.h

    r7456 r7552  
    4141namespace orxonox
    4242{
     43
    4344    /**
    4445    @brief
     
    4950        <CompleteQuest questId="id" />  //Where id identifies the Quest that should be completed.
    5051        @endcode
     52
    5153    @author
    5254        Damian 'Mozork' Frick
     55
     56    @ingroup QuestEffects
    5357    */
    5458    class _QuestsystemExport CompleteQuest : public ChangeQuestStatus
  • code/trunk/src/modules/questsystem/effects/FailQuest.cc

    r7456 r7552  
    8383    bool FailQuest::invoke(PlayerInfo* player)
    8484    {
    85         //TODO: Replace with assert?
    86         if(player == NULL) // We don't know what to do with no player.
    87         {
    88             COUT(2) << "Input player is NULL." << std::endl;
    89             return false;
    90         }
     85        assert(player);
    9186
    9287        COUT(4) << "FailQuest on player: " << player << " ." << std::endl;
  • code/trunk/src/modules/questsystem/effects/FailQuest.h

    r7456 r7552  
    4141namespace orxonox
    4242{
     43
    4344    /**
    4445    @brief
     
    4950        <FailQuest questId="id" />  //Where id identifies the Quest that should be failed.
    5051        @endcode
     52
    5153    @author
    5254        Damian 'Mozork' Frick
     55
     56    @ingroup QuestEffects
    5357    */
    5458    class _QuestsystemExport FailQuest : public ChangeQuestStatus
Note: See TracChangeset for help on using the changeset viewer.