Exemple #1
0
    private List<HexData> untraversable_hexes; //Hold untraversable hexes

    #endregion Fields

    #region Methods

    public override int attackTarget(Combatable target)
    {
        //TODO: finish method, account for opponent defenses etc

        //subtract ap cost from total
        current_ap -= attack_cost;
        return target.acceptDamage(attack_damage);
    }
Exemple #2
0
    /**
     *	Deal damage to the target
     *  @param   the Combatable entity to damage
     *  @return  damage delt
     */
    public override int attackTarget(Combatable target)
    {
        //		int range  = upgrade_weapon_range ? weapon_upgrade_range : weapon_base_range;
        int damage = upgrade_weapon_damage ? weapon_upgrade_damage : weapon_base_damage;
        int cost   = upgrade_weapon_cost ? weapon_upgrade_cost : weapon_base_cost;

        current_ap -= cost;
        return target.acceptDamage(damage);
    }