update Frame

This commit is contained in:
keizaal 2021-05-27 16:22:25 +02:00
parent 8789416057
commit c9b788887b

View File

@ -18,12 +18,38 @@ public class Frame {
private Push_HitBox pushHitBox; private Push_HitBox pushHitBox;
public Frame() { public Frame() {
move_y = 0.0; this.move_y = 0.0;
move_x = 0.0; this.move_x = 0.0;
passHitBox = new ArrayList<Passive_HitBox>(); this.passHitBox = new ArrayList<Passive_HitBox>();
actHitBox = new ArrayList<Active_HitBox>(); this.actHitBox = new ArrayList<Active_HitBox>();
passThrowHitBox = new ArrayList<Passive_throw_HitBox>(); this.passThrowHitBox = new ArrayList<Passive_throw_HitBox>();
actThrowHitBox = new ArrayList<Active_throw_Hitbox>(); this.actThrowHitBox = new ArrayList<Active_throw_Hitbox>();
pushHitBox = new Push_HitBox(); this.pushHitBox = new Push_HitBox();
} }
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) {
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;
}
/*
* 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();
}
} }