C# Class WindBot.Game.AI.Executor

Afficher le fichier Open project: SalvationDevelopment/windbot

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Executor ( GameAI ai, Duel duel ) : System

Private Methods

Méthode Description
DefaultNoExecutor ( ) : bool

Method Details

AddExecutor() public méthode

public AddExecutor ( ExecutorType type ) : void
type ExecutorType
Résultat void

AddExecutor() public méthode

public AddExecutor ( ExecutorType type, Func func ) : void
type ExecutorType
func Func
Résultat void

AddExecutor() public méthode

public AddExecutor ( ExecutorType type, int cardId ) : void
type ExecutorType
cardId int
Résultat void

AddExecutor() public méthode

public AddExecutor ( ExecutorType type, int cardId, Func func ) : void
type ExecutorType
cardId int
func Func
Résultat void

ChainContainsCard() public méthode

public ChainContainsCard ( int id ) : bool
id int
Résultat bool

ChainCountPlayer() public méthode

public ChainCountPlayer ( int player ) : int
player int
Résultat int

Executor() protected méthode

protected Executor ( GameAI ai, Duel duel ) : System
ai GameAI
duel Duel
Résultat System

GetLastChainCard() public méthode

public GetLastChainCard ( ) : ClientCard
Résultat ClientCard

HasChainedTrap() public méthode

public HasChainedTrap ( int player ) : bool
player int
Résultat bool

OnBattle() public méthode

public OnBattle ( IList attackers, IList defenders ) : BattlePhaseAction
attackers IList
defenders IList
Résultat BattlePhaseAction

OnChainEnd() public méthode

public OnChainEnd ( ) : void
Résultat void

OnChaining() public méthode

public OnChaining ( int player, ClientCard card ) : void
player int
card ClientCard
Résultat void

OnPreBattleBetween() public méthode

public OnPreBattleBetween ( ClientCard attacker, ClientCard defender ) : bool
attacker ClientCard
defender ClientCard
Résultat bool

OnSelectCard() public méthode

public OnSelectCard ( IList cards, int min, int max, bool cancelable ) : IList
cards IList
min int
max int
cancelable bool
Résultat IList

OnSelectHand() public méthode

public OnSelectHand ( ) : bool
Résultat bool

OnSelectYesNo() public méthode

public OnSelectYesNo ( int desc ) : bool
desc int
Résultat bool

SetBattle() public méthode

public SetBattle ( BattlePhase battle ) : void
battle BattlePhase
Résultat void

SetCard() public méthode

public SetCard ( ExecutorType type, ClientCard card, int description ) : void
type ExecutorType
card ClientCard
description int
Résultat void

SetMain() public méthode

public SetMain ( MainPhase main ) : void
main MainPhase
Résultat void