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.

OutOfBoundBlock.cs 532 B

123456789101112131415161718192021
  1. using Preparation.Interface;
  2. using Preparation.Utility;
  3. namespace GameClass.GameObj
  4. {
  5. /// <summary>
  6. /// 逻辑墙
  7. /// </summary>
  8. public class OutOfBoundBlock : GameObj, IOutOfBound
  9. {
  10. public OutOfBoundBlock(XY initPos) :
  11. base(initPos, int.MaxValue, GameObjType.OutOfBoundBlock)
  12. {
  13. this.place = PlaceType.Wall;
  14. this.CanMove = false;
  15. }
  16. public override bool IsRigid => true;
  17. public override ShapeType Shape => ShapeType.Square;
  18. }
  19. }