Added getter and Setter for frame's attributes
This commit is contained in:
parent
987f0c3703
commit
759ea2222d
@ -25,13 +25,13 @@ public class Frame {
|
||||
private boolean isDashCancellable;
|
||||
|
||||
public Frame() {
|
||||
this.move_y = 0.0;
|
||||
this.move_x = 0.0;
|
||||
this.passHitBox = new ArrayList<Passive_HitBox>();
|
||||
this.actHitBox = new ArrayList<Active_HitBox>();
|
||||
this.passThrowHitBox = new ArrayList<Passive_throw_HitBox>();
|
||||
this.actThrowHitBox = new ArrayList<Active_throw_Hitbox>();
|
||||
this.pushHitBox = new Push_HitBox();
|
||||
this.setMove_y(0.0);
|
||||
this.setMove_x(0.0);
|
||||
this.setPassHitBox(new ArrayList<Passive_HitBox>());
|
||||
this.setActHitBox(new ArrayList<Active_HitBox>());
|
||||
this.setPassThrowHitBox(new ArrayList<Passive_throw_HitBox>());
|
||||
this.setActThrowHitBox(new ArrayList<Active_throw_Hitbox>());
|
||||
this.setPushHitBox(new Push_HitBox());
|
||||
this.normalCancellable = true;
|
||||
this.specialCancellable = true;
|
||||
this.jumpCancellable = true;
|
||||
@ -43,13 +43,13 @@ public class Frame {
|
||||
ArrayList<Passive_throw_HitBox> passThrowHitBox, ArrayList<Active_throw_Hitbox> actThrowHitBox,
|
||||
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;
|
||||
this.actHitBox = actHitBox;
|
||||
this.passThrowHitBox = passThrowHitBox;
|
||||
this.actThrowHitBox = actThrowHitBox;
|
||||
this.pushHitBox = pushHitBox;
|
||||
this.setMove_y(move_y);
|
||||
this.setMove_x(move_x);
|
||||
this.setPassHitBox(passHitBox);
|
||||
this.setActHitBox(actHitBox);
|
||||
this.setPassThrowHitBox(passThrowHitBox);
|
||||
this.setActThrowHitBox(actThrowHitBox);
|
||||
this.setPushHitBox(pushHitBox);
|
||||
this.normalCancellable = normalCancellable;
|
||||
this.specialCancellable = specialCancellable;
|
||||
this.jumpCancellable = jumpCancellable;
|
||||
@ -61,13 +61,13 @@ public class Frame {
|
||||
* Mainly use for projectiles
|
||||
*/
|
||||
public Frame(Double move_y, Double move_x, ArrayList<Passive_HitBox> passHitBox, ArrayList<Active_HitBox> actHitBox) {
|
||||
this.move_y = move_y;
|
||||
this.move_x = move_x;
|
||||
this.passHitBox = passHitBox;
|
||||
this.actHitBox = actHitBox;
|
||||
this.passThrowHitBox = new ArrayList<Passive_throw_HitBox>();
|
||||
this.actThrowHitBox = new ArrayList<Active_throw_Hitbox>();
|
||||
this.pushHitBox = new Push_HitBox();
|
||||
this.setMove_y(move_y);
|
||||
this.setMove_x(move_x);
|
||||
this.setPassHitBox(passHitBox);
|
||||
this.setActHitBox(actHitBox);
|
||||
this.setPassThrowHitBox(new ArrayList<Passive_throw_HitBox>());
|
||||
this.setActThrowHitBox(new ArrayList<Active_throw_Hitbox>());
|
||||
this.setPushHitBox(new Push_HitBox());
|
||||
}
|
||||
|
||||
public boolean isNormalCancellable() {
|
||||
@ -89,4 +89,60 @@ public class Frame {
|
||||
public boolean isDashCancellable() {
|
||||
return isDashCancellable;
|
||||
}
|
||||
|
||||
public Double getMove_y() {
|
||||
return move_y;
|
||||
}
|
||||
|
||||
public void setMove_y(Double move_y) {
|
||||
this.move_y = move_y;
|
||||
}
|
||||
|
||||
public Double getMove_x() {
|
||||
return move_x;
|
||||
}
|
||||
|
||||
public void setMove_x(Double move_x) {
|
||||
this.move_x = move_x;
|
||||
}
|
||||
|
||||
public ArrayList<Passive_HitBox> getPassHitBox() {
|
||||
return passHitBox;
|
||||
}
|
||||
|
||||
public void setPassHitBox(ArrayList<Passive_HitBox> passHitBox) {
|
||||
this.passHitBox = passHitBox;
|
||||
}
|
||||
|
||||
public ArrayList<Active_HitBox> getActHitBox() {
|
||||
return actHitBox;
|
||||
}
|
||||
|
||||
public void setActHitBox(ArrayList<Active_HitBox> actHitBox) {
|
||||
this.actHitBox = actHitBox;
|
||||
}
|
||||
|
||||
public ArrayList<Passive_throw_HitBox> getPassThrowHitBox() {
|
||||
return passThrowHitBox;
|
||||
}
|
||||
|
||||
public void setPassThrowHitBox(ArrayList<Passive_throw_HitBox> passThrowHitBox) {
|
||||
this.passThrowHitBox = passThrowHitBox;
|
||||
}
|
||||
|
||||
public ArrayList<Active_throw_Hitbox> getActThrowHitBox() {
|
||||
return actThrowHitBox;
|
||||
}
|
||||
|
||||
public void setActThrowHitBox(ArrayList<Active_throw_Hitbox> actThrowHitBox) {
|
||||
this.actThrowHitBox = actThrowHitBox;
|
||||
}
|
||||
|
||||
public Push_HitBox getPushHitBox() {
|
||||
return pushHitBox;
|
||||
}
|
||||
|
||||
public void setPushHitBox(Push_HitBox pushHitBox) {
|
||||
this.pushHitBox = pushHitBox;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user