C# Class Dominion.HumanReadableGameLog

Inheritance: IGameLog, IDisposable
Show file Open project: NathanTeeuwen/Dominulator Class Usage Examples

Public Methods

Method Description
BeginPhase ( PlayerState playerState ) : void
BeginRound ( PlayerState playerState ) : void
BeginTurn ( PlayerState playerState ) : void
CardWentToLocation ( DeckPlacement deckPlacement ) : void
DiscardedCard ( PlayerState playerState, Dominion.Card card ) : void
Dispose ( ) : void
DrewCardIntoHand ( PlayerState playerState, Dominion.Card card ) : void
EndGame ( GameState gameState ) : void
EndPhase ( PlayerState playerState ) : void
EndRound ( GameState gameState ) : void
EndTurn ( PlayerState playerState ) : void
HumanReadableGameLog ( IndentedTextWriter textWriter ) : System
HumanReadableGameLog ( System textWriter ) : System
LogDeck ( PlayerState playerState ) : void
PlayedCard ( PlayerState playerState, Dominion.Card card ) : void
PlayerBoughtCard ( PlayerState playerState, Dominion.Card card ) : void
PlayerChoseLocationForStash ( PlayerState playerState, int positions ) : void
PlayerDiscardCard ( PlayerState playerState, Dominion.Card card, DeckPlacement source ) : void
PlayerGainedActions ( PlayerState playerState, int actionAmount ) : void
PlayerGainedBuys ( PlayerState playerState, int buyAmount ) : void
PlayerGainedCard ( PlayerState playerState, Dominion.Card card ) : void
PlayerGainedCoin ( PlayerState playerState, int coinAmount ) : void
PlayerGainedCoinToken ( PlayerState playerState, int coinAmount ) : void
PlayerGainedPotion ( PlayerState playerState, int count ) : void
PlayerGainedVictoryTokens ( PlayerState playerState, int amount ) : void
PlayerNamedCard ( PlayerState playerState, Dominion.Card card ) : void
PlayerOverpaidForCard ( Dominion.Card boughtCard, int overPayAmount ) : void
PlayerPlacedCardOnIslandMat ( PlayerState playerState, Dominion.Card card ) : void
PlayerPlacedCardOnNativeVillageMat ( PlayerState playerState, Dominion.Card card ) : void
PlayerPlacedCardOnTavernMat ( PlayerState playerState, Dominion.Card card ) : void
PlayerPutCardInHand ( PlayerState playerState, Dominion.Card card ) : void
PlayerReturnedCardToHand ( PlayerState playerState, Dominion.Card card ) : void
PlayerReturnedCardToPile ( PlayerState playerState, Dominion.Card card ) : void
PlayerRevealedCard ( PlayerState playerState, Dominion.Card card, DeckPlacement source ) : void
PlayerSetAsideCardFromHandForNextTurn ( PlayerState playerState, Dominion.Card card ) : void
PlayerTopDeckedCard ( PlayerState playerState, Dominion.Card card ) : void
PlayerTrashedCard ( PlayerState playerState, Dominion.Card card ) : void
PopScope ( ) : void
PushScope ( ) : void
ReceivedDurationEffectFrom ( PlayerState playerState, Dominion.Card card ) : void
ReshuffledDiscardIntoDeck ( PlayerState playerState ) : void
StartGame ( GameState gameState ) : void
WriteAllCards ( IEnumerable cards, System textWriter ) : void

Private Methods

Method Description
GetPlayerName ( PlayerState playerState ) : string
TextForDeckPlacement ( DeckPlacement source ) : string
WriteAllCards ( BagOfCards cards ) : void
WriteAllCards ( CollectionCards cards ) : void
WriteAllCards ( IEnumerable cards ) : void
WriteAllOwnedCards ( PlayerState playerState ) : void
WriteOutDrawnCardsIfNecessary ( ) : void
WriteOutPlayedTreasuresIfNecessary ( bool unindent = false ) : void

Method Details

BeginPhase() public method

public BeginPhase ( PlayerState playerState ) : void
playerState PlayerState
return void

BeginRound() public method

public BeginRound ( PlayerState playerState ) : void
playerState PlayerState
return void

BeginTurn() public method

public BeginTurn ( PlayerState playerState ) : void
playerState PlayerState
return void

CardWentToLocation() public method

public CardWentToLocation ( DeckPlacement deckPlacement ) : void
deckPlacement DeckPlacement
return void

DiscardedCard() public method

public DiscardedCard ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

Dispose() public method

public Dispose ( ) : void
return void

DrewCardIntoHand() public method

public DrewCardIntoHand ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

EndGame() public method

public EndGame ( GameState gameState ) : void
gameState GameState
return void

EndPhase() public method

public EndPhase ( PlayerState playerState ) : void
playerState PlayerState
return void

EndRound() public method

public EndRound ( GameState gameState ) : void
gameState GameState
return void

EndTurn() public method

public EndTurn ( PlayerState playerState ) : void
playerState PlayerState
return void

HumanReadableGameLog() public method

public HumanReadableGameLog ( IndentedTextWriter textWriter ) : System
textWriter IndentedTextWriter
return System

HumanReadableGameLog() public method

public HumanReadableGameLog ( System textWriter ) : System
textWriter System
return System

LogDeck() public method

public LogDeck ( PlayerState playerState ) : void
playerState PlayerState
return void

PlayedCard() public method

public PlayedCard ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerBoughtCard() public method

public PlayerBoughtCard ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerChoseLocationForStash() public method

public PlayerChoseLocationForStash ( PlayerState playerState, int positions ) : void
playerState PlayerState
positions int
return void

PlayerDiscardCard() public method

public PlayerDiscardCard ( PlayerState playerState, Dominion.Card card, DeckPlacement source ) : void
playerState PlayerState
card Dominion.Card
source DeckPlacement
return void

PlayerGainedActions() public method

public PlayerGainedActions ( PlayerState playerState, int actionAmount ) : void
playerState PlayerState
actionAmount int
return void

PlayerGainedBuys() public method

public PlayerGainedBuys ( PlayerState playerState, int buyAmount ) : void
playerState PlayerState
buyAmount int
return void

PlayerGainedCard() public method

public PlayerGainedCard ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerGainedCoin() public method

public PlayerGainedCoin ( PlayerState playerState, int coinAmount ) : void
playerState PlayerState
coinAmount int
return void

PlayerGainedCoinToken() public method

public PlayerGainedCoinToken ( PlayerState playerState, int coinAmount ) : void
playerState PlayerState
coinAmount int
return void

PlayerGainedPotion() public method

public PlayerGainedPotion ( PlayerState playerState, int count ) : void
playerState PlayerState
count int
return void

PlayerGainedVictoryTokens() public method

public PlayerGainedVictoryTokens ( PlayerState playerState, int amount ) : void
playerState PlayerState
amount int
return void

PlayerNamedCard() public method

public PlayerNamedCard ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerOverpaidForCard() public method

public PlayerOverpaidForCard ( Dominion.Card boughtCard, int overPayAmount ) : void
boughtCard Dominion.Card
overPayAmount int
return void

PlayerPlacedCardOnIslandMat() public method

public PlayerPlacedCardOnIslandMat ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerPlacedCardOnNativeVillageMat() public method

public PlayerPlacedCardOnNativeVillageMat ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerPlacedCardOnTavernMat() public method

public PlayerPlacedCardOnTavernMat ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerPutCardInHand() public method

public PlayerPutCardInHand ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerReturnedCardToHand() public method

public PlayerReturnedCardToHand ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerReturnedCardToPile() public method

public PlayerReturnedCardToPile ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerRevealedCard() public method

public PlayerRevealedCard ( PlayerState playerState, Dominion.Card card, DeckPlacement source ) : void
playerState PlayerState
card Dominion.Card
source DeckPlacement
return void

PlayerSetAsideCardFromHandForNextTurn() public method

public PlayerSetAsideCardFromHandForNextTurn ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerTopDeckedCard() public method

public PlayerTopDeckedCard ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PlayerTrashedCard() public method

public PlayerTrashedCard ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

PopScope() public method

public PopScope ( ) : void
return void

PushScope() public method

public PushScope ( ) : void
return void

ReceivedDurationEffectFrom() public method

public ReceivedDurationEffectFrom ( PlayerState playerState, Dominion.Card card ) : void
playerState PlayerState
card Dominion.Card
return void

ReshuffledDiscardIntoDeck() public method

public ReshuffledDiscardIntoDeck ( PlayerState playerState ) : void
playerState PlayerState
return void

StartGame() public method

public StartGame ( GameState gameState ) : void
gameState GameState
return void

WriteAllCards() public static method

public static WriteAllCards ( IEnumerable cards, System textWriter ) : void
cards IEnumerable
textWriter System
return void