Exemple #1
0
        public RoverTest()
        {
            var containerFactory = new ContainerFactory();

            context          = containerFactory.Resolve <IModuleContext>();
            directionManager = context.Resolve <IDirectionManager>();
        }
        public MoveCommandTests()
        {
            var factory = new ContainerFactory();

            context          = factory.Resolve <IModuleContext>();
            directionManager = context.Resolve <IDirectionManager>();
            commandManager   = context.Resolve <ICommandManager>();
        }
 public TranslateDirection(ISQLiteTesting dbHelper, IDirectionManager directionManager, ILanguageManager languageManager)
 {
     this.db = dbHelper;
     this.directionManager = directionManager;
     this.languageManager = languageManager;
     this.LanguageFrom = languageManager.GetItemForNameEng("English");
     this.LanguageTo = languageManager.GetItemForNameEng("Russian");
 }
Exemple #4
0
        static Program()
        {
            var containerFactory = new ContainerFactory();
            var container        = containerFactory.Get();

            PlanetManager    = container.Resolve <IPlanetManager>();
            RoverManager     = container.Resolve <IRoverManager>();
            DirectionManager = containerFactory.Resolve <IDirectionManager>();
            CommandManager   = containerFactory.Resolve <ICommandManager>();
        }
 void Awake()
 {
     anim               = GetComponent <Animator> ();
     rb                 = GetComponent <Rigidbody2D> ();
     colliders          = transform.Find("Colliders").gameObject;
     playerWeapons      = GetComponent <PlayerWeapons> ();
     movementController = GetComponent <IMovement> ();
     jumpingController  = GetComponent <IJumpingController> ();
     dashingController  = GetComponent <IDashing> ();
     playerDamageable   = GetComponent <PlayerDamageable> ();
     directionManager   = GetComponent <IDirectionManager> ();
     wallClimbing       = GetComponent <WallClimbing>();
 }
Exemple #6
0
 public CommandProvider(IDirectionManager directionManager, ITimerProvider timerProvider, Form form)
 {
     commands = new List <Command>
     {
         new StartTimerCommand(timerProvider, new[] { Keys.Left, Keys.Right, Keys.Up, Keys.Down }),
         new StopTimerCommand(timerProvider, new[] { Keys.Return }),
         new LeftDirectionCommand(directionManager, new[] { Keys.Left }),
         new RightDirectionCommand(directionManager, new[] { Keys.Right }),
         new UpDirectionCommand(directionManager, new[] { Keys.Up }),
         new DownDirectionCommand(directionManager, new[] { Keys.Down }),
         new NoneDirectionCommand(directionManager, new[] { Keys.Return }),
         new CenterCommand(form, new[] { Keys.Return }),
     };
 }
 public DownDirectionCommand(IDirectionManager directionManager, IEnumerable <Keys> keys) :
     base(directionManager, keys)
 {
 }
Exemple #8
0
 public TileTests()
 {
     directionManager = new ContainerFactory().Resolve <IDirectionManager>();
 }
Exemple #9
0
 public ChangeDirectionCommand(IDirectionManager directionManager, IEnumerable <Keys> keys) :
     base(keys)
 {
     this.directionManager = directionManager;
 }
 public RotationCommandHandler(IDirectionManager directionManager)
 {
     this.directionManager = directionManager;
 }
Exemple #11
0
 public BorderCollider(IBorderProvider borderProvider, DirectionManager directionManager)
 {
     this.borderProvider   = borderProvider;
     this.directionManager = directionManager;
 }