Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Extending command groups (http://www.chiefdelphi.com/forums/showthread.php?t=112135)

Arhowk 26-01-2013 20:35

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

arithehun 26-01-2013 20:54

Re: Extending command groups
 
You could call "isFinished()" in CommandC at the end of the execute method...

Arhowk 26-01-2013 20:55

Re: Extending command groups
 
Quote:

Originally Posted by arithehun (Post 1222479)
You could call "isFinished()" in CommandC at the end of the execute method...

I dont follow

arithehun 26-01-2013 21:15

Re: Extending command groups
 
Oh, I'm saying you could do that to prevent a loop.

Arhowk 26-01-2013 23:48

Re: Extending command groups
 
Quote:

Originally Posted by arithehun (Post 1222494)
Oh, I'm saying you could do that to prevent a loop.

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


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