Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2008, 4:31:36 PM (15 years ago)
Author:
dafrick
Message:

Some cleanup…

File:
1 edited

Legend:

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

    r2226 r2251  
    3030    @file QuestEffectBeacon.cc
    3131    @brief
    32         Implementation of the QuestEffectBeacon class.
     32    Implementation of the QuestEffectBeacon class.
    3333*/
    3434
     
    9191        SUPER(QuestEffectBeacon, processEvent, event);
    9292   
    93         SetSubclassEvent(QuestEffectBeacon, "execute", execute, event, PlayerTrigger);
     93    SetSubclassEvent(QuestEffectBeacon, "execute", execute, event, PlayerTrigger);
    9494    }
    9595   
     
    9898        Executes the QuestEffectBeacon.
    9999        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.
    100     @param b
    101         TDO: What is this???
    102100    @param trigger
    103101        Apointer to the PlayerTrigger that threw the Event.
     
    147145            this->decrementTimes(); //!< Decrement the number of times the beacon can be used.
    148146            return true;
    149         }
    150 
    151         return false;
     147    }
     148
     149    return false;
    152150    }
    153151   
     
    169167        if(activate)
    170168        {
    171             this->status_ = QuestEffectBeaconStatus::active;
    172             return true;
     169        this->status_ = QuestEffectBeaconStatus::active;
     170        return true;
    173171        }
    174172       
     
    195193       
    196194        this->times_ = this->times_ - 1; //!< Decrement number of times the QuestEffectBeacon can be executed.
    197         if(this->getTimes() == 0) //!< Set the QuestEffectBeacon to inactive when the number of times it can be executed is reduced to 0.
    198         {
     195    if(this->getTimes() == 0) //!< Set the QuestEffectBeacon to inactive when the number of times it can be executed is reduced to 0.
     196    {
    199197            this->status_ = QuestEffectBeaconStatus::inactive;
    200         }
     198    }
    201199       
    202200        return true;
Note: See TracChangeset for help on using the changeset viewer.