Files
Server/src/engine/powers/DamageShield.java
T

44 lines
1.5 KiB
Java
Raw Normal View History

2022-04-30 09:41:17 -04:00
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
// Magicbane Emulator Project © 2013 - 2022
// www.magicbane.com
2023-07-15 09:23:48 -04:00
package engine.powers;
2024-03-24 09:42:27 -04:00
2024-02-26 03:44:51 -05:00
import engine.Enum;
2022-04-30 09:41:17 -04:00
public class DamageShield {
2024-02-26 03:44:51 -05:00
private final Enum.SourceType damageType;
2023-07-15 09:23:48 -04:00
private final float amount;
private final boolean usePercent;
2024-02-26 03:44:51 -05:00
public DamageShield(Enum.SourceType damageType, float amount, boolean usePercent) {
2023-07-15 09:23:48 -04:00
super();
this.damageType = damageType;
this.amount = amount;
this.usePercent = usePercent;
}
2024-02-26 03:44:51 -05:00
public Enum.SourceType getDamageType() {
2023-07-15 09:23:48 -04:00
return this.damageType;
}
public float getAmount() {
return this.amount;
}
public boolean usePercent() {
return this.usePercent;
}
@Override
public String toString() {
return "ds.DamageType: " + this.damageType.name() + ", Amount: " + this.amount + ", UsePercent: " + this.usePercent;
}
2022-04-30 09:41:17 -04:00
}