public NpcMover(INpcToRightMover npcToRightMover, INpcToLeftMover npcToLeftMover, INpcToUpMover npcToUpMover, INpcToDownMover npcToDownMover, INpcDeleter npcDeleter)
 {
     _npcToRightMover = npcToRightMover;
     _npcToLeftMover  = npcToLeftMover;
     _npcToUpMover    = npcToUpMover;
     _npcToDownMover  = npcToDownMover;
     _npcDeleter      = npcDeleter;
 }
Example #2
0
        public void Setup()
        {
            _mockedGameModel = new Mock <IGameModel>();
            _testNpc         = new NonPlayableCharacter(MoveDirection.Down);

            _testMap = TestMapGenerator.GenerateMap(_testNpc);

            _mockedGameModel.Setup(x => x.GetMap).Returns(_testMap);

            _npcToDownMover = new NpcToDownMover(_mockedGameModel.Object, new PositionFinder(), new NpcTurner());
        }