You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

BombedBullet.cs 717 B

1234567891011121314151617181920
  1. using Preparation.Utility;
  2. namespace GameClass.GameObj
  3. {
  4. // 为方便界面组做子弹爆炸特效,现引入“爆炸中的子弹”,在每帧发送给界面组
  5. public sealed class BombedBullet : GameObj
  6. {
  7. public override ShapeType Shape => ShapeType.Circle;
  8. public override bool IsRigid => false;
  9. public long MappingID { get; }
  10. public Bullet bulletHasBombed;
  11. public BombedBullet(Bullet bullet) :
  12. base(bullet.Position, bullet.Radius, bullet.Place, GameObjType.BombedBullet)
  13. {
  14. this.bulletHasBombed = bullet;
  15. this.MappingID = bullet.ID;
  16. this.FacingDirection = bullet.FacingDirection;
  17. }
  18. }
  19. }