C# Class Sanguosha.UI.Controls.PlayerViewModel

Inheritance: SelectableItem, IAsyncUiProxy
Exibir arquivo Open project: RagingBigFemaleBird/sgs Class Usage Examples

Public Methods

Method Description
AbortCardUsageCommand ( object parameter ) : void
AnswerTwoSidesCardChoice ( Sanguosha.Core.Cards.Card card ) : void
AnswerWuGuChoice ( Sanguosha.Core.Cards.Card card ) : void
AskForCardChoice ( Prompt prompt, List sourceDecks, List resultDeckNames, List resultDeckMaximums, ICardChoiceVerifier verifier, int timeOutSeconds, AdditionalCardChoiceOptions options, CardChoiceRearrangeCallback callback ) : void
AskForCardUsage ( Prompt prompt, ICardUsageVerifier verifier, int timeOutSeconds ) : void
AskForMultipleChoice ( Prompt prompt, List choices, int timeOutSeconds ) : void
CancelCardChoiceCommand ( object parameter ) : void
CancelCardUsageCommand ( object parameter ) : void
CancelSkillSelectionCommand ( object parameter ) : void
CheatGetCard ( Sanguosha.Core.Cards.Card card ) : bool
CheatGetSkill ( string skillName ) : bool
ExecuteCardChoiceCommand ( object parameter ) : void
ExecuteMultiChoiceCommand ( object parameter ) : void
Freeze ( ) : void
PlayerViewModel ( ) : System
PlayerViewModel ( Player player, GameViewModel game ) : System
SubmitCardUsageCommand ( object parameter ) : void

Private Methods

Method Description
AnswerEmptyMultichoiceQuestion ( ) : void
GetHeroModel ( Sanguosha.Core.Heroes.Hero hero ) : HeroViewModel
_AbortCardChoice ( ) : void
_AbortMultipleChoice ( ) : void
_ConstructCardChoiceModel ( List sourceDecks, List resultDeckNames, List resultDeckMaximums, AdditionalCardChoiceOptions options, ICardChoiceVerifier verifier, int timeOutSeconds, CardChoiceRearrangeCallback callback ) : void
_GetSelectedNonEquipCards ( ) : List
_GetSelectedPlayers ( ) : List
_GetSelectedSkillCommand ( bool &isEquipSkill ) : SkillCommand
_OnCardSelected ( object sender, EventArgs args ) : void
_OnCardUsageSelectionChanged ( object sender, EventArgs args ) : void
_OnPlayerPropertyChanged ( object o, PropertyChangedEventArgs e ) : void
_OnSkillCommandSelected ( object sender, EventArgs args ) : void
_ResetAll ( ) : void
_ResetSkillsAndCards ( ) : void
_UpdateAttributes ( ) : void
_UpdateCardUsageStatus ( ) : void
_UpdatePossibleRoles ( ) : void
_UpdatePossibleRolesInternal ( ) : void
_UpdateSkills ( ) : void
_game_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
triggerSkill_OnSelectedChanged ( object sender, EventArgs e ) : void

Method Details

AbortCardUsageCommand() public method

public AbortCardUsageCommand ( object parameter ) : void
parameter object
return void

AnswerTwoSidesCardChoice() public method

public AnswerTwoSidesCardChoice ( Sanguosha.Core.Cards.Card card ) : void
card Sanguosha.Core.Cards.Card
return void

AnswerWuGuChoice() public method

public AnswerWuGuChoice ( Sanguosha.Core.Cards.Card card ) : void
card Sanguosha.Core.Cards.Card
return void

AskForCardChoice() public method

public AskForCardChoice ( Prompt prompt, List sourceDecks, List resultDeckNames, List resultDeckMaximums, ICardChoiceVerifier verifier, int timeOutSeconds, AdditionalCardChoiceOptions options, CardChoiceRearrangeCallback callback ) : void
prompt Sanguosha.Core.UI.Prompt
sourceDecks List
resultDeckNames List
resultDeckMaximums List
verifier ICardChoiceVerifier
timeOutSeconds int
options Sanguosha.Core.UI.AdditionalCardChoiceOptions
callback CardChoiceRearrangeCallback
return void

AskForCardUsage() public method

public AskForCardUsage ( Prompt prompt, ICardUsageVerifier verifier, int timeOutSeconds ) : void
prompt Sanguosha.Core.UI.Prompt
verifier ICardUsageVerifier
timeOutSeconds int
return void

AskForMultipleChoice() public method

public AskForMultipleChoice ( Prompt prompt, List choices, int timeOutSeconds ) : void
prompt Sanguosha.Core.UI.Prompt
choices List
timeOutSeconds int
return void

CancelCardChoiceCommand() public method

public CancelCardChoiceCommand ( object parameter ) : void
parameter object
return void

CancelCardUsageCommand() public method

public CancelCardUsageCommand ( object parameter ) : void
parameter object
return void

CancelSkillSelectionCommand() public method

public CancelSkillSelectionCommand ( object parameter ) : void
parameter object
return void

CheatGetCard() public method

public CheatGetCard ( Sanguosha.Core.Cards.Card card ) : bool
card Sanguosha.Core.Cards.Card
return bool

CheatGetSkill() public method

public CheatGetSkill ( string skillName ) : bool
skillName string
return bool

ExecuteCardChoiceCommand() public method

public ExecuteCardChoiceCommand ( object parameter ) : void
parameter object
return void

ExecuteMultiChoiceCommand() public method

public ExecuteMultiChoiceCommand ( object parameter ) : void
parameter object
return void

Freeze() public method

public Freeze ( ) : void
return void

PlayerViewModel() public method

public PlayerViewModel ( ) : System
return System

PlayerViewModel() public method

public PlayerViewModel ( Player player, GameViewModel game ) : System
player Sanguosha.Core.Players.Player
game GameViewModel
return System

SubmitCardUsageCommand() public method

public SubmitCardUsageCommand ( object parameter ) : void
parameter object
return void