C# Class Dominion.GameConfig

Mostrar archivo Open project: NathanTeeuwen/Dominulator Class Usage Examples

Public Properties

Property Type Description
cardGameSubset CardGameSubset
gameDescription GameDescription
startingDeck MapPlayerGameConfigToCardSet
startingHand MapPlayerGameConfigToCardSet

Public Methods

Method Description
GameConfig ( GameDescription gameDescription, MapPlayerGameConfigToCardSet startingDecks = null, MapPlayerGameConfigToCardSet startingHands = null ) : System
GetCardAvailability ( int numberOfPlayers, CardAvailabilityType cardAvailabilityType ) : Dominion.CardGainAvailablility[]
GetNonSupplyPiles ( int numberOfPlayers ) : Dominion.PileOfCards[]
GetSupplyPiles ( int numberOfPlayers, Random random ) : Dominion.PileOfCards[]
ShuffleLuck ( int playerIndex ) : IEnumerable
StartingDeck ( int playerIndex ) : IEnumerable

Private Methods

Method Description
CreateRuins ( CardGameSubset gameSubset, int ruinsCount, Random random ) : PileOfCards
GetPiles ( int numberOfPlayers, Random random, bool isSupply ) : Dominion.PileOfCards[]

Method Details

GameConfig() public method

public GameConfig ( GameDescription gameDescription, MapPlayerGameConfigToCardSet startingDecks = null, MapPlayerGameConfigToCardSet startingHands = null ) : System
gameDescription GameDescription
startingDecks MapPlayerGameConfigToCardSet
startingHands MapPlayerGameConfigToCardSet
return System

GetCardAvailability() public method

public GetCardAvailability ( int numberOfPlayers, CardAvailabilityType cardAvailabilityType ) : Dominion.CardGainAvailablility[]
numberOfPlayers int
cardAvailabilityType CardAvailabilityType
return Dominion.CardGainAvailablility[]

GetNonSupplyPiles() public method

public GetNonSupplyPiles ( int numberOfPlayers ) : Dominion.PileOfCards[]
numberOfPlayers int
return Dominion.PileOfCards[]

GetSupplyPiles() public method

public GetSupplyPiles ( int numberOfPlayers, Random random ) : Dominion.PileOfCards[]
numberOfPlayers int
random System.Random
return Dominion.PileOfCards[]

ShuffleLuck() public method

public ShuffleLuck ( int playerIndex ) : IEnumerable
playerIndex int
return IEnumerable

StartingDeck() public method

public StartingDeck ( int playerIndex ) : IEnumerable
playerIndex int
return IEnumerable

Property Details

cardGameSubset public_oe property

public CardGameSubset cardGameSubset
return CardGameSubset

gameDescription public_oe property

public GameDescription,Dominion gameDescription
return GameDescription

startingDeck public_oe property

public MapPlayerGameConfigToCardSet startingDeck
return MapPlayerGameConfigToCardSet

startingHand public_oe property

public MapPlayerGameConfigToCardSet startingHand
return MapPlayerGameConfigToCardSet