package gameplay.actions; import java.util.ArrayList; import gameplay.frames.Frame; import gameplay.input.ButtonIG; public class Dash implements Action { /** * The suite of Inputs to have the move come out. * For example, a Front Dash would be something like * {{FORWARD},{FORWARD}} */ private ButtonIG[][] command; private Frame[] frames; @Override public ArrayList getFrame() { ArrayList res = new ArrayList(); for(int i = 0; i < frames.length; i++) {res.add(frames[i]);} return res; } @Override public ButtonIG[][] getCommand() { return this.command; } public Dash(ButtonIG[][] command, Frame[] frames) { this.command = command; this.frames = frames; } }