|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Extending command groups
Lets say I make a command group with two commands:
commandA commandB in commandA, commandA executes commandC. commandA finishes before commandC does. following me? ![]() now heres the thing. i want commandC to finish executing before commandB starts. So the flow of events is this commandA -> commandC (if certain conditions are met) -> commandB i dont want to put commandC in the commandgroup because commandC could be looped over and over again |
|
#2
|
|||
|
|||
|
Re: Extending command groups
You could call "isFinished()" in CommandC at the end of the execute method...
|
|
#3
|
||||
|
||||
|
Re: Extending command groups
I dont follow
|
|
#4
|
|||
|
|||
|
Re: Extending command groups
Oh, I'm saying you could do that to prevent a loop.
|
|
#5
|
||||
|
||||
|
Re: Extending command groups
I have no idea what your talking about. I dont want to prevent any loop?
commandC goes to -> commandD goes to -> commandE checks for conditions, if false than repeat commandc if true than go to commandB-> except my group has about 50 commands in it |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|