java.lang.Object
com.deco2800.game.components.shop.artefacts.Equipment

public abstract class Equipment extends Object
Abstract Artefact class used to create diffrent child artefact types
  • Field Details

    • name

      protected String name
    • price

      protected int price
    • description

      protected String description
    • attackMultiplier

      protected double attackMultiplier
    • defenceMultiplier

      protected double defenceMultiplier
    • restoreHealth

      protected double restoreHealth
    • texture

      protected String texture
    • categoryTexture

      protected String categoryTexture
  • Constructor Details

    • Equipment

      public Equipment(String name, int price, String description, double attackMultiplier, double defenceMultiplier, double restoreHealth, String texture, String categoryTexture)
      Parameters:
      name - the name of the equipment
      price - the price in gold coin of the equipment
      description - what the equipment does
      attackMultiplier - a decimal to increase attack (>= 1.00)
      defenceMultiplier - a decimal to increase defence (>= 1.00)
      texture - image associated with the Equipment
      categoryTexture - image with category board
  • Method Details

    • getName

      public String getName()
      Getter for equipment name
      Returns:
      String name of equipment
    • getPrice

      public int getPrice()
      Getter for equipment price
      Returns:
      int price of equipment
    • getDescription

      public String getDescription()
      Getter for equipment description
      Returns:
      String description
    • getAttackMultiplier

      public double getAttackMultiplier()
      Getter for equipment attack multiplier
      Returns:
      double attack multiplier
    • getDefenceMultiplier

      public double getDefenceMultiplier()
      Getter for equipment defence multiplier
      Returns:
      double defence multiplier
    • getRestoreHealth

      public double getRestoreHealth()
      Getter for equipment restore health
      Returns:
      double restore health
    • getTexture

      public String getTexture()
      Getter for equipment texture file
      Returns:
      Texture
    • getCategoryTexture

      public String getCategoryTexture()
      Getter for equipment category texture file
      Returns:
      CategoryTexture