/** Resets the optional state of this action to as if it were newly created, allowing the action to be pooled and reused. State * required to be set for every usage of this action or computed during the action does not need to be reset. * <p> * The default implementation calls {@link #restart()}. * <p> * If a subclass has optional state, it must override this method, call super, and reset the optional state. */ public void reset () { actor = null; target = null; pool = null; restart(); }
/** Resets the optional state of this action to as if it were newly created, allowing the action to be pooled and reused. State * required to be set for every usage of this action or computed during the action does not need to be reset. * <p> * The default implementation calls {@link #restart()}. * <p> * If a subclass has optional state, it must override this method, call super, and reset the optional state. */ public void reset () { actor = null; target = null; pool = null; restart(); }
public void restart () { if (action != null) action.restart(); }
public void restart () { if (action != null) action.restart(); }
public void restart () { if (action != null) action.restart(); }
public void restart () { if (action != null) action.restart(); }
protected boolean delegate (float delta) { if (executedCount == repeatCount) return true; if (action.act(delta)) { if (finished) return true; if (repeatCount > 0) executedCount++; if (executedCount == repeatCount) return true; if (action != null) action.restart(); } return false; }
public void restart () { complete = false; Array<Action> actions = this.actions; for (int i = 0, n = actions.size; i < n; i++) actions.get(i).restart(); }
public void restart () { complete = false; Array<Action> actions = this.actions; for (int i = 0, n = actions.size; i < n; i++) actions.get(i).restart(); }
protected boolean delegate (float delta) { if (executedCount == repeatCount) return true; if (action.act(delta)) { if (finished) return true; if (repeatCount > 0) executedCount++; if (executedCount == repeatCount) return true; if (action != null) action.restart(); } return false; }
@Override public void restart() { super.restart(); done = false; }
/** Resets the optional state of this action to as if it were newly created, allowing the action to be pooled and reused. State * required to be set for every usage of this action or computed during the action does not need to be reset. * <p> * The default implementation calls {@link #restart()}. * <p> * If a subclass has optional state, it must override this method, call super, and reset the optional state. */ public void reset () { actor = null; target = null; pool = null; restart(); }
public void restart () { if (action != null) action.restart(); }
public void restart () { if (action != null) action.restart(); }
protected boolean delegate (float delta) { if (executedCount == repeatCount) return true; if (action.act(delta)) { if (finished) return true; if (repeatCount > 0) executedCount++; if (executedCount == repeatCount) return true; if (action != null) action.restart(); } return false; }
public void restart () { complete = false; Array<Action> actions = this.actions; for (int i = 0, n = actions.size; i < n; i++) actions.get(i).restart(); }