Annotation of researchv9/jtools/src/demo/asteroids/event.h, revision 1.1

1.1     ! root        1: #define        Event   AEvent
        !             2: typedef struct Event{
        !             3:        struct Event    *next;  /* pointer */
        !             4:        short           time;   /* time between activations */
        !             5:        short           type;   /* usually, which object has event */
        !             6:        short           dt;     /* time left before activation */
        !             7:        int             (*fn)();        /* action routine */
        !             8: } Event;
        !             9: Event  *newevent();
        !            10: /*
        !            11:  * Event types
        !            12:  */
        !            13: #define        EKEYBOARD       0
        !            14: #define        EMOUSE          0x8000
        !            15: #define        EPAUSE          0x4000
        !            16: #define        ESCORE          0x2000
        !            17: #define        EEXPL           0x0020  /* allows 16 max explosions at once */
        !            18: #define        EBOMB           0x0040  /* up to 16 bombs */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.