public class Axe extends MeleeWeapon
Modifier and Type | Field and Description |
---|---|
static float |
DAMAGE |
static java.lang.String |
DESCRIPTION |
static com.badlogic.gdx.graphics.g2d.Sprite |
INVENTORY_SPRITE |
static java.lang.String |
NAME
Stores the properties of the axe.
|
static float |
REACH |
static java.lang.String |
WEAPON_ATTACHMENT_NAME |
WEAPON_SLOT_NAME
Constructor and Description |
---|
Axe()
Creates an axe.
|
Modifier and Type | Method and Description |
---|---|
void |
hitTree(Tree tree)
Called when the MeleeWeapon has hit a tree and should deal damage to it.
|
getCollider, getReach, hit, setCollider, setReach
getDamage, getSlotName, getWeaponAttachment, setDamage, setWeaponAttachment, setWeaponSlotName
getDescription, getItemAttachment, getName, setDescription, setItemAttachment, setName
public static final java.lang.String NAME
public static final java.lang.String DESCRIPTION
public static final com.badlogic.gdx.graphics.g2d.Sprite INVENTORY_SPRITE
public static final float DAMAGE
public static final float REACH
public static final java.lang.String WEAPON_ATTACHMENT_NAME
public void hitTree(Tree tree)
hitTree
in class MeleeWeapon