public void AddMovePoint(double totalTime, Rectangle destLoc) { PointF destCoord = Sprites.GridCoordinates(_parent, _parent.ParentGrid, destLoc); Size destSize = new Size(destLoc.Width, destLoc.Height); AddMovePoint(totalTime, destCoord, destSize); }
protected internal MovePoint(Sprite sprite, double totalTime, Rectangle destLoc) { parent = sprite; TotalTicks = (long)(totalTime * (double)HighResTimer.TicksPerSecond); TotalTicksRunning = 0; DestCoord = Sprites.GridCoordinates(sprite, sprite.ParentGrid, destLoc); DestSize = new Size(destLoc.Width, destLoc.Height); }
public void MoveSprite(Rectangle newDrawLocation) { RenderSize = new Size(newDrawLocation.Size.Width, newDrawLocation.Size.Height); MoveSprite(Sprites.GridCoordinates(this, parentGrid, newDrawLocation)); }