Handling of the inputs done. Determines what the characters next frames will be depending on what th player has input.
This commit is contained in:
@ -18,6 +18,11 @@ public class Frame {
|
||||
private ArrayList<Passive_throw_HitBox> passThrowHitBox;
|
||||
private ArrayList<Active_throw_Hitbox> actThrowHitBox;
|
||||
private Push_HitBox pushHitBox;
|
||||
private boolean normalCancellable;
|
||||
private boolean specialCancellable;
|
||||
private boolean jumpCancellable;
|
||||
private boolean moveCancellable;
|
||||
private boolean isDashCancellable;
|
||||
|
||||
public Frame() {
|
||||
this.move_y = 0.0;
|
||||
@ -27,11 +32,17 @@ public class Frame {
|
||||
this.passThrowHitBox = new ArrayList<Passive_throw_HitBox>();
|
||||
this.actThrowHitBox = new ArrayList<Active_throw_Hitbox>();
|
||||
this.pushHitBox = new Push_HitBox();
|
||||
this.normalCancellable = true;
|
||||
this.specialCancellable = true;
|
||||
this.jumpCancellable = true;
|
||||
this.moveCancellable = true;
|
||||
this.isDashCancellable = true;
|
||||
}
|
||||
|
||||
public Frame(Double move_y, Double move_x, ArrayList<Passive_HitBox> passHitBox, ArrayList<Active_HitBox> actHitBox,
|
||||
ArrayList<Passive_throw_HitBox> passThrowHitBox, ArrayList<Active_throw_Hitbox> actThrowHitBox,
|
||||
Push_HitBox pushHitBox) {
|
||||
Push_HitBox pushHitBox, boolean normalCancellable, boolean specialCancellable, boolean jumpCancellable,
|
||||
boolean moveCancellable, boolean isDashCancellable) {
|
||||
this.move_y = move_y;
|
||||
this.move_x = move_x;
|
||||
this.passHitBox = passHitBox;
|
||||
@ -39,6 +50,11 @@ public class Frame {
|
||||
this.passThrowHitBox = passThrowHitBox;
|
||||
this.actThrowHitBox = actThrowHitBox;
|
||||
this.pushHitBox = pushHitBox;
|
||||
this.normalCancellable = normalCancellable;
|
||||
this.specialCancellable = specialCancellable;
|
||||
this.jumpCancellable = jumpCancellable;
|
||||
this.moveCancellable = moveCancellable;
|
||||
this.isDashCancellable = isDashCancellable;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -53,5 +69,24 @@ public class Frame {
|
||||
this.actThrowHitBox = new ArrayList<Active_throw_Hitbox>();
|
||||
this.pushHitBox = new Push_HitBox();
|
||||
}
|
||||
|
||||
|
||||
public boolean isNormalCancellable() {
|
||||
return normalCancellable;
|
||||
}
|
||||
|
||||
public boolean isSpecialCancellable() {
|
||||
return specialCancellable;
|
||||
}
|
||||
|
||||
public boolean isJumpCancellable() {
|
||||
return jumpCancellable;
|
||||
}
|
||||
|
||||
public boolean isMoveCancellable() {
|
||||
return moveCancellable;
|
||||
}
|
||||
|
||||
public boolean isDashCancellable() {
|
||||
return isDashCancellable;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user