Метод | Описание | |
---|---|---|
CanEquipWeapon ( |
Do you have enough hands left to equip this weapon?
|
|
EquipArmor ( |
Equip an armor
|
|
EquipPotion ( |
Places a potion in the first
|
|
EquipShield ( |
Equip a shield.
|
|
EquipToBackpack ( int index, |
Equip an item to backpack.
|
|
EquipToOther ( int index, |
Equip an item to 'other'.
|
|
EquipToPotions ( int index, |
Equip an item to potions.
|
|
EquipWeapon ( |
Equip a weapon
|
|
Inventory ( Hero hero ) : System.Diagnostics.Contracts |
Initializes a new instance of the Inventory class. The inventory of a hero
|
|
UnequipArmor ( ) : |
Unequip the armor.
|
|
UnequipFromBackpack ( int index ) : |
Returns and removes a equipment from the backpack.
|
|
UnequipFromOther ( int index ) : |
Unequips an other item, and returns it
|
|
UnequipFromPotions ( int index ) : |
Returns and removes a potion from the inventory
|
|
UnequipShield ( ) : |
Unequip the shield.
|
|
UnequipWeapon ( ) : |
Unequip the weapon.
|
|
this ( int slot ) : |
Gets an equipment at a
|
Метод | Описание | |
---|---|---|
CanEquipAtIndex ( int slot, |
||
ObjectInvariant ( ) : void |
public CanEquipWeapon ( |
||
equipment | /// A piece of equipment. /// | |
Результат | bool |
public EquipArmor ( |
||
armor | /// The armor to be equipped /// | |
Результат | void |
public EquipPotion ( |
||
potion | /// The potion to be equipped /// | |
Результат | void |
public EquipShield ( |
||
shield | /// The shield to be equipped /// | |
Результат | void |
public EquipToBackpack ( int index, |
||
index | int | The index where the item should be placed. |
item | The item to place. | |
Результат | void |
public EquipToOther ( int index, |
||
index | int | The index where the item should be placed. |
item | The item to place. | |
Результат | void |
public EquipToPotions ( int index, |
||
index | int | The indexwhere the item should be placed. |
item | The item to place. | |
Результат | void |
public EquipWeapon ( |
||
weapon | /// The weapon to be equipped /// | |
Результат | void |
public Inventory ( Hero hero ) : System.Diagnostics.Contracts | ||
hero | Hero | /// The hero, that has this inventory. /// |
Результат | System.Diagnostics.Contracts |
public UnequipFromBackpack ( int index ) : |
||
index | int | /// The index from where to remove. /// |
Результат |
public UnequipFromOther ( int index ) : |
||
index | int | /// The index from where to remove. /// |
Результат |
public UnequipFromPotions ( int index ) : |
||
index | int | /// The index from where to remove the potion /// |
Результат |
public this ( int slot ) : |
||
slot | int | /// The slot to access in the inventory /// |
Результат |