mirror of
https://github.com/2006-Scape/Script-Factory.git
synced 2026-07-03 08:39:10 +00:00
Attempt 2
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package scriptfactory.Strategies;
|
||||
|
||||
|
||||
import scriptfactory.Actions.Action;
|
||||
import org.parabot.environment.scripts.framework.Strategy;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Created by SRH on 1/15/2018.
|
||||
*/
|
||||
public class RunLoop implements Strategy {
|
||||
|
||||
private ActionExecutor actionExecutor;
|
||||
|
||||
public RunLoop(ArrayList<Action> actions)
|
||||
{
|
||||
actionExecutor = new ActionExecutor(actions);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean activate() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
actionExecutor.execute();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user