public void UpdateTravellingUIE(ITravelableUIE newTravelableUIE) { thisTravelableUIE = newTravelableUIE; /* Updating prev travelableUIE's runningTravellingIrper field is taken care outside */ }
/* Travelable UIE implementation */ /* updating thisRunningTravelProcess field is taken care by travel process */ public virtual void HandOverTravel(ITravelableUIE other) { if (thisRunningTravelProcess != null) { thisRunningTravelProcess.UpdateTravellingUIEFromTo(this, other); } }
void RemoveRefToThisInTravellingUIE() { if (thisTravellingUIE != null) { thisTravellingUIE.SetRunningTravelProcess(null); thisTravellingUIE = null; } }
public TravelProcessConstArg( IProcessManager processManager, ITravelableUIE travelableUIE ) : base( processManager ) { thisTravelableUIE = travelableUIE; }
/* Travelling */ public override void HandOverTravel(ITravelableUIE other) { /* Update running travel Irper * update mutation * pass image trans info to other's ? */ base.HandOverTravel(other); FindAndSwapIIInAllMutations((IItemIcon)other); }
public ImageSmoothFollowDragPositionProcessConstArg( IProcessManager processManager, ITravelableUIE travelableUIE, IPickUpManager pickUpManager, float dragThreshold, float smoothCoefficient ) : base( processManager, travelableUIE ) { thisPickUpManager = pickUpManager; thisDragThreshold = dragThreshold; thisSmoothCoefficient = smoothCoefficient; }
public void UnregisterTravellingUIE(ITravelableUIE travellingUIE) { if (thisTravellingUIE == null) { throw new System.InvalidOperationException("this process has already been stopped or expired"); } else { if (travellingUIE != thisTravellingUIE) { throw new System.InvalidOperationException("travellingUIE must be same as thisTravellingUIE"); } else { RemoveRefToThisInTravellingUIE(); this.Stop(); } } }
public void UpdateTravellingUIEFromTo(ITravelableUIE sourceUIE, ITravelableUIE targetUIE) { if (thisTravellingUIE == null) { throw new System.InvalidOperationException("this prcess has already been stopped or expired"); } else { if (sourceUIE != thisTravellingUIE) { throw new System.InvalidOperationException("souceUIE does not match thisTravellingUIE"); } else { sourceUIE.SetRunningTravelProcess(null); thisTravellingUIE = targetUIE; targetUIE.SetRunningTravelProcess(this); } } }
public TravelInterpolator(ITravelableUIE travelableUIE, IInterpolatorProcess drivingProcess) { thisTravelableUIE = travelableUIE; thisDrivingProcess = drivingProcess; }
public IImageSmoothFollowDragPositionProcess CreateImageSmoothFollowDragPositionProcess(ITravelableUIE travelableUIE, IPickUpManager pum, float dragThreshold, float smoothCoefficient) { IImageSmoothFollowDragPositionProcessConstArg arg = new ImageSmoothFollowDragPositionProcessConstArg( thisProcessManager, travelableUIE, pum, dragThreshold, smoothCoefficient ); ImageSmoothFollowDragPositionProcess process = new ImageSmoothFollowDragPositionProcess(arg); return(process); }