public void restart () { super.restart(); index = 0; } }
public boolean act (float delta) { if (complete) return true; complete = true; Pool pool = getPool(); setPool(null); // Ensure this action can't be returned to the pool while executing. try { Array<Action> actions = this.actions; for (int i = 0, n = actions.size; i < n && actor != null; i++) { Action currentAction = actions.get(i); if (currentAction.getActor() != null && !currentAction.act(delta)) complete = false; if (actor == null) return true; // This action was removed. } return complete; } finally { setPool(pool); } }
public boolean act (float delta) { if (complete) return true; complete = true; Pool pool = getPool(); setPool(null); // Ensure this action can't be returned to the pool while executing. try { Array<Action> actions = this.actions; for (int i = 0, n = actions.size; i < n && actor != null; i++) { Action currentAction = actions.get(i); if (currentAction.getActor() != null && !currentAction.act(delta)) complete = false; if (actor == null) return true; // This action was removed. } return complete; } finally { setPool(pool); } }
public boolean act (float delta) { if (complete) return true; complete = true; Pool pool = getPool(); setPool(null); // Ensure this action can't be returned to the pool while executing. try { Array<Action> actions = this.actions; for (int i = 0, n = actions.size; i < n && actor != null; i++) { Action currentAction = actions.get(i); if (currentAction.getActor() != null && !currentAction.act(delta)) complete = false; if (actor == null) return true; // This action was removed. } return complete; } finally { setPool(pool); } }
public void restart () { super.restart(); index = 0; } }
public void restart () { super.restart(); index = 0; } }
public ParallelAction (Action action1) { addAction(action1); }
public ParallelAction (Action action1) { addAction(action1); }
static public ParallelAction parallel (Action action1, Action action2, Action action3, Action action4, Action action5) { ParallelAction action = action(ParallelAction.class); action.addAction(action1); action.addAction(action2); action.addAction(action3); action.addAction(action4); action.addAction(action5); return action; }
static public ParallelAction parallel (Action action1, Action action2, Action action3, Action action4, Action action5) { ParallelAction action = action(ParallelAction.class); action.addAction(action1); action.addAction(action2); action.addAction(action3); action.addAction(action4); action.addAction(action5); return action; }