Enum rpg::item::ItemType [] [src]

pub enum ItemType {
    ArmorHead,
    ArmorChest,
    ArmorLegs,
    ArmorFeet,
    ConsumablePotion,
    ConsumableFood,
    WeaponSword,
    WeaponWand,
    WeaponHammer,
    Usable,
    Prop,
}

The type of an item

Variants

Armor that can only be put into the armor_slot_head of a character

Armor that can only be put into the armor_slot_chest of a character

Armor that can only be put into the armor_slot_legs of a character

Armor that can only be put into the armor_slot_feet of a character

A potion

Some kind of food

Some kind of sword

Some kind of wand

Some kind of hammer

A usable item

A useless prop

Methods

impl ItemType
[src]

A list of attributes an ItemType can influence

Returns true if the item created using this type should be stackable

Trait Implementations

impl Clone for ItemType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ItemType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ItemType
[src]

impl Debug for ItemType
[src]

Formats the value using the given formatter.

impl Rand for ItemType
[src]

Generates a random instance of this type using the specified source of randomness. Read more