C# Class Sanguosha.UI.Controls.MainPlayerView

Interaction logic for MainPlayerInfoView.xaml
Inheritance: PlayerViewBase
Datei anzeigen Open project: RagingBigFemaleBird/sgs

Private Properties

Property Type Description
HeroPhoto_MouseLeftButtonDown void
HeroPhoto_MouseRightButtonDown void
MainPlayerView_Unloaded void
PlayerInfoView_DataContextChanged void
SetAnimationCenter void
UpdateCards void
handCardArea_OnHandCardMoved void
model_PropertyChanged void
trustButton_Click void
untrustButton_Click void

Public Methods

Method Description
MainPlayerView ( ) : System
OnIronShackled ( ) : void
PlayAnimation ( AnimationBase animation, int playCenter, Point offset ) : void
PlayIronShackleAnimation ( ) : void
Update ( ) : void
UpdateCardAreas ( ) : void
UpdateImpersonateStatus ( bool isPrimaryHero ) : void

Protected Methods

Method Description
AddDelayedTool ( Sanguosha.UI.Controls.CardView card, bool isFaked ) : void
AddEquipment ( Sanguosha.UI.Controls.CardView card, bool isFaked ) : void
AddHandCards ( IList cards, bool isFaked ) : void
AddPrivateCards ( IList cards, bool isFaked ) : void
AddRoleCard ( Sanguosha.UI.Controls.CardView card, bool isFaked ) : void
RemoveDelayedTool ( Sanguosha.Core.Cards.Card card, bool isCopy ) : Sanguosha.UI.Controls.CardView
RemoveEquipment ( Sanguosha.Core.Cards.Card card, bool isCopy ) : Sanguosha.UI.Controls.CardView
RemoveHandCards ( IList cards, bool isCopy ) : IList
RemovePrivateCards ( IList cards ) : IEnumerable
RemoveRoleCard ( Sanguosha.Core.Cards.Card card ) : Sanguosha.UI.Controls.CardView

Private Methods

Method Description
HeroPhoto_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
HeroPhoto_MouseRightButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
MainPlayerView_Unloaded ( object sender, RoutedEventArgs e ) : void
PlayerInfoView_DataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SetAnimationCenter ( System.Windows.Controls.Canvas canvas ) : void
UpdateCards ( ) : void
handCardArea_OnHandCardMoved ( int oldPlace, int newPlace ) : void
model_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
trustButton_Click ( object sender, RoutedEventArgs e ) : void
untrustButton_Click ( object sender, RoutedEventArgs e ) : void

Method Details

AddDelayedTool() protected method

protected AddDelayedTool ( Sanguosha.UI.Controls.CardView card, bool isFaked ) : void
card Sanguosha.UI.Controls.CardView
isFaked bool
return void

AddEquipment() protected method

protected AddEquipment ( Sanguosha.UI.Controls.CardView card, bool isFaked ) : void
card Sanguosha.UI.Controls.CardView
isFaked bool
return void

AddHandCards() protected method

protected AddHandCards ( IList cards, bool isFaked ) : void
cards IList
isFaked bool
return void

AddPrivateCards() protected method

protected AddPrivateCards ( IList cards, bool isFaked ) : void
cards IList
isFaked bool
return void

AddRoleCard() protected method

protected AddRoleCard ( Sanguosha.UI.Controls.CardView card, bool isFaked ) : void
card Sanguosha.UI.Controls.CardView
isFaked bool
return void

MainPlayerView() public method

public MainPlayerView ( ) : System
return System

OnIronShackled() public method

public OnIronShackled ( ) : void
return void

PlayAnimation() public method

public PlayAnimation ( AnimationBase animation, int playCenter, Point offset ) : void
animation Sanguosha.UI.Animations.AnimationBase
playCenter int
offset Point
return void

PlayIronShackleAnimation() public method

public PlayIronShackleAnimation ( ) : void
return void

RemoveDelayedTool() protected method

protected RemoveDelayedTool ( Sanguosha.Core.Cards.Card card, bool isCopy ) : Sanguosha.UI.Controls.CardView
card Sanguosha.Core.Cards.Card
isCopy bool
return Sanguosha.UI.Controls.CardView

RemoveEquipment() protected method

protected RemoveEquipment ( Sanguosha.Core.Cards.Card card, bool isCopy ) : Sanguosha.UI.Controls.CardView
card Sanguosha.Core.Cards.Card
isCopy bool
return Sanguosha.UI.Controls.CardView

RemoveHandCards() protected method

protected RemoveHandCards ( IList cards, bool isCopy ) : IList
cards IList
isCopy bool
return IList

RemovePrivateCards() protected method

protected RemovePrivateCards ( IList cards ) : IEnumerable
cards IList
return IEnumerable

RemoveRoleCard() protected method

protected RemoveRoleCard ( Sanguosha.Core.Cards.Card card ) : Sanguosha.UI.Controls.CardView
card Sanguosha.Core.Cards.Card
return Sanguosha.UI.Controls.CardView

Update() public method

public Update ( ) : void
return void

UpdateCardAreas() public method

public UpdateCardAreas ( ) : void
return void

UpdateImpersonateStatus() public method

public UpdateImpersonateStatus ( bool isPrimaryHero ) : void
isPrimaryHero bool
return void