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 759 B

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