C# Class Sanguosha.UI.Controls.GameView

Interaction logic for GameTable.xaml
Inheritance: System.Windows.Controls.UserControl, INotificationProxy
Afficher le fichier Open project: RagingBigFemaleBird/sgs

Protected Properties

Свойство Type Description
pk1v3SeatIndex int[][]
pk3v3SeatIndex int[][]
regularSeatIndex int[][]

Méthodes publiques

Méthode 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

Méthode 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 méthode

public DisplayPrivateDeck ( Player player, SpecialDeckViewModel model ) : void
player Sanguosha.Core.Players.Player
model SpecialDeckViewModel
Résultat void

NotifyActionComplete() public méthode

public NotifyActionComplete ( ) : void
Résultat void

NotifyCardChoiceCallback() public méthode

public NotifyCardChoiceCallback ( CardRearrangement arrange ) : void
arrange Sanguosha.Core.UI.CardRearrangement
Résultat void

NotifyCardMovement() public méthode

public NotifyCardMovement ( List moves ) : void
moves List
Résultat void

NotifyDamage() public méthode

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
Résultat void

NotifyDeath() public méthode

public NotifyDeath ( Player p, Player by ) : void
p Sanguosha.Core.Players.Player
by Sanguosha.Core.Players.Player
Résultat void

NotifyGameOver() public méthode

public NotifyGameOver ( bool isDraw, List winners ) : void
isDraw bool
winners List
Résultat void

NotifyGameStart() public méthode

public NotifyGameStart ( ) : void
Résultat void

NotifyImpersonation() public méthode

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
Résultat void

NotifyIronShackled() public méthode

public NotifyIronShackled ( Player p ) : void
p Sanguosha.Core.Players.Player
Résultat void

NotifyJudge() public méthode

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
Résultat void

NotifyLogEvent() public méthode

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
Résultat void

NotifyLoseHealth() public méthode

public NotifyLoseHealth ( Player player, int delta ) : void
player Sanguosha.Core.Players.Player
delta int
Résultat void

NotifyLoseMaxHealth() public méthode

public NotifyLoseMaxHealth ( Player player, int delta ) : void
player Sanguosha.Core.Players.Player
delta int
Résultat void

NotifyMultipleCardUsageResponded() public méthode

public NotifyMultipleCardUsageResponded ( Player player ) : void
player Sanguosha.Core.Players.Player
Résultat void

NotifyMultipleChoiceResult() public méthode

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

NotifyPinDianEnd() public méthode

public NotifyPinDianEnd ( Sanguosha.Core.Cards.Card c1, Sanguosha.Core.Cards.Card c2 ) : void
c1 Sanguosha.Core.Cards.Card
c2 Sanguosha.Core.Cards.Card
Résultat void

NotifyPinDianStart() public méthode

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

NotifyRecoverHealth() public méthode

public NotifyRecoverHealth ( Player player, int delta ) : void
player Sanguosha.Core.Players.Player
delta int
Résultat void

NotifyReforge() public méthode

public NotifyReforge ( Player p, ICard card ) : void
p Sanguosha.Core.Players.Player
card ICard
Résultat void

NotifyShowCard() public méthode

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

NotifyShowCardsEnd() public méthode

public NotifyShowCardsEnd ( ) : void
Résultat void

NotifyShowCardsStart() public méthode

public NotifyShowCardsStart ( Player p, List cards ) : void
p Sanguosha.Core.Players.Player
cards List
Résultat void

NotifySkillUse() public méthode

public NotifySkillUse ( ActionLog log ) : void
log Sanguosha.Core.UI.ActionLog
Résultat void

NotifyTwoSidesCardPickEnd() public méthode

public NotifyTwoSidesCardPickEnd ( ) : void
Résultat void

NotifyTwoSidesCardPickStart() public méthode

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
Résultat void

NotifyTwoSidesCardPicked() public méthode

public NotifyTwoSidesCardPicked ( bool isGroup0, int cardIndex ) : void
isGroup0 bool
cardIndex int
Résultat void

NotifyUiAttached() public méthode

public NotifyUiAttached ( ) : void
Résultat void

NotifyUiDetached() public méthode

public NotifyUiDetached ( ) : void
Résultat void

NotifyWuGuEnd() public méthode

public NotifyWuGuEnd ( ) : void
Résultat void

NotifyWuGuStart() public méthode

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

PlayAnimation() public méthode

public PlayAnimation ( AnimationBase animation ) : void
animation Sanguosha.UI.Animations.AnimationBase
Résultat void

RearrangeSeats() public méthode

public RearrangeSeats ( ) : void
Résultat void

Property Details

pk1v3SeatIndex protected_oe static_oe property

protected static int[][] pk1v3SeatIndex
Résultat int[][]

pk3v3SeatIndex protected_oe static_oe property

protected static int[][] pk3v3SeatIndex
Résultat int[][]

regularSeatIndex protected_oe static_oe property

protected static int[][] regularSeatIndex
Résultat int[][]