C# Class Sanguosha.UI.Controls.PlayerViewBase

Inheritance: System.Windows.Controls.UserControl, IDeckContainer
ファイルを表示 Open project: RagingBigFemaleBird/sgs

Public Methods

Method Description
AddCards ( Sanguosha.Core.Cards.DeckType deck, IList cards, bool isFaked ) : void
Chat ( System.Windows.Documents.Paragraph msg ) : void
OnIronShackled ( ) : void
PlayAnimation ( AnimationBase animation, int playCenter, Point offset ) : void
PlayAnimationAsync ( AnimationBase animation, int playCenter, Point offset ) : void
PlayIronShackleAnimation ( ) : void
PlayerViewBase ( ) : System
RemoveCards ( Sanguosha.Core.Cards.DeckType deck, IList cards, bool isCopy ) : IList
Tremble ( ) : 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
ComputeCardCenterPos ( Sanguosha.UI.Controls.CardView card, FrameworkElement element ) : Point

Compute card position on global canvas such that the card center is aligned to the center of element.

GetLayoutClip ( Size layoutSlotSize ) : System.Windows.Media.Geometry
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
btnPrivateDeck_Click ( object sender, System e ) : void

Private Methods

Method Description
PlayerViewBase_DataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
UpdateCards ( ) : void

Method Details

AddCards() public method

public AddCards ( Sanguosha.Core.Cards.DeckType deck, IList cards, bool isFaked ) : void
deck Sanguosha.Core.Cards.DeckType
cards IList
isFaked bool
return void

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

Chat() public method

public Chat ( System.Windows.Documents.Paragraph msg ) : void
msg System.Windows.Documents.Paragraph
return void

ComputeCardCenterPos() protected method

Compute card position on global canvas such that the card center is aligned to the center of element.
protected ComputeCardCenterPos ( Sanguosha.UI.Controls.CardView card, FrameworkElement element ) : Point
card Sanguosha.UI.Controls.CardView Card to be aligned.
element System.Windows.FrameworkElement FrameworkElement to be aligned to.
return Point

GetLayoutClip() protected method

protected GetLayoutClip ( Size layoutSlotSize ) : System.Windows.Media.Geometry
layoutSlotSize System.Windows.Size
return System.Windows.Media.Geometry

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

PlayAnimationAsync() public method

public PlayAnimationAsync ( 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

PlayerViewBase() public method

public PlayerViewBase ( ) : System
return System

RemoveCards() public method

public RemoveCards ( Sanguosha.Core.Cards.DeckType deck, IList cards, bool isCopy ) : IList
deck Sanguosha.Core.Cards.DeckType
cards IList
isCopy bool
return IList

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

Tremble() public method

public Tremble ( ) : void
return void

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

btnPrivateDeck_Click() protected method

protected btnPrivateDeck_Click ( object sender, System e ) : void
sender object
e System
return void