![]() |
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? :p 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 |
Re: Extending command groups
You could call "isFinished()" in CommandC at the end of the execute method...
|
Re: Extending command groups
Quote:
|
Re: Extending command groups
Oh, I'm saying you could do that to prevent a loop.
|
Re: Extending command groups
Quote:
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 |
| All times are GMT -5. The time now is 10:08. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi