Ignore:
Timestamp:
Sep 13, 2017, 5:20:35 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Children:
1e4f0a
Parents:
17fceea
Message:

MakroAction allows getting the internal ActionSequence's current step.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionSequence.cpp

    r17fceea r15acdb  
    4747
    4848ActionSequence::ActionSequence() :
    49     loop(1)
     49    loop(1),
     50    step(0)
    5051{}
    5152
    5253ActionSequence::ActionSequence(const ActionSequence &_other) :
    53     loop(1)
     54    loop(1),
     55    step(0)
    5456{
    5557  // we need to override copy cstor as we have pointer referenced objects
     
    114116void ActionSequence::callAll()
    115117{
    116   for (size_t i=0;i<loop;++i)
     118  for (step=0;step<loop;++step)
    117119    for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){
    118120      // we want to have a global bookkeeping for all actions in the sequence, so
     
    128130{
    129131  stateSet states;
    130   for (size_t i=0;i<loop;++i)
     132  for (step=0;step<loop;++step)
    131133    for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){
    132134      // we want to have a global bookkeeping for all actions in the sequence, so
Note: See TracChangeset for help on using the changeset viewer.