Exemplo n.º 1
0
 protected void InitializeLocator(IRectangleLocator locator)
 {
     if (locator != null && locator.Sprite == null)
     {
         locator.Sprite = this.Sprite;
     }
 }
Exemplo n.º 2
0
 public RectangleWalkEffect(IRectangleLocator rectangleLocator, IPointLocator alignmentPointLocator,
                            WalkDirection direction, IPointLocator startPoint)
 {
     this.RectangleLocator      = rectangleLocator;
     this.AlignmentPointLocator = alignmentPointLocator;
     this.WalkDirection         = direction;
     this.StartPointLocator     = startPoint;
 }
Exemplo n.º 3
0
        public override void Start()
        {
            this.originalBounds = this.Sprite.Bounds;

            if (this.From == null)
            {
                this.From = new FixedRectangleLocator(this.Sprite.Bounds);
            }
            if (this.To == null)
            {
                this.To = new FixedRectangleLocator(this.Sprite.Bounds);
            }

            this.InitializeLocator(this.From);
            this.InitializeLocator(this.To);
        }
Exemplo n.º 4
0
 public RectangleWalker(IRectangleLocator rectangleLocator)
     : this(rectangleLocator, WalkDirection.Clockwise) {
 }
Exemplo n.º 5
0
 public PointOnRectangleLocator(IRectangleLocator locator, float horizontal, float vertical)
     : this(locator, horizontal, vertical, Point.Empty) {
 }
Exemplo n.º 6
0
 public PointOnRectangleLocator(IRectangleLocator locator, float horizontal, float vertical, Point offset) {
     this.RectangleLocator = locator;
     this.PointProportions = new SizeF(horizontal, vertical);
     this.Offset = offset;
 }
Exemplo n.º 7
0
 public static RectangleWalkEffect Walk(IRectangleLocator rl, WalkDirection direction)
 {
     return(new RectangleWalkEffect(rl, null, direction));
 }
Exemplo n.º 8
0
 public PointOnRectangleLocator(IRectangleLocator locator, Corner corner, Point offset)
 {
     this.RectangleLocator = locator;
     this.PointProportions = this.ConvertCornerToProportion(corner);
     this.Offset           = offset;
 }
Exemplo n.º 9
0
 public PointOnRectangleLocator(IRectangleLocator locator, float horizontal, float vertical)
     : this(locator, horizontal, vertical, Point.Empty)
 {
 }
Exemplo n.º 10
0
 public static BoundsEffect Bounds(IRectangleLocator from, IRectangleLocator to)
 {
     return(new BoundsEffect(from, to));
 }
Exemplo n.º 11
0
 public static BoundsEffect Bounds(IRectangleLocator from, IRectangleLocator to) {
     return new BoundsEffect(from, to);
 }
Exemplo n.º 12
0
 public static RectangleWalkEffect Walk(IRectangleLocator rl, WalkDirection direction) {
     return new RectangleWalkEffect(rl, null, direction);
 }
Exemplo n.º 13
0
 public BoundsEffect(IRectangleLocator from, IRectangleLocator to)
 {
     this.From = from;
     this.To   = to;
 }
Exemplo n.º 14
0
        public RectangleWalker(IRectangleLocator rectangleLocator, WalkDirection direction)
            : this(rectangleLocator, direction, null) {

        }
Exemplo n.º 15
0
 public BoundsEffect(IRectangleLocator to)
 {
     this.To = to;
 }
Exemplo n.º 16
0
 public RectangleWalker(IRectangleLocator rectangleLocator, WalkDirection direction, IPointLocator startPointLocator)
 {
     this.RectangleLocator  = rectangleLocator;
     this.Direction         = direction;
     this.StartPointLocator = startPointLocator;
 }
Exemplo n.º 17
0
 public RectangleWalker(IRectangleLocator rectangleLocator, WalkDirection direction)
     : this(rectangleLocator, direction, null)
 {
 }
Exemplo n.º 18
0
 public RectangleWalker(IRectangleLocator rectangleLocator)
     : this(rectangleLocator, WalkDirection.Clockwise)
 {
 }
Exemplo n.º 19
0
 public PointOnRectangleLocator(IRectangleLocator locator, float horizontal, float vertical, Point offset)
 {
     this.RectangleLocator = locator;
     this.PointProportions = new SizeF(horizontal, vertical);
     this.Offset           = offset;
 }
Exemplo n.º 20
0
 public RectangleWalker(IRectangleLocator rectangleLocator, WalkDirection direction, IPointLocator startPointLocator) {
     this.RectangleLocator = rectangleLocator;
     this.Direction = direction;
     this.StartPointLocator = startPointLocator;
 }
Exemplo n.º 21
0
 public RectangleWalkEffect(IRectangleLocator rectangleLocator)
     : this(rectangleLocator, null)
 {
 }
Exemplo n.º 22
0
 public static RectangleWalkEffect Walk(IRectangleLocator rl) {
     return new RectangleWalkEffect(rl);
 }
Exemplo n.º 23
0
 public RectangleWalkEffect(IRectangleLocator rectangleLocator, IPointLocator alignmentPointLocator)
     : this(rectangleLocator, alignmentPointLocator, WalkDirection.Clockwise, null)
 {
 }
Exemplo n.º 24
0
 public static RectangleWalkEffect Walk(IRectangleLocator rl, Corner start, WalkDirection direction) {
     return new RectangleWalkEffect(rl, null, direction, new PointOnRectangleLocator(rl, start));
 }
Exemplo n.º 25
0
 public RectangleWalkEffect(IRectangleLocator rectangleLocator, IPointLocator alignmentPointLocator,
                            WalkDirection direction)
     : this(rectangleLocator, alignmentPointLocator, direction, null)
 {
 }
 protected void InitializeLocator(IRectangleLocator locator) {
     if (locator != null && locator.Sprite == null)
         locator.Sprite = this.Sprite;
 }
Exemplo n.º 27
0
 public PointOnRectangleLocator(IRectangleLocator locator, Corner corner)
     : this(locator, corner, Point.Empty) {
 }
Exemplo n.º 28
0
 public static RectangleWalkEffect Walk(IRectangleLocator rl)
 {
     return(new RectangleWalkEffect(rl));
 }
Exemplo n.º 29
0
 public PointOnRectangleLocator(IRectangleLocator locator, Corner corner, Point offset) {
     this.RectangleLocator = locator;
     this.PointProportions = this.ConvertCornerToProportion(corner);
     this.Offset = offset;
 }
Exemplo n.º 30
0
 public static RectangleWalkEffect Walk(IRectangleLocator rl, Corner start, WalkDirection direction)
 {
     return(new RectangleWalkEffect(rl, null, direction, new PointOnRectangleLocator(rl, start)));
 }
Exemplo n.º 31
0
 public PointOnRectangleLocator(IRectangleLocator locator, Corner corner)
     : this(locator, corner, Point.Empty)
 {
 }