CS代考 package dungeonmania.entities.buildables;

package dungeonmania.entities.buildables;

import dungeonmania.Game;
import dungeonmania.battles.BattleStatistics;

Copyright By PowCoder代写 加微信 powcoder

public class Shield extends Buildable {
private int durability;
private double defence;

public Shield(int durability, double defence) {
super(null);
this.durability = durability;
this.defence = defence;

public void use(Game game) {
durability–;
if (durability <= 0) { game.getPlayer().remove(this); public BattleStatistics applyBuff(BattleStatistics origin) { return BattleStatistics.applyBuff(origin, new BattleStatistics( public int getDurability() { return durability; 程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com