1
0

description.h 388 B

123456789101112131415161718192021222324252627
  1. #ifndef DESCRIPTION_H_INCLUDED
  2. #define DESCRIPTION_H_INCLUDED
  3. #define AABB_WIDTH 80.0f
  4. #define TANK_WIDTH 1.0f
  5. #define TIR_WIDTH 0.2f
  6. enum DetIdx { FIN = 0, DET_TANK = 1, DET_TIR = 2 } ;
  7. struct Entity
  8. {
  9. float x ;
  10. float y ;
  11. DetIdx type ;
  12. unsigned int id ;
  13. };
  14. struct Cmd
  15. {
  16. float vx ;
  17. float vy ;
  18. bool tir ;
  19. float tx ;
  20. float ty ;
  21. };
  22. #endif // DESCRIPTION_H_INCLUDED