/** * Attack the stored target * * @param pBlock the heroes physical block * @param mBlock the heroes magical block */ public void attack(int pBlock, int mBlock) { if (target != null) { target.setHitPoints( target.getHitPoints() - (this.getPhysicalDamage() - pBlock) - (this.getMagicalDamage() - mBlock)); } target = null; }
public void callFrom() { ITarget iTarget = new TargetI(); iTarget.call(); }