Added constrructors for Frame and Push_HitBox
This commit is contained in:
parent
43146a3aab
commit
8789416057
@ -18,6 +18,12 @@ public class Frame {
|
|||||||
private Push_HitBox pushHitBox;
|
private Push_HitBox pushHitBox;
|
||||||
|
|
||||||
public Frame() {
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ public class HitBox {
|
|||||||
this.position_y = position_y;
|
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) {
|
if(position_x < 0.0) {
|
||||||
position_x = 0.0;
|
position_x = 0.0;
|
||||||
|
@ -2,4 +2,12 @@ package Hitboxes;
|
|||||||
|
|
||||||
public class Push_HitBox extends HitBox {
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user