protected AbstractPipelineAction(ISupportFeedback requestor)
        {
            this._requestor = requestor;

            // TODO : Allow derived type to extend what we put in here?
            this._completionCausingHandles = new[] { this._successful, this._failed, this._busy };
        }
예제 #2
0
 public static IAction CreateHop(ISupportFeedback requestor)
 {
     return Create(requestor, "jumpw", 1);
 }
예제 #3
0
 public CastSpell(ISupportFeedback requestor, string spellName, int targetId)
     : base(requestor)
 {
     this._spellName = spellName;
     this._targetId = targetId;
 }
예제 #4
0
 public LootItem(ISupportFeedback requestor, int containerId, string itemName)
     : base(requestor)
 {
     // TODO
 }
예제 #5
0
 public UsePortal(ISupportFeedback requestor, int portalId)
     : base(requestor)
 {
     this._portalId = portalId;
 }
예제 #6
0
 public static IAction Create(ISupportFeedback requestor, int npcId)
 {
     return new UseNpc(requestor, npcId);
 }
예제 #7
0
 public static IAction Create(ISupportFeedback requestor, GiveItemSearchData giveItemSearchData, bool stopOnTargetFull)
 {
     return new GiveItemsByName(requestor, ListOperations.Create(giveItemSearchData), stopOnTargetFull);
 }
예제 #8
0
 public static IAction Create(ISupportFeedback requestor, string itemName, int giveCount, string targetName, bool stopOnTargetFull, bool partialTargetMatch)
 {
     var closetTarget = Mag.Shared.Util.GetClosestObject(targetName, partialTargetMatch);
     return Create(requestor, new GiveItemSearchData(w => w.Name == itemName, giveCount, closetTarget.Id), partialTargetMatch);
 }
 public static IAction Create(ISupportFeedback requestor, double eastWest, double northSouth, double headingInDegrees)
 {
     return Create(requestor, new CoordsObject(eastWest, northSouth), headingInDegrees);
 }
 public static IAction Create(ISupportFeedback requestor, double x, double y, int landblock, double headingInDegrees)
 {
     return Create(requestor, Mag.Shared.Util.GetCoords(landblock, x, y), headingInDegrees);
 }
 public GoToNearbyLocation(ISupportFeedback requestor, CoordsObject coords, double finalHeadingInDegrees)
     : base(requestor)
 {
     this._coords = coords;
     this._finalHeadingInDegrees = finalHeadingInDegrees;
 }
 public GiveItemsByKeyword(ISupportFeedback requestor, ReadOnlyCollection<WorldObject> itemsToGive, int targetId)
     : base(requestor)
 {
     this._itemsToGive = itemsToGive;
     this._targetId = targetId;
 }
예제 #13
0
 public static IAction Create(ISupportFeedback requestor, CoordsObject coords)
 {
     // This overload is always equivalent to use goto point
     return Internal.GoToNearbyLocation.Create(requestor, coords, REPlugin.Instance.CoreManager.Actions.Heading);
 }
예제 #14
0
 public SortAll(ISupportFeedback requestor)
     : base(requestor)
 {
 }
예제 #15
0
 public static IAction CreateShiftHopFull(ISupportFeedback requestor)
 {
     return Create(requestor, "sjumpw", 1000);
 }
 public static IAction Create(ISupportFeedback requestor, Location location)
 {
     return new GoToNearbyLocation(requestor, location.Coords, location.HeadingInDegrees);
 }
예제 #17
0
 public GiveItemsByName(ISupportFeedback requestor, IEnumerable<GiveItemSearchData> giveSearchData, bool stopOnTargetFull)
     : base(requestor)
 {
     this._giveSearchData = giveSearchData.ToList().AsReadOnly();
     this._stopOnTargetFull = stopOnTargetFull;
 }
 public static IAction Create(ISupportFeedback requestor, CoordsObject coords, double headingInDegrees)
 {
     return new GoToNearbyLocation(requestor, coords, headingInDegrees);
 }
예제 #19
0
 public static IAction Create(ISupportFeedback requestor, string itemName, int giveCount, int targetId, bool stopOnTargetFull)
 {
     return Create(requestor, new GiveItemSearchData(w => w.Name == itemName, giveCount, targetId), stopOnTargetFull);
 }
예제 #20
0
 public CramItems(ISupportFeedback requestor)
     : base(requestor)
 {
     throw new NotImplementedException();
 }
예제 #21
0
 public UseNpc(ISupportFeedback requestor, int npcId)
     : base(requestor)
 {
     this._npcId = npcId;
 }
예제 #22
0
 public Jump(ISupportFeedback requestor, string jumpCommand)
     : base(requestor)
 {
     this._jumpCommand = jumpCommand;
 }
 public ListItemsByKeyword(ISupportFeedback requestor, ReadOnlyCollection<WorldObject> itemsToGive)
     : base(requestor)
 {
     _itemsToGive = itemsToGive;
 }
예제 #24
0
 public static IAction Create(ISupportFeedback requestor, string mtJumpOption, int millisecondsHold)
 {
     return Create(requestor, string.Format("/mt {0} {1}", mtJumpOption, millisecondsHold));
 }
예제 #25
0
 public static IAction Create(ISupportFeedback requestor, int portalId)
 {
     return new UsePortal(requestor, portalId);
 }
예제 #26
0
 public static IAction Create(ISupportFeedback requestor, string jumpCommand)
 {
     return new Jump(requestor, jumpCommand);
 }
 public DisplayToUserException(string message, ISupportFeedback requestor, Exception innerException)
     : base(message, innerException)
 {
     this.Requestor = requestor;
 }
예제 #28
0
 public LootLandscapeItem(ISupportFeedback requestor)
     : base(requestor)
 {
 }