C# Class WindBot.Game.AI.Executor

Exibir arquivo Open project: SalvationDevelopment/windbot

Public Methods

Method Description
AddExecutor ( ExecutorType type ) : void
AddExecutor ( ExecutorType type, Func func ) : void
AddExecutor ( ExecutorType type, int cardId ) : void
AddExecutor ( ExecutorType type, int cardId, Func func ) : void
ChainContainsCard ( int id ) : bool
ChainCountPlayer ( int player ) : int
GetLastChainCard ( ) : ClientCard
HasChainedTrap ( int player ) : bool
OnBattle ( IList attackers, IList defenders ) : BattlePhaseAction
OnChainEnd ( ) : void
OnChaining ( int player, ClientCard card ) : void
OnPreBattleBetween ( ClientCard attacker, ClientCard defender ) : bool
OnSelectCard ( IList cards, int min, int max, bool cancelable ) : IList
OnSelectHand ( ) : bool
OnSelectYesNo ( int desc ) : bool
SetBattle ( BattlePhase battle ) : void
SetCard ( ExecutorType type, ClientCard card, int description ) : void
SetMain ( MainPhase main ) : void

Protected Methods

Method Description
Executor ( GameAI ai, Duel duel ) : System

Private Methods

Method Description
DefaultNoExecutor ( ) : bool

Method Details

AddExecutor() public method

public AddExecutor ( ExecutorType type ) : void
type ExecutorType
return void

AddExecutor() public method

public AddExecutor ( ExecutorType type, Func func ) : void
type ExecutorType
func Func
return void

AddExecutor() public method

public AddExecutor ( ExecutorType type, int cardId ) : void
type ExecutorType
cardId int
return void

AddExecutor() public method

public AddExecutor ( ExecutorType type, int cardId, Func func ) : void
type ExecutorType
cardId int
func Func
return void

ChainContainsCard() public method

public ChainContainsCard ( int id ) : bool
id int
return bool

ChainCountPlayer() public method

public ChainCountPlayer ( int player ) : int
player int
return int

Executor() protected method

protected Executor ( GameAI ai, Duel duel ) : System
ai GameAI
duel Duel
return System

GetLastChainCard() public method

public GetLastChainCard ( ) : ClientCard
return ClientCard

HasChainedTrap() public method

public HasChainedTrap ( int player ) : bool
player int
return bool

OnBattle() public method

public OnBattle ( IList attackers, IList defenders ) : BattlePhaseAction
attackers IList
defenders IList
return BattlePhaseAction

OnChainEnd() public method

public OnChainEnd ( ) : void
return void

OnChaining() public method

public OnChaining ( int player, ClientCard card ) : void
player int
card ClientCard
return void

OnPreBattleBetween() public method

public OnPreBattleBetween ( ClientCard attacker, ClientCard defender ) : bool
attacker ClientCard
defender ClientCard
return bool

OnSelectCard() public method

public OnSelectCard ( IList cards, int min, int max, bool cancelable ) : IList
cards IList
min int
max int
cancelable bool
return IList

OnSelectHand() public method

public OnSelectHand ( ) : bool
return bool

OnSelectYesNo() public method

public OnSelectYesNo ( int desc ) : bool
desc int
return bool

SetBattle() public method

public SetBattle ( BattlePhase battle ) : void
battle BattlePhase
return void

SetCard() public method

public SetCard ( ExecutorType type, ClientCard card, int description ) : void
type ExecutorType
card ClientCard
description int
return void

SetMain() public method

public SetMain ( MainPhase main ) : void
main MainPhase
return void