SetFullRectangle() public method

public SetFullRectangle ( Vector2 position, Rectangle spriteDimensions, Vector2 velocity, int cropLeft, int cropRight, int cropTop, int cropBottom ) : void
position Microsoft.Xna.Framework.Vector2
spriteDimensions Microsoft.Xna.Framework.Rectangle
velocity Microsoft.Xna.Framework.Vector2
cropLeft int
cropRight int
cropTop int
cropBottom int
return void
 public Powerup(Vector2 pos)
 {
     Id = powerUpIdCounter++;
     Position = pos;
     BoundingBox = new CustomBoundingBox();
     BoundingBox.SetFullRectangle(Position, new Rectangle(0, 0, 16, 16), Velocity);
 }
        public StaticTile(Vector2 position, string tileKey)
        {
            TileKey = tileKey;

            Position = position;

            BoundingBox = new CustomBoundingBox();
            BoundingBox.SetFullRectangle(Position, new Rectangle(0, 0, 32, 32), Vector2.Zero);
        }