Esempio n. 1
0
        public bool TryMoveTurtle(Turtle turtle, MoveType moveType, int maxPositionX, int maxPositionY)
        {
            var moveManager = _diFactory.GetRegisteredType <IMoveManager, MoveType>(moveType);

            return(moveManager.TryMoveTurtle(turtle, maxPositionX, maxPositionY));
        }
Esempio n. 2
0
        public ResultType GetResult(TileType tileType)
        {
            var tileManager = _diFactory.GetRegisteredType <ITileManager, TileType>(tileType);

            return(tileManager.GetResult());
        }