?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. /* V1.4, please see mapwin.htm docs 'Exporting map for GBA' */
  2.  
  3. #define AN_END -1                       /* Animation types, AN_END = end of anims */
  4. #define AN_NONE 0                       /* No anim defined */
  5. #define AN_LOOPF 1              /* Loops from start to end, then jumps to start etc */
  6. #define AN_LOOPR 2              /* As above, but from end to start */
  7. #define AN_ONCE 3                       /* Only plays once */
  8. #define AN_ONCEH 4              /* Only plays once, but holds end frame */
  9. #define AN_PPFF 5                       /* Ping Pong start-end-start-end-start etc */
  10. #define AN_PPRR 6                       /* Ping Pong end-start-end-start-end etc */
  11. #define AN_PPRF 7                       /* Used internally by playback */
  12. #define AN_PPFR 8                       /* Used internally by playback */
  13. #define AN_ONCES 9              /* Used internally by playback */
  14.  
  15.  
  16. typedef struct {                                /* Structure for data blocks */
  17. long int bgoff, fgoff;                  /* offsets from start of graphic blocks */
  18. long int fgoff2, fgoff3;                /* more overlay blocks */
  19. unsigned long int user1, user2; /* user long data */
  20. unsigned short int user3, user4;        /* user short data */
  21. unsigned char user5, user6, user7;      /* user byte data */
  22. unsigned char tl : 1;                           /* bits for collision detection */
  23. unsigned char tr : 1;
  24. unsigned char bl : 1;
  25. unsigned char br : 1;
  26. unsigned char trigger : 1;                      /* bg transparency */
  27. unsigned char unused1 : 1;
  28. unsigned char unused2 : 1;      /* this is the flip-h bit */
  29. unsigned char unused3 : 1;      /* this is the flip-v bit */
  30. } BLKSTR;
  31.  
  32. typedef struct {                /* Animation control structure */
  33. signed char antype;     /* Type of anim, AN_? */
  34. signed char andelay;    /* Frames to go before next frame */
  35. signed char ancount;    /* Counter, decs each frame, till 0, then resets to andelay */
  36. signed char anuser;     /* User info */
  37. long int ancuroff;      /* Points to current offset in list */
  38. long int anstartoff;    /* Points to start of blkstr offsets list, AFTER ref. blkstr offset */
  39. long int anendoff;      /* Points to end of blkstr offsets list */
  40. } ANISTR;
  41.  
  42. typedef struct { /* Object structure */
  43. int xpos, ypos; /* pixel position in map to handle */
  44. int gfxid, tileid;
  45. int gxoff, gyoff; /* offset into graphic */
  46. int gwidth, gheight;
  47. int ghandlexoff, ghandleyoff; /* handle pos, from gxoff, gyoff */
  48. int show; /* display mode */
  49. int user1, user2, user3, user4, user5, user6, user7;
  50. int flags;
  51. } OBJSTR;
  52.