Esempio n. 1
0
 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;
 }
Esempio n. 3
0
 public GameTableService(IGamerService gamerService, IGameTableRepository gameTableRepository,
                         IBoardGameService boardGameService,
                         IGameParticipationService gameParticipationService, IGameResultRepository gameResultRepository)
 {
     _gamerService             = gamerService;
     _gameTableRepository      = gameTableRepository;
     _boardGameService         = boardGameService;
     _gameParticipationService = gameParticipationService;
     _gameResultRepository     = gameResultRepository;
 }
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
 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.");
     }
 }
Esempio n. 6
0
 public HomeController(IGamerService gamerService)
 {
     _gamerService = gamerService;
 }
Esempio n. 7
0
 public void Add(IGamerService gamerService)
 {
     Console.WriteLine(gamerService.Name + " " + gamerService.LastName + " " + "adlı oyuncu sisteme eklenmiştir! ");
 }
Esempio n. 8
0
 public void Delete(IGamerService gamerService)
 {
     Console.WriteLine(gamerService.Name + " " + gamerService.LastName + " " + "adlı oyuncu sistemden silinmiştir! ");
 }
Esempio n. 9
0
 public void Update(IGamerService gamerService)
 {
     Console.WriteLine(gamerService.Name + " " + gamerService.LastName + " " + "adlı oyuncu sistemde güncellenmiştir! ");
 }
Esempio n. 10
0
 public SaveGamerCommand(IGamerService service)
 {
     _service = service;
 }
 public GamerBoardGameController(IGamerBoardGameService gamerBoardGameService,
                                 IGamerService gamerService)
 {
     _gamerBoardGameService = gamerBoardGameService;
     _gamerService          = gamerService;
 }
 public GamersController(IGamerService gamerService)
 {
     _gamerService = gamerService;
 }
Esempio n. 13
0
 public GamerViewModel(IGamerService service)
 {
     GetGamerCommand  = new GetGamerCommand(service);
     SaveGamerCommand = new SaveGamerCommand(service);
 }
Esempio n. 14
0
 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);
 }
Esempio n. 15
0
 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.");
     }
 }
Esempio n. 16
0
 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");
 }
Esempio n. 18
0
 public GetGamerCommand(IGamerService service)
 {
     _service = service;
 }