/// <summary> /// Test if this 2d moveable object is outside the bounds of the camera. /// If this moveable object has a scale (ex: sprite), it will be ignored /// </summary> /// <param name="moveable">The moveable object to test</param> /// <returns></returns> public bool IsOutsideCamera(IMoveable2d moveable) { return(IsOutsideCamera(moveable.X, moveable.Y, moveable.Width, moveable.Height)); }
/// <summary> /// Remove this moveable object to the Camera's list of moveable objects to follow /// </summary> /// <param name="moveable"></param> public void StopFollowing2D(IMoveable2d moveable) { _toFollow.Remove(moveable); }
public OnMoveableMoved(IMoveable2d moveable, float OldX, float OldY) : base(moveable) { this.OldX = OldX; this.OldY = OldY; }
/// <summary> /// Add this moveable object to the Camera's list of moveable objects to follow /// </summary> /// <param name="moveable">The moveable object to follow</param> public void Follow2D(IMoveable2d moveable) { _toFollow.Add(moveable); }
public MoveableEvent(IMoveable2d moveable) { this.Moveable = moveable; }