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.

Wall.cs 473 B

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