C# 클래스 Descent.Model.Player.HeroParty

A party of heroes
파일 보기 프로젝트 열기: nezbo/Descent 1 사용 예제들

공개 메소드들

메소드 설명
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