Added constrructors for Frame and Push_HitBox

This commit is contained in:
keizaal 2021-05-27 16:22:08 +02:00
parent 43146a3aab
commit 8789416057
3 changed files with 16 additions and 2 deletions

View File

@ -18,6 +18,12 @@ public class Frame {
private Push_HitBox pushHitBox;
public Frame() {
move_y = 0.0;
move_x = 0.0;
passHitBox = new ArrayList<Passive_HitBox>();
actHitBox = new ArrayList<Active_HitBox>();
passThrowHitBox = new ArrayList<Passive_throw_HitBox>();
actThrowHitBox = new ArrayList<Active_throw_Hitbox>();
pushHitBox = new Push_HitBox();
}
}

View File

@ -22,7 +22,7 @@ public class HitBox {
this.position_y = position_y;
}
public HitBox(double position_x, double position_y, double size_x, double size_y) {
public HitBox(Double position_x, Double position_y, Double size_x, Double size_y) {
if(position_x < 0.0) {
position_x = 0.0;

View File

@ -2,4 +2,12 @@ package Hitboxes;
public class Push_HitBox extends HitBox {
public Push_HitBox() {
super();
}
public Push_HitBox(Double position_x, Double position_y, Double size_x, Double size_y) {
super(position_x, position_y, size_x, size_y);
}
}