mirror of
https://github.com/Retera/WarsmashModEngine.git
synced 2022-07-31 17:38:59 +02:00
Update after merge
This commit is contained in:
parent
4c84c373b4
commit
83fc753a0c
@ -25,11 +25,6 @@ public class CDestructable extends CWidget {
|
|||||||
this.pathingInstanceDeath = pathingInstanceDeath;
|
this.pathingInstanceDeath = pathingInstanceDeath;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public float getMaxLife() {
|
|
||||||
return destType.getMaxLife();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getFlyHeight() {
|
public float getFlyHeight() {
|
||||||
return 0;
|
return 0;
|
||||||
@ -89,7 +84,7 @@ public class CDestructable extends CWidget {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getMaxLife() {
|
public float getMaxLife() {
|
||||||
return this.destType.getLife();
|
return this.destType.getMaxLife();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInvulnerable(final boolean invulnerable) {
|
public void setInvulnerable(final boolean invulnerable) {
|
||||||
|
@ -1225,11 +1225,6 @@ public class CUnit extends CWidget {
|
|||||||
setPointAndCheckUnstuck(structure.getX(), structure.getY(), simulation);
|
setPointAndCheckUnstuck(structure.getX(), structure.getY(), simulation);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public float getMaxLife() {
|
|
||||||
return unitType.getMaxLife();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setLife(final CSimulation simulation, final float life) {
|
public void setLife(final CSimulation simulation, final float life) {
|
||||||
final boolean wasDead = isDead();
|
final boolean wasDead = isDead();
|
||||||
|
@ -64,8 +64,6 @@ public abstract class CWidget implements AbilityTarget {
|
|||||||
return this.life <= 0;
|
return this.life <= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract float getMaxLife();
|
|
||||||
|
|
||||||
public abstract boolean canBeTargetedBy(CSimulation simulation, CUnit source,
|
public abstract boolean canBeTargetedBy(CSimulation simulation, CUnit source,
|
||||||
final EnumSet<CTargetType> targetsAllowed);
|
final EnumSet<CTargetType> targetsAllowed);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user