C# Класс Descent.Model.Player.HeroParty

A party of heroes
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddConquestTokens ( int tokens ) : void

Add a number of tokens to the pool Add 'this' number of conquest tokens to the pool of tokens!

AddHero ( int playerId, Hero hero ) : void

Add a hero to the hero party. Add 'this' hero to the list of heroes in the HeroParty!

AddRuneKey ( RuneKey runeKey ) : void

Adds

GetPlayerId ( Hero hero ) : int

Fetches the player id for a given Hero if it is in the party.

HeroParty ( ) : System.Collections.Generic

Initializes a new instance of the HeroParty class.

RemoveConquestTokens ( int tokens ) : void

Removes a number of tokens from the pool Remove 'this' number of conquest tokens from the pool of tokens!

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

Метод Описание
HasRuneKey ( RuneKey runeKey ) : bool

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

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

Add a number of tokens to the pool Add 'this' number of conquest tokens to the pool of tokens!
public AddConquestTokens ( int tokens ) : void
tokens int /// The number of tokens to be added ///
Результат void

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

Add a hero to the hero party. Add 'this' hero to the list of heroes in the HeroParty!
public AddHero ( int playerId, Hero hero ) : void
playerId int PlayerId of the player that holds the Hero.
hero Hero The hero to add.
Результат void

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

Adds
public AddRuneKey ( RuneKey runeKey ) : void
runeKey RuneKey /// The rune key. ///
Результат void

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

Fetches the player id for a given Hero if it is in the party.
public GetPlayerId ( Hero hero ) : int
hero Hero The hero we want the player id for.
Результат int

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

Initializes a new instance of the HeroParty class.
public HeroParty ( ) : System.Collections.Generic
Результат System.Collections.Generic

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

Removes a number of tokens from the pool Remove 'this' number of conquest tokens from the pool of tokens!
public RemoveConquestTokens ( int tokens ) : void
tokens int /// The number of tokens to be removed, must be possitive ///
Результат void