Exemple #1
0
 def create(cls, setup):
     repository = cls()
     from gui.battle_control.controllers import crosshair_proxy
     repository.addController(crosshair_proxy.CrosshairDataProxy())
     ammo = consumables.createAmmoCtrl(setup)
     repository.addController(ammo)
     repository.addController(consumables.createEquipmentCtrl(setup))
     repository.addController(consumables.createOptDevicesCtrl())
     state = vehicle_state_ctrl.createCtrl(setup)
     repository.addController(state)
     repository.addController(avatar_stats_ctrl.AvatarStatsController())
     feedback = feedback_adaptor.createFeedbackAdaptor(setup)
     messages = msgs_ctrl.createBattleMessagesCtrl(setup)
     repository.addController(feedback)
     repository.addController(messages)
     repository.addController(chat_cmd_ctrl.ChatCommandsController(setup, feedback, ammo))
     repository.addController(drr_scale_ctrl.DRRScaleController(messages))
     repository.addController(personal_efficiency_ctrl.createEfficiencyCtrl(setup, feedback, state))
     tmpIgnoreListCtrl = tmp_ignore_list_ctrl.createTmpIgnoreListCtrl(setup)
     if tmpIgnoreListCtrl is not None:
         repository.addController(tmpIgnoreListCtrl)
     repository.addArenaController(bootcamp_ctrl.BootcampController(), setup)
     repository.addArenaController(view_points_ctrl.ViewPointsController(setup), setup)
     repository.addArenaViewController(arena_load_ctrl.ArenaLoadController(), setup)
     repository.addArenaViewController(period_ctrl.createPeriodCtrl(setup), setup)
     repository.addViewController(hit_direction_ctrl.createHitDirectionController(setup), setup)
     return repository
Exemple #2
0
 def create(cls, setup):
     repository = cls()
     from gui.battle_control.controllers import crosshair_proxy
     repository.addController(crosshair_proxy.CrosshairDataProxy())
     ammo = consumables.createAmmoCtrl(setup)
     repository.addViewController(ammo, setup)
     repository.addController(consumables.createEquipmentCtrl(setup))
     repository.addController(consumables.createOptDevicesCtrl(setup))
     state = vehicle_state_ctrl.createCtrl(setup)
     repository.addController(state)
     repository.addController(avatar_stats_ctrl.AvatarStatsController())
     messages = msgs_ctrl.createBattleMessagesCtrl(setup)
     feedback = feedback_adaptor.createFeedbackAdaptor(setup)
     repository.addController(feedback)
     repository.addController(messages)
     repository.addController(
         chat_cmd_ctrl.ChatCommandsController(setup, feedback, ammo))
     repository.addController(drr_scale_ctrl.DRRScaleController(messages))
     repository.addController(
         personal_efficiency_ctrl.createEfficiencyCtrl(
             setup, feedback, state))
     repository.addController(
         korea_msgs_ctrl.createKoreaMessagesController())
     repository.addArenaController(bootcamp_ctrl.BootcampController(),
                                   setup)
     repository.addArenaController(
         quest_progress_ctrl.createQuestProgressController(), setup)
     repository.addArenaController(
         view_points_ctrl.ViewPointsController(setup), setup)
     guiVisitor = setup.arenaVisitor.gui
     if guiVisitor.isBattleRoyale():
         repository.addArenaController(
             arena_border_ctrl.BattleRoyaleBorderCtrl(), setup)
     else:
         repository.addArenaController(
             arena_border_ctrl.ArenaBorderController(), setup)
     repository.addArenaController(
         anonymizer_fakes_ctrl.AnonymizerFakesController(setup), setup)
     repository.addArenaViewController(
         prebattle_setups_ctrl.PrebattleSetupsController(), setup)
     repository.addArenaViewController(
         arena_load_ctrl.createArenaLoadController(setup), setup)
     repository.addArenaViewController(period_ctrl.createPeriodCtrl(setup),
                                       setup)
     repository.addViewController(
         hit_direction_ctrl.createHitDirectionController(setup), setup)
     repository.addViewController(
         game_messages_ctrl.createGameMessagesController(setup), setup)
     repository.addViewController(
         callout_ctrl.createCalloutController(setup), setup)
     from gui.battle_control.controllers import area_marker_ctrl
     repository.addArenaController(area_marker_ctrl.AreaMarkersController(),
                                   setup)
     repository.addArenaController(deathzones_ctrl.DeathZonesController(),
                                   setup)
     return repository
 def create(cls, setup):
     repository = cls()
     repository.addController(crosshair_proxy.CrosshairDataProxy())
     ammo = consumables.createAmmoCtrl(setup)
     repository.addController(ammo)
     repository.addController(consumables.createEquipmentCtrl(setup))
     repository.addController(consumables.createOptDevicesCtrl())
     repository.addController(vehicle_state_ctrl.createCtrl(setup))
     repository.addController(avatar_stats_ctrl.AvatarStatsController())
     feedback = feedback_adaptor.createFeedbackAdaptor(setup)
     messages = msgs_ctrl.createBattleMessagesCtrl(setup)
     repository.addController(feedback)
     repository.addController(messages)
     repository.addController(chat_cmd_ctrl.ChatCommandsController(setup, feedback, ammo))
     repository.addController(drr_scale_ctrl.DRRScaleController(messages))
     repository.addArenaController(arena_load_ctrl.ArenaLoadController(), setup)
     repository.addArenaViewController(period_ctrl.createPeriodCtrl(setup), setup)
     repository.addViewController(hit_direction_ctrl.HitDirectionController(), setup)
     return repository