public class Weapon extends Item
Constructor and Description |
---|
Weapon(java.lang.String name,
java.lang.String description,
float damage)
Creates a weapon with the given name, description, and damage.
|
Modifier and Type | Method and Description |
---|---|
float |
getDamage()
Gets the amount of damage the weapon deals in one hit.
|
java.lang.String |
getSlotName()
Returns the slot name on the player in Spine where the weapon's image is attached.
|
java.lang.String |
getWeaponAttachment()
Gets the name of the image (attachment) in Spine which displays the weapon.
|
void |
setDamage(float damage)
Sets the amount of damage the weapon deals in one hit.
|
void |
setWeaponAttachment(java.lang.String attachmentName)
Sets the name of the image (attachment) used in Spine to display the weapon.
|
void |
setWeaponSlotName(java.lang.String slotName)
Sets the slot name on the player in Spine where the weapon's image is attached.
|
getDescription, getItemAttachment, getName, setDescription, setItemAttachment, setName
public Weapon(java.lang.String name, java.lang.String description, float damage)
public float getDamage()
public void setDamage(float damage)
public java.lang.String getSlotName()
public void setWeaponSlotName(java.lang.String slotName)
public java.lang.String getWeaponAttachment()
public void setWeaponAttachment(java.lang.String attachmentName)