xs.h 292 B

123456789101112131415161718192021222324
  1. #include <u.h>
  2. #include <libc.h>
  3. #include <draw.h>
  4. #include <thread.h>
  5. #include <cursor.h>
  6. #include <mouse.h>
  7. #include <keyboard.h>
  8. enum
  9. {
  10. MAXN = 5
  11. };
  12. typedef struct Piece Piece;
  13. struct Piece{
  14. short rot;
  15. short tx;
  16. Point sz;
  17. Point d[MAXN];
  18. };
  19. extern int N, NP;
  20. extern Piece pieces[];