C# Class Sanguosha.UI.Controls.LogFormatter

显示文件 Open project: RagingBigFemaleBird/sgs Class Usage Examples

Public Methods

Method Description
Format ( string format, List args ) : List
RichTranslate ( Sanguosha.Core.Cards.Card c, bool useUiCard = true ) : IList
RichTranslate ( Sanguosha.Core.Cards.CardHandler cardType ) : IList
RichTranslate ( CardViewModel card ) : IList
RichTranslate ( ICard card, bool useUiCard = true ) : IList
RichTranslate ( IList cards ) : IList
RichTranslate ( ISkill skill ) : IList
RichTranslateCardMove ( List cards, DeckPlace source, DeckPlace dest, GameAction reason ) : System.Windows.Documents.Paragraph
RichTranslateChoice ( Player p, string answer ) : System.Windows.Documents.Paragraph
RichTranslateDamage ( Player source, Player target, int magnitude, DamageElement element ) : System.Windows.Documents.Paragraph
RichTranslateDeath ( Player p, Player by ) : System.Windows.Documents.Paragraph
RichTranslateImprisoned ( Player player ) : System.Windows.Documents.Paragraph
RichTranslateKeyLog ( ActionLog log ) : System.Windows.Documents.Paragraph
RichTranslateMainLog ( ActionLog log ) : System.Windows.Documents.Paragraph
RichTranslatePickHero ( Player player, bool isPrimaryHero ) : System.Windows.Documents.Paragraph
RichTranslateRole ( Player p ) : System.Windows.Documents.Paragraph
Translate ( Sanguosha.Core.Cards.CardHandler cardHandler ) : string
Translate ( DamageElement element ) : string
Translate ( DeckPlace deckPlace ) : string
Translate ( Sanguosha.Core.Cards.DeckType deckType ) : string
Translate ( Sanguosha.Core.Heroes.Hero hero ) : string
Translate ( ICard card ) : string
Translate ( IList players ) : string
Translate ( ISkill skill ) : string
Translate ( Player player ) : string
Translate ( Prompt prompt ) : string
Translate ( Role role ) : string
Translate ( SuitType suitType ) : string
TranslateCardFootnote ( ActionLog log ) : string
TranslateLogEvent ( Prompt custom, bool useUICard = true ) : IList

Private Methods

Method Description
LogFormatter ( ) : System
RichTranslateChat ( string playerName, string userName, string message ) : System.Windows.Documents.Paragraph
RichTranslateChatMessage ( string message ) : IList
RichTranslateJudgeResult ( Player p, Sanguosha.Core.Cards.Card card, ActionLog log, bool isFinalResult ) : System.Windows.Documents.Paragraph
RichTranslateJudgeResultEffectiveness ( Player p, ActionLog log, bool isSuccess ) : System.Windows.Documents.Paragraph
RichTranslateLoseHealth ( Player player, int delta ) : System.Windows.Documents.Paragraph
RichTranslateLoseMaxHealth ( Player player, int delta ) : System.Windows.Documents.Paragraph
RichTranslateRecoverHealth ( Player player, int delta ) : System.Windows.Documents.Paragraph
RichTranslateReforgeCard ( Player player, ICard card ) : System.Windows.Documents.Paragraph
RichTranslateShowCards ( Player player, IList cards ) : System.Windows.Documents.Paragraph
TranslateHeroName ( Sanguosha.Core.Heroes.Hero hero ) : string

Method Details

Format() public static method

public static Format ( string format, List args ) : List
format string
args List
return List

RichTranslate() public static method

public static RichTranslate ( Sanguosha.Core.Cards.Card c, bool useUiCard = true ) : IList
c Sanguosha.Core.Cards.Card
useUiCard bool
return IList

RichTranslate() public static method

public static RichTranslate ( Sanguosha.Core.Cards.CardHandler cardType ) : IList
cardType Sanguosha.Core.Cards.CardHandler
return IList

RichTranslate() public static method

public static RichTranslate ( CardViewModel card ) : IList
card CardViewModel
return IList

RichTranslate() public static method

public static RichTranslate ( ICard card, bool useUiCard = true ) : IList
card ICard
useUiCard bool
return IList

RichTranslate() public static method

public static RichTranslate ( IList cards ) : IList
cards IList
return IList

RichTranslate() public static method

public static RichTranslate ( ISkill skill ) : IList
skill ISkill
return IList

RichTranslateCardMove() public static method

public static RichTranslateCardMove ( List cards, DeckPlace source, DeckPlace dest, GameAction reason ) : System.Windows.Documents.Paragraph
cards List
source Sanguosha.Core.Cards.DeckPlace
dest Sanguosha.Core.Cards.DeckPlace
reason GameAction
return System.Windows.Documents.Paragraph

RichTranslateChoice() public static method

public static RichTranslateChoice ( Player p, string answer ) : System.Windows.Documents.Paragraph
p Sanguosha.Core.Players.Player
answer string
return System.Windows.Documents.Paragraph

RichTranslateDamage() public static method

public static RichTranslateDamage ( Player source, Player target, int magnitude, DamageElement element ) : System.Windows.Documents.Paragraph
source Sanguosha.Core.Players.Player
target Sanguosha.Core.Players.Player
magnitude int
element DamageElement
return System.Windows.Documents.Paragraph

RichTranslateDeath() public static method

public static RichTranslateDeath ( Player p, Player by ) : System.Windows.Documents.Paragraph
p Sanguosha.Core.Players.Player
by Sanguosha.Core.Players.Player
return System.Windows.Documents.Paragraph

RichTranslateImprisoned() public static method

public static RichTranslateImprisoned ( Player player ) : System.Windows.Documents.Paragraph
player Sanguosha.Core.Players.Player
return System.Windows.Documents.Paragraph

RichTranslateKeyLog() public static method

public static RichTranslateKeyLog ( ActionLog log ) : System.Windows.Documents.Paragraph
log Sanguosha.Core.UI.ActionLog
return System.Windows.Documents.Paragraph

RichTranslateMainLog() public static method

public static RichTranslateMainLog ( ActionLog log ) : System.Windows.Documents.Paragraph
log Sanguosha.Core.UI.ActionLog
return System.Windows.Documents.Paragraph

RichTranslatePickHero() public static method

public static RichTranslatePickHero ( Player player, bool isPrimaryHero ) : System.Windows.Documents.Paragraph
player Sanguosha.Core.Players.Player
isPrimaryHero bool
return System.Windows.Documents.Paragraph

RichTranslateRole() public static method

public static RichTranslateRole ( Player p ) : System.Windows.Documents.Paragraph
p Sanguosha.Core.Players.Player
return System.Windows.Documents.Paragraph

Translate() public static method

public static Translate ( Sanguosha.Core.Cards.CardHandler cardHandler ) : string
cardHandler Sanguosha.Core.Cards.CardHandler
return string

Translate() public static method

public static Translate ( DamageElement element ) : string
element DamageElement
return string

Translate() public static method

public static Translate ( DeckPlace deckPlace ) : string
deckPlace Sanguosha.Core.Cards.DeckPlace
return string

Translate() public static method

public static Translate ( Sanguosha.Core.Cards.DeckType deckType ) : string
deckType Sanguosha.Core.Cards.DeckType
return string

Translate() public static method

public static Translate ( Sanguosha.Core.Heroes.Hero hero ) : string
hero Sanguosha.Core.Heroes.Hero
return string

Translate() public static method

public static Translate ( ICard card ) : string
card ICard
return string

Translate() public static method

public static Translate ( IList players ) : string
players IList
return string

Translate() public static method

public static Translate ( ISkill skill ) : string
skill ISkill
return string

Translate() public static method

public static Translate ( Player player ) : string
player Sanguosha.Core.Players.Player
return string

Translate() public static method

public static Translate ( Prompt prompt ) : string
prompt Sanguosha.Core.UI.Prompt
return string

Translate() public static method

public static Translate ( Role role ) : string
role Role
return string

Translate() public static method

public static Translate ( SuitType suitType ) : string
suitType SuitType
return string

TranslateCardFootnote() public static method

public static TranslateCardFootnote ( ActionLog log ) : string
log Sanguosha.Core.UI.ActionLog
return string

TranslateLogEvent() public static method

public static TranslateLogEvent ( Prompt custom, bool useUICard = true ) : IList
custom Sanguosha.Core.UI.Prompt
useUICard bool
return IList