package dungeonmania.entities.buildables;
import dungeonmania.Game;
import dungeonmania.battles.BattleStatistics;
Copyright By PowCoder代写 加微信 powcoder
public class Bow extends Buildable {
private int durability;
public Bow(int durability) {
super(null);
this.durability = durability;
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