33 // we don't know how many bytes long a handler is, so
34 // we find it for each segment, and save it in a cache.
35 map
<int, uint16_t> *cmdLength
;
37 Game
*game
; // pointer to Game
39 int findSegmentSize (int offset
);
41 void runSegment (int addr
);
42 void runCmd (uint16_t *cmd
);
46 Handler (uint16_t *cmdListIn
, Game
*gameIn
);
51 uint16_t getLength () { // number of shorts
52 return cmdLength
->find(1)->second
+ 1;
55 Event
getEventType () {
65 vector
<Handler
*> *handler
;
69 Script (File
*fileIn
, int start
, Game
*game
);
71 void runHandler (Handler::Event event
);