public MainPresenter(IMainForm mainForm, IQuestionService questionService, IGamerService gamerService) { this.mainForm = mainForm; this.questionService = questionService; this.gamerService = gamerService; EventSubscription(); }
public GameResultController(IGameResultService gameResultService, IBoardGameService boardGameService, IGamerService gamerService) { _gameResultService = gameResultService; _boardGameService = boardGameService; _gamerService = gamerService; }
public GameTableService(IGamerService gamerService, IGameTableRepository gameTableRepository, IBoardGameService boardGameService, IGameParticipationService gameParticipationService, IGameResultRepository gameResultRepository) { _gamerService = gamerService; _gameTableRepository = gameTableRepository; _boardGameService = boardGameService; _gameParticipationService = gameParticipationService; _gameResultRepository = gameResultRepository; }
public void Init(Pool pool, IGamerService gamerService, ICurrencyService currencyService) { this.pool = pool; this.gamerService = gamerService; this.currencyService = currencyService; group = pool.GetGroup(Matcher.ShipModel); prepare(); if (IsUpgradeInProgress()) registerUpgradeCall(); }
public void Sell(IUser gamer, Game game, IGamerService gamerManager, IGameService gameManager) { if (gamerManager.Result() == true && gameManager.Result() == true) { Console.WriteLine(gamer.FirstName + " " + gamer.LastName + " " + game.GameName + " oyununu " + game.GamePrice + " TL'ye satın aldı"); } else if (gamerManager.Result() == false) { Console.WriteLine("Oyuncu kayıtlı değildir."); } else if (gameManager.Result() == false) { Console.WriteLine("Sistemde böyle bir oyun yoktur."); } }
public HomeController(IGamerService gamerService) { _gamerService = gamerService; }
public void Add(IGamerService gamerService) { Console.WriteLine(gamerService.Name + " " + gamerService.LastName + " " + "adlı oyuncu sisteme eklenmiştir! "); }
public void Delete(IGamerService gamerService) { Console.WriteLine(gamerService.Name + " " + gamerService.LastName + " " + "adlı oyuncu sistemden silinmiştir! "); }
public void Update(IGamerService gamerService) { Console.WriteLine(gamerService.Name + " " + gamerService.LastName + " " + "adlı oyuncu sistemde güncellenmiştir! "); }
public SaveGamerCommand(IGamerService service) { _service = service; }
public GamerBoardGameController(IGamerBoardGameService gamerBoardGameService, IGamerService gamerService) { _gamerBoardGameService = gamerBoardGameService; _gamerService = gamerService; }
public GamersController(IGamerService gamerService) { _gamerService = gamerService; }
public GamerViewModel(IGamerService service) { GetGamerCommand = new GetGamerCommand(service); SaveGamerCommand = new SaveGamerCommand(service); }
private void createServices() { timeService = new TimeService(); eventService = new EventService(); uiFactoryService = new UIFactoryService(); wwwService = new FakeWwwService();//controller.GameObject.AddComponent<WwwService>(); viewService = new ViewService(eventService, uiFactoryService); loadService = new LoadService(eventService); gameService = new GameService(pool, viewService); pathService = new PathService(pool, wwwService, eventService); levelService = new LevelService(wwwService, eventService); enemyService = new EnemyService(pool, wwwService, eventService); bonusService = new BonusService(pool, wwwService, eventService); difficultyService = new DifficultyService(pool, wwwService, eventService); infoService = new InfoService(viewService, uiFactoryService, eventService); settingsService = new SettingsService(pool); translationService = new TranslationService(settingsService); languageService = new LanguageService(wwwService, eventService); analyticsService = new AnalyticsService(settingsService); shipService = new ShipService(timeService, eventService); gamerService = new GamerService(eventService); currencyService = new CurrencyService(eventService, gamerService); iapService = new IAPService(eventService); adService = new AdService(currencyService); shopService = new ShopService(currencyService, eventService, iapService); updateables.Add(infoService); }
public void Sell(IUser gamer, Game game, Campaign campaign, ICampaignService campaignManager, IGamerService gamerManager, IGameService gameManager) { if (gamerManager.Result() == true && gameManager.Result() == true && campaignManager.Result() == true) { float discountAmount = game.GamePrice * campaign.DiscountRate / 100; float price = game.GamePrice - discountAmount; Console.WriteLine(gamer.FirstName + " " + gamer.LastName + " için " + campaign.CampaignName + " kampanyası uygulandı."); Console.WriteLine(gamer.FirstName + " " + gamer.LastName + " " + game.GameName + " oyununu " + price + " TL'ye satın aldı"); } else if (gamerManager.Result() == false) { Console.WriteLine("Oyuncu kayıtlı değildir."); } else if (gameManager.Result() == false) { Console.WriteLine("Sistemde böyle bir oyun yoktur."); } else if (campaignManager.Result() == false) { Console.WriteLine("Sistemde oluşturulmuş kampanya bulunmamaktadır.Kampanya seçimi yapmadan devam edebilirsiniz."); } }
public void Dıscount(Games games, IGamerService gamerService) { Console.WriteLine(gamerService.Name + " " + gamerService.LastName + " " + "adlı oyuncu" + " " + games.GameName + " " + "Adlı oyunu" + " " + games.GamePrice + " " + "Tl'ye satın aldı"); }
void IGameSaleService.Sale(IGamerService gamer) { Console.WriteLine("Product Selled"); }
public GetGamerCommand(IGamerService service) { _service = service; }