Hit Handling. Unfinished.
This commit is contained in:
@ -29,6 +29,7 @@ public class attackPart {
|
||||
this.knockbackOnHit = knockbackOnHit;
|
||||
this.knockbackOnHit = knockbackOnBlock;
|
||||
this.frames = frames;
|
||||
if(this.frames.length >= 1) {this.frames[this.frames.length-1].setLastFrameOfHit(true);}
|
||||
this.hasHit = false;
|
||||
}
|
||||
|
||||
@ -46,6 +47,7 @@ public class attackPart {
|
||||
this.knockbackOnHit = 0.0;
|
||||
this.knockbackOnBlock = 0.0;
|
||||
this.hasHit = false;
|
||||
if(this.frames.length >= 1) {this.frames[this.frames.length -1].setLastFrameOfHit(true);}
|
||||
}
|
||||
|
||||
public boolean hasHit() {
|
||||
@ -111,4 +113,15 @@ public class attackPart {
|
||||
public void setKnockbackOnBlock(double knockbackOnBlock) {
|
||||
this.knockbackOnBlock = knockbackOnBlock;
|
||||
}
|
||||
|
||||
public void clone(attackPart aP) {
|
||||
this.hasHit = aP.hasHit();
|
||||
this.blockstun = aP.getBlockstun();
|
||||
this.hitstun = aP.getHitstun();
|
||||
this.chipDamage = aP.getChipDamage();
|
||||
this.frames = aP.getFrames();
|
||||
this.knockbackOnHit = aP.getKnockbackOnHit();
|
||||
this.knockbackOnBlock = aP.getKnockbackOnBlock();
|
||||
this.damage = aP.getDamage();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user