C# Класс Descent.Model.Player.Figure.HeroStuff.Equipment

Equipment can be worn by the hero
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
DiceContribution List
SurgeAbilitiesContribution List

Открытые методы

Метод Описание
Clone ( ) : Equipment

Returns a clone of the equipment. The data, and the index will be the same, but the pointer to the object itself will be different

Equals ( object obj ) : bool

Compares a piece of equipment to this one

EquipToHero ( Hero hero ) : void

The equipment will pass abilities on, so the hero is able to use them.

Equipment ( int id, string name, EquipmentType type, EAttackType attackType, EquipmentRarity rarity, int buyPrice, List surgeAbilities, int hands, List abilities, List dice ) : System.Collections.Generic

Initializes a new instance of the Equipment class.

TapEquipment ( ) : void

Taps the piece of equipment

UnequipFromHero ( Hero hero ) : void

The equipment will unattach from a hero

UntapEquipment ( ) : void

Untaps the piece of equipment, even if not tapped

Приватные методы

Метод Описание
DiceContribution ( ) : List

A method that return the dice of the weapon, used to pass on as a delegate.

SurgeAbilitiesContribution ( ) : List

A method that return the surge abilities of the weapon, used to pass on as a delegate

Описание методов

Clone() публичный Метод

Returns a clone of the equipment. The data, and the index will be the same, but the pointer to the object itself will be different
public Clone ( ) : Equipment
Результат Equipment

Equals() публичный Метод

Compares a piece of equipment to this one
public Equals ( object obj ) : bool
obj object /// The obj to be compared ///
Результат bool

EquipToHero() публичный Метод

The equipment will pass abilities on, so the hero is able to use them.
public EquipToHero ( Hero hero ) : void
hero Hero /// The hero that equips the equipment ///
Результат void

Equipment() публичный Метод

Initializes a new instance of the Equipment class.
public Equipment ( int id, string name, EquipmentType type, EAttackType attackType, EquipmentRarity rarity, int buyPrice, List surgeAbilities, int hands, List abilities, List dice ) : System.Collections.Generic
id int /// The unique id of the equipment ///
name string /// The name of the equipment ///
type EquipmentType /// The equipments type ///
attackType EAttackType /// The attack type of the equipment ///
rarity EquipmentRarity /// The rarity of the equipment ///
buyPrice int /// The buy price of the equipment /// This is 0 if the equipments rarity is not common ///
surgeAbilities List /// The surge abilities, if the equipment is a weapon ///
hands int /// The number of hands it takes to wield, if the equipment is a weapon ///
abilities List /// The abilities that the equipment have ///
dice List /// The dice that the equipment has ///
Результат System.Collections.Generic

TapEquipment() публичный Метод

Taps the piece of equipment
public TapEquipment ( ) : void
Результат void

UnequipFromHero() публичный Метод

The equipment will unattach from a hero
public UnequipFromHero ( Hero hero ) : void
hero Hero /// The hero to ///
Результат void

UntapEquipment() публичный Метод

Untaps the piece of equipment, even if not tapped
public UntapEquipment ( ) : void
Результат void