Class Equipment
java.lang.Object
com.deco2800.game.components.shop.artefacts.Equipment
Abstract Artefact class used to create diffrent child artefact types
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Getter for equipment attack multiplierGetter for equipment category texture filedouble
Getter for equipment defence multiplierGetter for equipment descriptiongetName()
Getter for equipment nameint
getPrice()
Getter for equipment pricedouble
Getter for equipment restore healthGetter for equipment texture file
-
Field Details
-
name
-
price
protected int price -
description
-
attackMultiplier
protected double attackMultiplier -
defenceMultiplier
protected double defenceMultiplier -
restoreHealth
protected double restoreHealth -
texture
-
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 equipmentprice
- the price in gold coin of the equipmentdescription
- what the equipment doesattackMultiplier
- a decimal to increase attack (>= 1.00)defenceMultiplier
- a decimal to increase defence (>= 1.00)texture
- image associated with the EquipmentcategoryTexture
- image with category board
-
-
Method Details
-
getName
Getter for equipment name- Returns:
- String name of equipment
-
getPrice
public int getPrice()Getter for equipment price- Returns:
- int price of equipment
-
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
Getter for equipment texture file- Returns:
- Texture
-
getCategoryTexture
Getter for equipment category texture file- Returns:
- CategoryTexture
-