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…

File:
1 edited

Legend:

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

    r7548 r7552  
    8383    @param player
    8484        The player.
    85     @throws
    86         Throws an Argument Exception if the input Player-pointer is NULL.
    8785    @return
    8886        Returns true if the QuestHint is active for the specified player.
     
    9088    bool QuestHint::isActive(const PlayerInfo* player) const
    9189    {
    92         //TODO: Replace with assert.
    93         if(player == NULL) // NULL-Pointers are ugly!
    94         {
    95             ThrowException(Argument, "The input PlayerInfo* is NULL.");
     90        if(player == NULL) // If the player is NULL, the Quest obviously can't be active.
    9691            return false;
    97         }
    9892
    9993        // Find the player.
     
    145139    bool QuestHint::setQuest(Quest* quest)
    146140    {
    147         //TODO: Replace with assert.
    148         if(quest == NULL) // NULL-Pointer. Again..?
    149         {
    150             COUT(2) << "The input Quest* is NULL." << std::endl;
    151             return false;
    152         }
     141        assert(quest);
    153142
    154143        this->quest_ = quest;
Note: See TracChangeset for help on using the changeset viewer.