Esempio n. 1
0
        /// <summary>Get a rectangle which roughly bounds the visible sprite relative the viewport.</summary>
        public override Rectangle GetSpriteArea()
        {
            SFarmer farmer = (SFarmer)this.Value;

            return(this.GetSpriteArea(farmer.GetBoundingBox(), farmer.FarmerSprite.SourceRect));
        }
Esempio n. 2
0
        /// <summary>Get the area occupied by the target (absolute).</summary>
        public override Rectangle GetOccupiedArea()
        {
            SFarmer farmer = (SFarmer)this.Value;

            return(farmer.GetBoundingBox());
        }