56 lines
1.6 KiB
Java
56 lines
1.6 KiB
Java
package Frames;
|
|
|
|
import java.util.ArrayList;
|
|
import Hitboxes.*;
|
|
/**
|
|
* Main class for frames
|
|
* @author Victor Azra
|
|
*
|
|
*/
|
|
public class Frame {
|
|
|
|
private Double move_y;
|
|
private Double move_x;
|
|
private ArrayList<Passive_HitBox> passHitBox;
|
|
private ArrayList<Active_HitBox> actHitBox;
|
|
private ArrayList<Passive_throw_HitBox> passThrowHitBox;
|
|
private ArrayList<Active_throw_Hitbox> actThrowHitBox;
|
|
private Push_HitBox pushHitBox;
|
|
|
|
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();
|
|
}
|
|
|
|
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();
|
|
}
|
|
|
|
}
|