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/LocalQuest.cc

    r7456 r7552  
    125125    @return
    126126        Returns true if the Quest can be started, false if not.
    127     @throws
    128         Throws an exception if isInactive(PlayerInfo*) throws one.
    129127    */
    130128    bool LocalQuest::isStartable(const PlayerInfo* player) const
     
    143141    @return
    144142        Returns true if the Quest can be failed, false if not.
    145     @throws
    146         Throws an exception if isActive(PlayerInfo*) throws one.
    147143    */
    148144    bool LocalQuest::isFailable(const PlayerInfo* player) const
     
    158154    @return
    159155        Returns true if the Quest can be completed, false if not.
    160     @throws
    161         Throws an exception if isInactive(PlayerInfo*) throws one.
    162156    */
    163157    bool LocalQuest::isCompletable(const PlayerInfo* player) const
     
    173167    @return
    174168        Returns the status of the Quest for the input player.
    175     @throws
    176         Throws an Exception if player is NULL.
    177169    */
    178170    QuestStatus::Value LocalQuest::getStatus(const PlayerInfo* player) const
    179171    {
    180         //TODO: Replace with assert.
    181         if(player == NULL) // No player has no defined status.
    182             ThrowException(Argument, "The input PlayerInfo* is NULL.");
     172        assert(player);
    183173
    184174        std::map<const PlayerInfo*, QuestStatus::Value>::const_iterator it = this->playerStatus_.find(player);
     
    202192    bool LocalQuest::setStatus(PlayerInfo* player, const QuestStatus::Value & status)
    203193    {
    204         //TODO: Replace with assert.
    205         if(player == NULL) // We can't set a status for no player.
    206             return false;
     194        assert(player);
    207195
    208196        this->playerStatus_[player] = status;
Note: See TracChangeset for help on using the changeset viewer.