Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 13, 2011, 11:43:20 PM (13 years ago)
Author:
dafrick
Message:

Fixing small bug in MultiTrigger.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutoriallevel/src/modules/objects/triggers/TriggerBase.h

    r7652 r7829  
    133133            inline int getActivations(void) const
    134134                { return this->remainingActivations_; }
     135            /**
     136            @brief Check whether the trigger has still at least one remaining activation.
     137            @return Returns true if the trigger has remaining activations (i.e. the number of remaining activations is not zero).
     138            */
     139            inline bool hasRemainingActivations(void) const
     140                { return this->remainingActivations_ > 0 || this->remainingActivations_ == INF_s; }
    135141
    136142            /**
Note: See TracChangeset for help on using the changeset viewer.