package org.project.item;

import org.project.entity.Entity;

/**
 * Anything that can live in the player's inventory or be sold by the merchant.
 *
 * Weapons, Armor and Consumables are the three families of items; they all
 * implement this interface so the merchant can list and sell them uniformly.
 */
public interface Item {

    /** Use / apply the item on a target (deal damage, heal, equip, ...). */
    void use(Entity target);

    String getName();

    /** Cost in coins at the merchant. */
    int getPrice();
}
