no f56c84ef8e Added some more frames for Blue.
Updated Action constructors.
2021-06-10 10:06:44 +02:00

38 lines
727 B
Java

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<Frame> getFrame() {
ArrayList<Frame> res = new ArrayList<Frame>();
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;
}
}