C# Class Game.TankBlaster.Services.BotService

Exibir arquivo Open project: michalczerwinski/hello_wars Class Usage Examples

Public Methods

Method Description
BotService ( Game.TankBlaster.Models.Battlefield field, Game.TankBlaster.Models.TankBlasterConfig config, Game.TankBlaster.Services.LocationService locationService ) : System
GetBotResults ( ) : double>.Dictionary
PlayBotMovesAsync ( int delayTime, int roundNumber ) : Task
SetUpBots ( IEnumerable competitors ) : void

Private Methods

Method Description
CurrentBombBlastRadius ( int roundNumber ) : int
CurrentMissileBlastRadius ( int roundNumber ) : int
GetBotBattlefieldInfo ( TankBlasterBot bot, int roundNumber ) : BotBattlefieldInfo
GetBotRandomStartupLocation ( ) : Point
IsMoveValid ( TankBlasterBot bot, Game.TankBlaster.Models.BotMove move ) : bool
MissileAvailableIn ( TankBlasterBot bot, int roundNumber ) : int
PerformMove ( TankBlasterBot bot, Game.TankBlaster.Models.BotMove move, int roundNumber ) : Common.Models.RoundPartialHistory

Method Details

BotService() public method

public BotService ( Game.TankBlaster.Models.Battlefield field, Game.TankBlaster.Models.TankBlasterConfig config, Game.TankBlaster.Services.LocationService locationService ) : System
field Game.TankBlaster.Models.Battlefield
config Game.TankBlaster.Models.TankBlasterConfig
locationService Game.TankBlaster.Services.LocationService
return System

GetBotResults() public method

public GetBotResults ( ) : double>.Dictionary
return double>.Dictionary

PlayBotMovesAsync() public method

public PlayBotMovesAsync ( int delayTime, int roundNumber ) : Task
delayTime int
roundNumber int
return Task

SetUpBots() public method

public SetUpBots ( IEnumerable competitors ) : void
competitors IEnumerable
return void