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.

IGameObj.cs 719 B

12345678910111213141516171819
  1. using Preparation.Utility;
  2. namespace Preparation.Interface
  3. {
  4. public interface IGameObj
  5. {
  6. public GameObjType Type { get; }
  7. public long ID { get; }
  8. public XY Position { get; } // if Square, Pos equals the center
  9. public PlaceType Place { get; }
  10. public XY FacingDirection { get; }
  11. public bool IsRigid { get; }
  12. public ShapeType Shape { get; }
  13. public bool CanMove { get; set; }
  14. public bool IsResetting { get; set; } // reviving
  15. public int Radius { get; } // if Square, Radius equals half length of one side
  16. public bool IgnoreCollideExecutor(IGameObj targetObj); // 忽略碰撞,在具体类中实现
  17. }
  18. }