public override void UpdateBounds()
 {
     MovingBounds             = ImageBounds;
     base.MovingBounds.Width  = MovingBounds.Width - 20;
     base.MovingBounds.Height = MovingBounds.Height - 20;
     MovingBounds.Offset(Position);
 }
Beispiel #2
0
 public override void UpdateBounds()
 {
     /* Didn't want to have an override updatebounds however IShip interface cannot reference GameObject class position
      * resulting in a mix of Position values.  Position is now local to this class so require update bounds localy
      * TODO there must be a better way to do this!
      */
     MovingBounds = ImageBounds;
     MovingBounds.Offset(Position);
 }