Exemple #1
0
 protected bool UnitApply(GenAction action, Point origin, int x, int y, params object[] args)
 {
     if (this._outputData != null)
     {
         this._outputData.Add(x - origin.X, y - origin.Y);
     }
     return(action.Apply(origin, x, y, args));
 }
Exemple #2
0
 protected bool UnitApply(Point origin, int x, int y, params object[] args)
 {
     if (OutputData != null)
     {
         OutputData.Add(x - origin.X, y - origin.Y);
     }
     if (NextAction != null)
     {
         return(NextAction.Apply(origin, x, y, args));
     }
     return(true);
 }
Exemple #3
0
 public override bool Apply(Point origin, int x, int y, params object[] args)
 {
     _action.Apply(origin, x, y, args);
     return(UnitApply(origin, x, y, args));
 }