C# 클래스 Tcg.Core.Player

상속: IPlayer
파일 보기 프로젝트 열기: Betclic/CodingDojo-Katas 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

DetermineNextMoveAsync() 공개 메소드

public DetermineNextMoveAsync ( IPlayer opponentPlayer ) : Task
opponentPlayer IPlayer
리턴 Task

GetNumberOfDeckCardsWithManaCost() 공개 메소드

public GetNumberOfDeckCardsWithManaCost ( int cardValue ) : int
cardValue int
리턴 int

PlayCard() 공개 메소드

public PlayCard ( Card card, IPlayer opponent ) : void
card Card
opponent IPlayer
리턴 void

Player() 공개 메소드

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

Player() 공개 메소드

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
리턴 System

ReceiveDamage() 공개 메소드

public ReceiveDamage ( int damage ) : void
damage int
리턴 void

ReceiveHealth() 공개 메소드

public ReceiveHealth ( int health ) : void
health int
리턴 void