public override void UpdateAgainst(XNACS1Primitive obj = null) { if (obj != null && obj.IsInAutoDrawSet()) { if (this.Collided(obj)) transportObject( (Money) obj); } }
public virtual void Update(XNACS1Primitive obj = null) { XNACS1Base.World.ClampAtWorldBound(this); if (obj != null && obj.IsInAutoDrawSet()) { if (this.Collided(obj)) this.Clip(obj); } }
public virtual void Update(Vector2 input_pos, XNACS1Primitive obj = null) { XNACS1Base.World.ClampAtWorldBound(this); this.Center += input_pos; if (obj != null && obj.IsInAutoDrawSet()) { if (this.Collided(obj)) this.Clip(obj); } }
/// <summary> /// Overrides the base Update function to allow extra steps for /// "blowing" a circle object. /// </summary> /// <param name="obj"></param> public override void Update(XNACS1Primitive obj = null) { XNACS1Base.World.ClampAtWorldBound(this); if (obj != null && obj.IsInAutoDrawSet()) { if (this.Collided(obj)) this.Clip(obj); if (obj is XNACS1Circle) this.Blow((XNACS1Circle)obj); } }