示例#1
0
 private void _UpdateBounds(float left, float top, ref Rect bounds)
 {
     bounds.Location = new Point(left, top);
     if (BoundsChanged != null)
         BoundsChanged(this, new EventArgs());
 }
示例#2
0
 public PhysicalAbility(Rect bounds ,Entity owner)
 {
     _Bounds = bounds;
 }
示例#3
0
文件: Rect.cs 项目: jiowchern/Regulus
 internal bool IntersectsWith(Rect rect)
 {
     throw new NotImplementedException();
 }
示例#4
0
文件: Rect.cs 项目: jiowchern/Regulus
 internal bool Contains(Rect bounds)
 {
     throw new NotImplementedException();
 }
示例#5
0
文件: Rect.cs 项目: kof1016/Regulus
 public bool Contains(Rect rect)
 {
     return (X <= rect.X &&
             Y <= rect.Y &&
             X + Width >= rect.X+ rect.Width&&
             Y + Height >= rect.Y + rect.Height);
 }
示例#6
0
文件: Rect.cs 项目: kof1016/Regulus
 public bool IntersectsWith(Rect rect)
 {
     return (rect.Left <= Right) &&
           (rect.Right>= Left) &&
           (rect.Top<= Bottom) &&
           (rect.Bottom>= Top);
 }