com.bladecoder.engine.actions.AbstractControlAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blade-engine Show documentation
Show all versions of blade-engine Show documentation
Classic point and click adventure game engine
The newest version!
package com.bladecoder.engine.actions;
import java.util.List;
public abstract class AbstractControlAction implements Action {
@ActionProperty(required = true)
protected String caID;
protected int skipControlIdBlock(List actions, int ip) {
final String caID = getControlActionID();
do {
ip++;
} while (!(actions.get(ip) instanceof AbstractControlAction)
|| !((AbstractControlAction) actions.get(ip)).getControlActionID().equals(caID));
return ip;
}
public String getControlActionID() {
return caID;
}
}