示例#1
0
 public IconGroupConstArg(
     IUIManager uim,
     IPickUpSystemProcessFactory pickUpSystemProcessFactory,
     IPickUpSystemUIElementFactory pickUpSystemUIElementFactory,
     IPickUpSystemUIA pickUpSyatemUIA,
     IUIImage image,
     IUITool tool,
     IItemIconTransactionManager iiTAM,
     int minSize,
     int maxSize,
     IHoverPadsManager hoverPadsManager,
     List <IItemIcon> iis
     ) : base(
         uim,
         pickUpSystemProcessFactory,
         pickUpSystemUIElementFactory,
         image,
         pickUpSyatemUIA,
         ActivationMode.None
         )
 {
     thisIITAM            = iiTAM;
     thisMinSize          = minSize;
     thisMaxSize          = maxSize;
     thisHoverPadsManager = hoverPadsManager;
     thisIIs = iis;
 }
示例#2
0
 public DragImageImplementorConstArg(float dragThreshold, float smoothCoefficient, IPickUpSystemProcessFactory pickUpSystemProcessFactory, IPickUpManager pickUpManager)
 {
     thisDragThreshold              = dragThreshold;
     thisSmoothCoefficient          = smoothCoefficient;
     thisPickUpSystemProcessFactory = pickUpSystemProcessFactory;
     thisPickUpManager              = pickUpManager;
 }
示例#3
0
 public EmptifyingState(
     IItemIconEmptinessStateEngine stateEngine, IPickUpSystemProcessFactory pickUpSystemProcessFactory
     ) : base(
         stateEngine
         )
 {
     thisProcessFactory = pickUpSystemProcessFactory;
 }
示例#4
0
 public ItemIconEmptinessStateEngine(IPickUpSystemProcessFactory processFactory)
 {
     /* inst and set states here */
     thisWaitingForImageInitState  = new WaitingForImageInitState(this);
     thisDisemptifyingState        = new DisemptifyingState(this, processFactory);
     thisWaitingForEmptifyState    = new WaitingForEmptifyState(this);
     thisEmptifyingState           = new EmptifyingState(this, processFactory);
     thisWaitingForDisemptifyState = new WaitingForDisemptifyState(this);
 }
示例#5
0
 public ItemIconConstArg(IUIManager uim, IPickUpSystemProcessFactory pickUpSystemProcessFactory, IPickUpSystemUIElementFactory pickUpSystemUIElementFactory, IItemIconUIAdaptor iiUIA, IItemIconImage itemIconImage, IUITool tool, IDragImageImplementor dragImageImplementor, IVisualPickednessStateEngine visualPickednessStateEngine, IItemIconTransactionManager iiTAM, IUIItem item, IItemIconTransactionStateEngine iiTAStateEngine, IItemIconPickUpImplementor pickUpImplementor, IItemIconEmptinessStateEngine emptinessStateEngine, ITransferabilityHandlerImplementor transferabilityHandlerImplementor, IQuantityRoller quantityRoller) : base(uim, pickUpSystemProcessFactory, pickUpSystemUIElementFactory, iiUIA, itemIconImage, tool, dragImageImplementor, visualPickednessStateEngine)
 {
     thisIITAM                = iiTAM;
     thisItem                 = item;
     thisIITAStateEngine      = iiTAStateEngine;
     thisIIPickUpImplementor  = iiPickUpImplementor;
     thisEmptinessStateEngine = emptinessStateEngine;
     thisQuantityRoller       = quantityRoller;
 }
 public VisualPickednessStateEngine(IPickUpSystemProcessFactory pickUpSystemProcessFactory)
 {
     thisVisuallyUnpickedState         = new VisuallyUnpickedState(this);
     thisBecomingVisuallyPickedUpState = new BecomingVisuallyPickedUpState(this, pickUpSystemProcessFactory);
     thisVisuallyPickedUpState         = new VisuallyPickedUpState(this);
     thisBecomingVisuallyUnpickedState = new BecomingVisuallyUnpickedState(this, pickUpSystemProcessFactory);
     thisStates = new List <IVisualPickednessState>(new IVisualPickednessState[] {
         thisVisuallyUnpickedState,
         thisBecomingVisuallyPickedUpState,
         thisVisuallyUnpickedState,
         thisBecomingVisuallyUnpickedState
     });
 }
    /*  */
    public EquipToolEquippedItemsPanel CreateEqpToolEqpItemsPanel(out IEquipToolPanelConstArg arg)
    {
        IUIManager uim = Substitute.For <IUIManager>();
        IPickUpSystemProcessFactory pickUpSystemProcessFactory = Substitute.For <IPickUpSystemProcessFactory>();
        IEquipToolUIEFactory        equipToolUIEFactory        = Substitute.For <IEquipToolUIEFactory>();
        IUIAdaptor                   uia           = Substitute.For <IUIAdaptor>();
        IUIImage                     image         = Substitute.For <IUIImage>();
        IEquippableIITAManager       eqpIITAM      = Substitute.For <IEquippableIITAManager>();
        IEquipTool                   eqpTool       = Substitute.For <IEquipTool>();
        IPanelTransactionStateEngine engine        = Substitute.For <IPanelTransactionStateEngine>();
        IEquipToolPanelConstArg      thisArg       = new EquipToolPanelConstArg(uim, pickUpSystemProcessFactory, equipToolUIEFactory, uia, image, eqpTool, eqpIITAM, engine);
        EquipToolEquippedItemsPanel  eqpItemsPanel = new EquipToolEquippedItemsPanel(thisArg);

        arg = thisArg;
        return(eqpItemsPanel);
    }
    public TestIG CreateTestIG(int minSize, int maxSize, out IIconGroupConstArg arg)
    {
        IUIManager uim = Substitute.For <IUIManager>();
        IPickUpSystemProcessFactory   pickUpSystemProcessFactory   = Substitute.For <IPickUpSystemProcessFactory>();
        IPickUpSystemUIElementFactory pickUpSystemUIElementFactory = Substitute.For <IPickUpSystemUIElementFactory>();
        IPickUpSystemUIA            pickUpSystemUIA  = Substitute.For <IPickUpSystemUIA>();
        IUIImage                    image            = Substitute.For <IUIImage>();
        IUITool                     tool             = Substitute.For <IUITool>();
        IItemIconTransactionManager iiTAM            = Substitute.For <IItemIconTransactionManager>();
        IHoverPadsManager           hoverPadsManager = Substitute.For <IHoverPadsManager>();
        List <IItemIcon>            iis = new List <IItemIcon>();

        IIconGroupConstArg thisArg = new IconGroupConstArg(uim, pickUpSystemProcessFactory, pickUpSystemUIElementFactory, pickUpSystemUIA, image, tool, iiTAM, minSize, maxSize, hoverPadsManager, iis);
        TestIG             testIG  = new TestIG(thisArg);

        arg = thisArg;
        return(testIG);
    }
        public PickUpSystemUIEConstArg(
            IUIManager uim,
            IPickUpSystemProcessFactory pickUpSystemProcessFactory,
            IPickUpSystemUIElementFactory pickUpSystemUIElementFactory,
            IUIImage image,
            IPickUpSystemUIA pickUpSystemUIA,
            ActivationMode activationMode
            ) : base(
                uim,
                pickUpSystemProcessFactory,
                pickUpSystemUIElementFactory,
                pickUpSystemUIA,
                image,
                activationMode

                )
        {
            thisPickUpSystemProcessFactory   = pickUpSystemProcessFactory;
            thisPickupSystemUIElementFactory = pickUpSystemUIElementFactory;
        }
示例#10
0
 public PickableUIEConstArg(
     IUIManager uim,
     IPickUpSystemProcessFactory pickUpSystemProcessFactory,
     IPickUpSystemUIElementFactory pickUpSystemUIElementFactory,
     IUIAdaptor uia,
     IPickableUIImage pickableUIImage,
     IUITool tool,
     IDragImageImplementor dragImageImplementor,
     IVisualPickednessStateEngine visualPickednessStateEngine
     ) : base(
         uim,
         pickUpSystemProcessFactory,
         pickUpSystemUIElementFactory,
         uia,
         pickableUIImage,
         ActivationMode.None
         )
 {
     thisDragImageImplementor        = dragImageImplementor;
     thisVisualPickednessStateEngien = visualPickednessStateEngine;
 }
示例#11
0
    /*  */
    public TestEqpII CreateTestEqpII(out IEquippableItemIconConstArg arg)
    {
        IEquippableItemIconConstArg thisArg = Substitute.For <IEquippableItemIconConstArg>();
        IUIManager uim = Substitute.For <IUIManager>();

        thisArg.uim.Returns(uim);
        IPickUpSystemProcessFactory pickUpSystemProcessFactory = Substitute.For <IPickUpSystemProcessFactory>();

        thisArg.processFactory.Returns(pickUpSystemProcessFactory);
        IEquipToolUIEFactory eqpToolUIEFactory = Substitute.For <IEquipToolUIEFactory>();

        thisArg.uiElementFactory.Returns(eqpToolUIEFactory);
        IEquippableItemIconAdaptor eqpIIUIA = Substitute.For <IEquippableItemIconAdaptor>();

        thisArg.uia.Returns(eqpIIUIA);
        IItemIconImage itemIconImage = Substitute.For <IItemIconImage>();

        thisArg.image.Returns(itemIconImage);
        IEquippableIITAManager eqpIITAM = Substitute.For <IEquippableIITAManager>();

        thisArg.iiTAM.Returns(eqpIITAM);
        IEquippableUIItem eqpItem = Substitute.For <IEquippableUIItem>();

        thisArg.item.Returns(eqpItem);
        IEqpIITransactionStateEngine eqpIITAStateEngine = Substitute.For <IEqpIITransactionStateEngine>();

        thisArg.iiTAStateEngine.Returns(eqpIITAStateEngine);
        IItemIconEmptinessStateEngine emptinessStateEngine = Substitute.For <IItemIconEmptinessStateEngine>();

        thisArg.emptinessStateEngine.Returns(emptinessStateEngine);
        IItemIconPickUpImplementor pickUpImplementor = Substitute.For <IItemIconPickUpImplementor>();

        thisArg.iiPickUpImplementor.Returns(pickUpImplementor);

        arg = thisArg;

        TestEqpII eqpII = new TestEqpII(thisArg);

        return(eqpII);
    }
        public EquipToolPanelConstArg(
            IUIManager uim,
            IPickUpSystemProcessFactory pickUpSystemProcessFactory,
            IEquipToolUIEFactory equipToolUIEFactory,
            IUIAdaptor uia,
            IUIImage image,


            IEquipTool eqpTool,
            IEquippableIITAManager eqpIITAM,
            IPanelTransactionStateEngine engine
            ) : base(
                uim,
                pickUpSystemProcessFactory,
                equipToolUIEFactory,
                uia,
                image,
                ActivationMode.None
                )
        {
            thisEqpIITAM = eqpIITAM;
            thisPanelTransactionStateEngine = engine;
            thisEquipTool = eqpTool;
        }
示例#13
0
 public EquipToolUIEFactory(IUIManager uim, IPickUpSystemProcessFactory pickUpSystemProcessFactory, IEquipTool eqpTool, IEquippableIITAManager eqpIITAM) : base(uim)
 {
     thisEqpTool  = eqpTool;
     thisEqpIITAM = eqpIITAM;
     thisPickUpSystemProcessFactory = pickUpSystemProcessFactory;
 }
 public EquipToolUIAActivationData(IUIManager uim, IPickUpSystemProcessFactory pickUpSystemProcessFactory, IEquipToolUIEFactory equipToolUIEFactory, IEquippableIITAManager eqpIITAM, IEquipTool eqpTool) : base(uim, pickUpSystemProcessFactory, equipToolUIEFactory, eqpIITAM)
 {
     thisEqpTool = eqpTool;
 }
示例#15
0
 public BecomingVisuallyPickedUpState(IVisualPickednessStateEngine stateEngine, IPickUpSystemProcessFactory pickUpSystemProcessFactory) : base(stateEngine)
 {
     thisProcessFactory = pickUpSystemProcessFactory;
 }
示例#16
0
 public AbsPickUpSystemUIAActivationData(IUIManager uim, IPickUpSystemProcessFactory pickUpSystemProcessFactory, IPickUpSystemUIElementFactory pickUpSystemUIElementFactory, IPickUpManager pickUpManager) : base(uim, pickUpSystemProcessFactory, pickUpSystemUIElementFactory)
 {
     thisPickUpManager = pickUpManager;
 }
 public EquippableItemIconConstArg(IUIManager uim, IPickUpSystemProcessFactory pickUpSytemProcessFactory, IEquipToolUIEFactory eqpToolUIEFactory, IEquippableItemIconAdaptor uia, IItemIconImage itemIconImage, IEquipTool tool, IDragImageImplementor dragImageImplementor, IVisualPickednessStateEngine visualPickednessStateEngine, IEquippableIITAManager eqpIITAM, IEquippableUIItem item, IEqpIITransactionStateEngine eqpIITAStateEngine, IItemIconPickUpImplementor pickUpImplementor, IItemIconEmptinessStateEngine emptinessStateEngine, IEqpIITransferabilityHandlerImplementor eqpIITransferabilityHandlerImplementor, IQuantityRoller quantityRoller) : base(uim, pickUpSytemProcessFactory, eqpToolUIEFactory, uia, itemIconImage, tool, dragImageImplementor, visualPickednessStateEngine, eqpIITAM, item, eqpIITAStateEngine, pickUpImplementor, emptinessStateEngine, eqpIITransferabilityHandlerImplementor, quantityRoller)
 {
 }