protected override void emitStatusParticle(particleEmissionCallback callback) { Rectangle boundingBox = entity.GetBoundingBox(); float x = boundingBox.X + Game1.Random.Next(boundingBox.Width); float y = boundingBox.Y + Game1.Random.Next(boundingBox.Height); callback(x, y); }
public bool CollidesWith(Entity other) { return GetBoundingBox().Intersects(other.GetBoundingBox()); }
public bool CollidesWith(Entity other) { return(GetBoundingBox().Intersects(other.GetBoundingBox())); }