Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5938


Ignore:
Timestamp:
Oct 13, 2009, 10:17:01 PM (14 years ago)
Author:
dafrick
Message:

Some more updated documentation, this time in QuestEffectBeacon.

Location:
code/trunk/src/modules/questsystem
Files:
2 edited

Legend:

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

    r5929 r5938  
    9090    @brief
    9191        Executes the QuestEffectBeacon.
    92         This means extracting the ControllableEntity from the PlayerTrigger, provided by the Event causing the execution, and the extracting the PlayerInfo from the received ControllableEntity and invoking the QuestEffectbeacon's QuestEffects on the received PlayerInfo.
     92        This means extracting the Pawn from the PlayerTrigger, provided by the Event causing the execution, and the extracting the PlayerInfo from the received Pawn and invoking the QuestEffectbeacon's QuestEffects on the received PlayerInfo.
    9393    @param trigger
    9494        Apointer to the PlayerTrigger that threw the Event.
     
    108108        }
    109109
    110         if(!trigger->isForPlayer()) //!< The PlayerTrigger is not exclusively for ControllableEntities which means we cannot extract one.
    111         {
    112             return false;
    113         }
    114 
    115         //! Extracting the ControllableEntity form the PlayerTrigger.
     110        if(!trigger->isForPlayer()) //!< The PlayerTrigger is not exclusively for Pawns which means we cannot extract one.
     111        {
     112            return false;
     113        }
     114
     115        //! Extracting the Pawn from the PlayerTrigger.
    116116        Pawn* pawn = trigger->getTriggeringPlayer();
    117117
     
    122122        }
    123123
    124         //! Extract the PlayerInfo from the ControllableEntity.
     124        //! Extract the PlayerInfo from the Pawn.
    125125        PlayerInfo* player = pawn->getPlayer();
    126126
  • code/trunk/src/modules/questsystem/QuestEffectBeacon.h

    r5929 r5938  
    114114            std::list<QuestEffect*> effects_; //!< The list of QuestEffects to be invoked on the executing player.
    115115            int times_; //!< Number of times the beacon can be exectued.
    116             QuestEffectBeaconStatus::Value status_; //!< The status of the QUestEffectBeacon, Can be eighter active or inactive.
     116            QuestEffectBeaconStatus::Value status_; //!< The status of the QuestEffectBeacon, Can be eighter active or inactive.
    117117
    118118            bool setTimes(const int & n); //!< Set the number of times the QuestEffectBeacon can be executed.
Note: See TracChangeset for help on using the changeset viewer.