C# Class Descent.Model.Player.HeroParty

A party of heroes
ファイルを表示 Open project: nezbo/Descent Class Usage Examples

Public Methods

Method Description
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!

Private Methods

Method Description
HasRuneKey ( RuneKey runeKey ) : bool

Method Details

AddConquestTokens() public method

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 ///
return void

AddHero() public method

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.
return void

AddRuneKey() public method

Adds
public AddRuneKey ( RuneKey runeKey ) : void
runeKey RuneKey /// The rune key. ///
return void

GetPlayerId() public method

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.
return int

HeroParty() public method

Initializes a new instance of the HeroParty class.
public HeroParty ( ) : System.Collections.Generic
return System.Collections.Generic

RemoveConquestTokens() public method

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 ///
return void