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

1234567891011121314151617
  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 XY FacingDirection { get; }
  10. public bool IsRigid { get; }
  11. public ShapeType Shape { get; }
  12. public bool CanMove { get; }
  13. public int Radius { get; } // if Square, Radius equals half length of one side
  14. public bool IgnoreCollideExecutor(IGameObj targetObj); // 忽略碰撞,在具体类中实现
  15. }
  16. }