Ignore:
Timestamp:
Apr 8, 2010, 2:00:11 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
91b18cd
Parents:
770138
Message:

Added detailed documentation for the Action class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Actions/ActionSequence.cpp

    r770138 rabd4a1  
    3636}
    3737
    38 ActionSequence::stateSet ActionSequence::callAll(){
     38// this method is used outside the ActionModule
     39// Each action registers itself with the history
     40void ActionSequence::callAll(){
     41  for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){
     42    // we want to have a global bookkeeping for all actions in the sequence, so
     43    // we bypass the normal call
     44    (*it)->call();
     45  }
     46}
     47
     48// This method is used internally when MakroActions are constructed.
     49// In this case only the makro Action should be registered and
     50// handle the states
     51ActionSequence::stateSet ActionSequence::callAll(bool){
    3952  stateSet states;
    4053  for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){
Note: See TracChangeset for help on using the changeset viewer.