Package vee.items.armors

Source Code of vee.items.armors.Stilleto

package vee.items.armors;

import vee.AttackAction;
import vee.Weaponise;
import vee.types.ArmorType;
import vee.types.DamageType;
import vee.types.EquipmentSlot;


public class Stilleto extends Armor implements Weaponise {
 
  private Double damage;
  private DamageType damageType;
 
  public Stilleto() {
    this.setDefaults();

  }

  @Override
  protected void setDefaults() {
    super.setDefaults();
    this.setDefense(1.0);   
    this.setType(ArmorType.Leather);
    this.armor = true;

    this.setEquippable(true);
    this.setSlot(EquipmentSlot.Feet);
   
    this.setName("Stilletos");
    this.setDescription("Stilletos with a concealed blade in the heel.");
   
    this.setDamage(3.0);
    this.setDamageType(DamageType.Normal);
   

 
 
  public AttackAction attack() {
    AttackAction attackAction = new AttackAction();
    attackAction.setDamage(this.getDamage());
    attackAction.setDamageType(this.getDamageType());  
    return attackAction;
  }

  public Double getDamage() {
    return damage;
  }

  public void setDamage(Double damage) {
    this.damage = damage;
  }

  public DamageType getDamageType() {
    return damageType;
  }

  public void setDamageType(DamageType damageType) {
    this.damageType = damageType;
  }

}
TOP

Related Classes of vee.items.armors.Stilleto

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.