C# Class Sanguosha.UI.Controls.GameView

Interaction logic for GameTable.xaml
Inheritance: System.Windows.Controls.UserControl, INotificationProxy
Exibir arquivo Open project: RagingBigFemaleBird/sgs

Protected Properties

Property Type Description
pk1v3SeatIndex int[][]
pk3v3SeatIndex int[][]
regularSeatIndex int[][]

Public Methods

Method Description
DisplayPrivateDeck ( Player player, SpecialDeckViewModel model ) : void
NotifyActionComplete ( ) : void
NotifyCardChoiceCallback ( CardRearrangement arrange ) : void
NotifyCardMovement ( List moves ) : void
NotifyDamage ( Player source, Player target, int magnitude, DamageElement element ) : void
NotifyDeath ( Player p, Player by ) : void
NotifyGameOver ( bool isDraw, List winners ) : void
NotifyGameStart ( ) : void
NotifyImpersonation ( Player p, Sanguosha.Core.Heroes.Hero impersonator, Sanguosha.Core.Heroes.Hero impersonatedHero, ISkill acquiredSkill ) : void
NotifyIronShackled ( Player p ) : void
NotifyJudge ( Player p, Sanguosha.Core.Cards.Card card, ActionLog log, bool isSuccess, bool isFinalResult ) : void
NotifyLogEvent ( Prompt custom, List players = null, bool isKeyEvent = true, bool useUICard = true ) : void
NotifyLoseHealth ( Player player, int delta ) : void
NotifyLoseMaxHealth ( Player player, int delta ) : void
NotifyMultipleCardUsageResponded ( Player player ) : void
NotifyMultipleChoiceResult ( Player p, OptionPrompt answer ) : void
NotifyPinDianEnd ( Sanguosha.Core.Cards.Card c1, Sanguosha.Core.Cards.Card c2 ) : void
NotifyPinDianStart ( Player from, Player to, ISkill reason ) : void
NotifyRecoverHealth ( Player player, int delta ) : void
NotifyReforge ( Player p, ICard card ) : void
NotifyShowCard ( Player p, Sanguosha.Core.Cards.Card card ) : void
NotifyShowCardsEnd ( ) : void
NotifyShowCardsStart ( Player p, List cards ) : void
NotifySkillUse ( ActionLog log ) : void
NotifyTwoSidesCardPickEnd ( ) : void
NotifyTwoSidesCardPickStart ( Prompt prompt, DeckPlace place, int>.IDictionary groupMap, int group0MaxPick, int group1MaxPick ) : void
NotifyTwoSidesCardPicked ( bool isGroup0, int cardIndex ) : void
NotifyUiAttached ( ) : void
NotifyUiDetached ( ) : void
NotifyWuGuEnd ( ) : void
NotifyWuGuStart ( Prompt prompt, DeckPlace place ) : void
PlayAnimation ( AnimationBase animation ) : void
RearrangeSeats ( ) : void

Private Methods

Method Description
GameView ( ) : System
GameView_DataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
GameView_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
LobbyModel_OnChat ( string userName, string msg ) : void
UserControl_Loaded ( object sender, RoutedEventArgs e ) : void
UserControl_Unloaded ( object sender, RoutedEventArgs e ) : void
_AdjustSpacing ( double hSpacing, double vSpacing ) : void
_AppendKeyEventLog ( ActionLog log ) : void
_AppendKeyEventLog ( System.Windows.Documents.Paragraph log ) : void
_AppendKeyEventLog ( Prompt custom, bool useUICard = true ) : void
_CreateCueLines ( ) : void
_CreatePlayerInfoView ( int indexInGameModel ) : void
_GetMovementDeck ( DeckPlace place ) : IDeckContainer
_LineUp ( Player source, IList targets ) : void
_RearrangeSeats ( ) : void
_Resize ( Size size ) : void
_ResizeCueLines ( ) : void
_UpdateRemainingCards ( ) : void
_constructPlayerCurrentSpecialDeck ( PlayerViewModel model ) : void
_game_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
_player_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
btnCloseResultBox_Click ( object sender, System e ) : void
card_OnSelectedChanged ( object sender, EventArgs e ) : void
mainPlayer_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
model_PropertyChanged ( object sender, System e ) : void
playerView_OnRequestSpectate ( object sender, EventArgs e ) : void

Method Details

DisplayPrivateDeck() public method

public DisplayPrivateDeck ( Player player, SpecialDeckViewModel model ) : void
player Sanguosha.Core.Players.Player
model SpecialDeckViewModel
return void

NotifyActionComplete() public method

public NotifyActionComplete ( ) : void
return void

NotifyCardChoiceCallback() public method

public NotifyCardChoiceCallback ( CardRearrangement arrange ) : void
arrange Sanguosha.Core.UI.CardRearrangement
return void

NotifyCardMovement() public method

public NotifyCardMovement ( List moves ) : void
moves List
return void

NotifyDamage() public method

public NotifyDamage ( Player source, Player target, int magnitude, DamageElement element ) : void
source Sanguosha.Core.Players.Player
target Sanguosha.Core.Players.Player
magnitude int
element DamageElement
return void

NotifyDeath() public method

public NotifyDeath ( Player p, Player by ) : void
p Sanguosha.Core.Players.Player
by Sanguosha.Core.Players.Player
return void

NotifyGameOver() public method

public NotifyGameOver ( bool isDraw, List winners ) : void
isDraw bool
winners List
return void

NotifyGameStart() public method

public NotifyGameStart ( ) : void
return void

NotifyImpersonation() public method

public NotifyImpersonation ( Player p, Sanguosha.Core.Heroes.Hero impersonator, Sanguosha.Core.Heroes.Hero impersonatedHero, ISkill acquiredSkill ) : void
p Sanguosha.Core.Players.Player
impersonator Sanguosha.Core.Heroes.Hero
impersonatedHero Sanguosha.Core.Heroes.Hero
acquiredSkill ISkill
return void

NotifyIronShackled() public method

public NotifyIronShackled ( Player p ) : void
p Sanguosha.Core.Players.Player
return void

NotifyJudge() public method

public NotifyJudge ( Player p, Sanguosha.Core.Cards.Card card, ActionLog log, bool isSuccess, bool isFinalResult ) : void
p Sanguosha.Core.Players.Player
card Sanguosha.Core.Cards.Card
log Sanguosha.Core.UI.ActionLog
isSuccess bool
isFinalResult bool
return void

NotifyLogEvent() public method

public NotifyLogEvent ( Prompt custom, List players = null, bool isKeyEvent = true, bool useUICard = true ) : void
custom Sanguosha.Core.UI.Prompt
players List
isKeyEvent bool
useUICard bool
return void

NotifyLoseHealth() public method

public NotifyLoseHealth ( Player player, int delta ) : void
player Sanguosha.Core.Players.Player
delta int
return void

NotifyLoseMaxHealth() public method

public NotifyLoseMaxHealth ( Player player, int delta ) : void
player Sanguosha.Core.Players.Player
delta int
return void

NotifyMultipleCardUsageResponded() public method

public NotifyMultipleCardUsageResponded ( Player player ) : void
player Sanguosha.Core.Players.Player
return void

NotifyMultipleChoiceResult() public method

public NotifyMultipleChoiceResult ( Player p, OptionPrompt answer ) : void
p Sanguosha.Core.Players.Player
answer Sanguosha.Core.UI.OptionPrompt
return void

NotifyPinDianEnd() public method

public NotifyPinDianEnd ( Sanguosha.Core.Cards.Card c1, Sanguosha.Core.Cards.Card c2 ) : void
c1 Sanguosha.Core.Cards.Card
c2 Sanguosha.Core.Cards.Card
return void

NotifyPinDianStart() public method

public NotifyPinDianStart ( Player from, Player to, ISkill reason ) : void
from Sanguosha.Core.Players.Player
to Sanguosha.Core.Players.Player
reason ISkill
return void

NotifyRecoverHealth() public method

public NotifyRecoverHealth ( Player player, int delta ) : void
player Sanguosha.Core.Players.Player
delta int
return void

NotifyReforge() public method

public NotifyReforge ( Player p, ICard card ) : void
p Sanguosha.Core.Players.Player
card ICard
return void

NotifyShowCard() public method

public NotifyShowCard ( Player p, Sanguosha.Core.Cards.Card card ) : void
p Sanguosha.Core.Players.Player
card Sanguosha.Core.Cards.Card
return void

NotifyShowCardsEnd() public method

public NotifyShowCardsEnd ( ) : void
return void

NotifyShowCardsStart() public method

public NotifyShowCardsStart ( Player p, List cards ) : void
p Sanguosha.Core.Players.Player
cards List
return void

NotifySkillUse() public method

public NotifySkillUse ( ActionLog log ) : void
log Sanguosha.Core.UI.ActionLog
return void

NotifyTwoSidesCardPickEnd() public method

public NotifyTwoSidesCardPickEnd ( ) : void
return void

NotifyTwoSidesCardPickStart() public method

public NotifyTwoSidesCardPickStart ( Prompt prompt, DeckPlace place, int>.IDictionary groupMap, int group0MaxPick, int group1MaxPick ) : void
prompt Sanguosha.Core.UI.Prompt
place Sanguosha.Core.Cards.DeckPlace
groupMap int>.IDictionary
group0MaxPick int
group1MaxPick int
return void

NotifyTwoSidesCardPicked() public method

public NotifyTwoSidesCardPicked ( bool isGroup0, int cardIndex ) : void
isGroup0 bool
cardIndex int
return void

NotifyUiAttached() public method

public NotifyUiAttached ( ) : void
return void

NotifyUiDetached() public method

public NotifyUiDetached ( ) : void
return void

NotifyWuGuEnd() public method

public NotifyWuGuEnd ( ) : void
return void

NotifyWuGuStart() public method

public NotifyWuGuStart ( Prompt prompt, DeckPlace place ) : void
prompt Sanguosha.Core.UI.Prompt
place Sanguosha.Core.Cards.DeckPlace
return void

PlayAnimation() public method

public PlayAnimation ( AnimationBase animation ) : void
animation Sanguosha.UI.Animations.AnimationBase
return void

RearrangeSeats() public method

public RearrangeSeats ( ) : void
return void

Property Details

pk1v3SeatIndex protected_oe static_oe property

protected static int[][] pk1v3SeatIndex
return int[][]

pk3v3SeatIndex protected_oe static_oe property

protected static int[][] pk3v3SeatIndex
return int[][]

regularSeatIndex protected_oe static_oe property

protected static int[][] regularSeatIndex
return int[][]