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
ArmorHead
Armor that can only be put into the armor_slot_head
of a character
ArmorChest
Armor that can only be put into the armor_slot_chest
of a character
ArmorLegs
Armor that can only be put into the armor_slot_legs
of a character
ArmorFeet
Armor that can only be put into the armor_slot_feet
of a character
ConsumablePotion
A potion
ConsumableFood
Some kind of food
WeaponSword
Some kind of sword
WeaponWand
Some kind of wand
WeaponHammer
Some kind of hammer
Usable
A usable item
Prop
A useless prop
Methods
impl ItemType
[src]
fn attributes(&self) -> Vec<Attribute>
A list of attributes an ItemType
can influence
fn is_stackable(&self) -> bool
Returns true
if the item created using this type should be stackable
Trait Implementations
impl Clone for ItemType
[src]
fn clone(&self) -> ItemType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for ItemType
[src]
fn eq(&self, __arg_0: &ItemType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.