public static void CreateBattleground(int rows, int collumns, AntWarsViewModel antWarsViewModel) { _antWarsViewModel = antWarsViewModel; _antWarsViewModel.RowCount = rows; _antWarsViewModel.ColumnCount = collumns; _antWarsViewModel.BattlegroundWidth = _antWarsViewModel.RowCount * BATTLEFIELD_UNIT_HEIGTH; _antWarsViewModel.BattlegroundHeigth = _antWarsViewModel.ColumnCount * BATTLEFIELD_UNIT_WIDTH; InitiateBattlefield(); }
public static void CreateBattleground(int rows, int collumns, AntWarsViewModel antWarsViewModel) { _antWarsViewModel = antWarsViewModel; _antWarsViewModel.RowCount = rows; _antWarsViewModel.ColumnCount = collumns; _antWarsViewModel.BattlegroundWidth = _antWarsViewModel.RowCount * BattlefieldUnitHeigth; _antWarsViewModel.BattlegroundHeigth = _antWarsViewModel.ColumnCount * BattlefieldUnitWidth; InitiateBattlefield(); }
public UserControl GetVisualisationUserControl(IConfigurable configuration) { _antWarsViewModel = new AntWarsViewModel(); _movementService = new MovementService(_antWarsViewModel); _botService = new BotService(_antWarsViewModel); return new AntWarsUserControl(_antWarsViewModel); }
public BotService(AntWarsViewModel antWarsViewModel) { _antWarsViewModel = antWarsViewModel; }
public MovementService(AntWarsViewModel antWarsViewModel) { _antWarsViewModel = antWarsViewModel; _listOfMissilesToFire = new List<MissileModel>(); }
public AntWarsUserControl(AntWarsViewModel viewModel) { InitializeComponent(); DataContext = viewModel; }
public MovementPerformer(AntWarsViewModel antWarsViewModel) { _antWarsViewModel = antWarsViewModel; }