Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 14, 2008, 7:45:22 AM (17 years ago)
Author:
dafrick
Message:

Added some documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem2/src/orxonox/objects/quest/QuestEffectBeacon.cc

    r2205 r2208  
    7575        if(!b || !(this->isActive()))
    7676        {
     77            COUT(3) << "The QuestEffectBeacon is inactive." << std::endl;
    7778            return false;
    7879        }
    7980        if(entity == NULL)
    8081        {
     82            COUT(2) << "No one triggered the beacon? Curious!" << std::endl;
    8183            return false;
    8284        }
    8385       
    8486        PlayerInfo* player = entity->getPlayer();
     87       
     88        if(player == NULL)
     89        {
     90            COUT(3) << "The PlayerInfo* is NULL." << std::endl;
     91            return false;
     92        }
    8593       
    8694        bool check = QuestEffect::invokeEffects(player, this->effects_);
Note: See TracChangeset for help on using the changeset viewer.