C# Class Tcg.Core.Player

Inheritance: IPlayer
显示文件 Open project: Betclic/CodingDojo-Katas Class Usage Examples

Public Methods

Method Description
DetermineNextMoveAsync ( IPlayer opponentPlayer ) : Task
GetNumberOfDeckCardsWithManaCost ( int cardValue ) : int
PlayCard ( Card card, IPlayer opponent ) : void
Player ( string name = null, Strategy strategy = null ) : System
Player ( string name, int health, int mana, int manaSlots, List deck, List hand, Strategy strategy = null ) : System
ReceiveDamage ( int damage ) : void
ReceiveHealth ( int health ) : void

Method Details

DetermineNextMoveAsync() public method

public DetermineNextMoveAsync ( IPlayer opponentPlayer ) : Task
opponentPlayer IPlayer
return Task

GetNumberOfDeckCardsWithManaCost() public method

public GetNumberOfDeckCardsWithManaCost ( int cardValue ) : int
cardValue int
return int

PlayCard() public method

public PlayCard ( Card card, IPlayer opponent ) : void
card Card
opponent IPlayer
return void

Player() public method

public Player ( string name = null, Strategy strategy = null ) : System
name string
strategy Strategy
return System

Player() public method

public Player ( string name, int health, int mana, int manaSlots, List deck, List hand, Strategy strategy = null ) : System
name string
health int
mana int
manaSlots int
deck List
hand List
strategy Strategy
return System

ReceiveDamage() public method

public ReceiveDamage ( int damage ) : void
damage int
return void

ReceiveHealth() public method

public ReceiveHealth ( int health ) : void
health int
return void