29 #ifndef HUGO_SCHEDULE_H 30 #define HUGO_SCHEDULE_H 32 #include "common/file.h" 120 uint16 _actPassIndex;
121 uint16 _actFailIndex;
128 long _newBackgroundColor;
169 int8 _vxPath, _vyPath;
177 uint16 _actPassIndex;
178 uint16 _actFailIndex;
199 uint16 _actPassIndex;
200 uint16 _actFailIndex;
239 uint16 _actPassIndex;
240 uint16 _actFailIndex;
275 int _x1, _y1, _x2, _y2;
276 uint16 _actPassIndex;
277 uint16 _actFailIndex;
302 uint16 _actPassIndex;
303 uint16 _actFailIndex;
310 int _x1, _y1, _x2, _y2;
312 byte _firstScreenIndex;
343 int16 _oldColorIndex;
344 int16 _newColorIndex;
351 uint16 _actPassIndex;
352 uint16 _actFailIndex;
387 uint16 _actPassIndex;
388 uint16 _actFailIndex;
414 uint16 _actPassIndex;
415 uint16 _actFailIndex;
504 struct Event *_prevEvent;
505 struct Event *_nextEvent;
521 virtual void decodeString(
char *line) = 0;
522 virtual void runScheduler() = 0;
524 int16 calcMaxPoints()
const;
526 void freeScheduler();
528 void initEventQueue();
529 void insertActionList(
const uint16 actIndex);
534 void newScreen(
const int screenIndex);
535 void processBonus(
const int bonusIndex);
536 void processMaze(
const int x1,
const int x2,
const int y1,
const int y2);
538 void restoreScreen(
const int screenIndex);
540 void waitForRefresh();
544 static const int kFilenameLength = 12;
545 static const int kMaxEvents = 50;
546 static const int kShiftSize = 8;
550 uint16 _actListArrSize;
551 uint16 _alNewscrIndex;
552 uint16 _screenActsSize;
553 uint16 **_screenActs;
560 uint32 _refreshTimeout;
565 Event _events[kMaxEvents];
569 virtual const char *getCypher()
const = 0;
571 virtual uint32 getTicks() = 0;
573 virtual void promptAction(
Act *action) = 0;
578 uint32 getDosTicks(
const bool updateFl);
579 uint32 getWinTicks()
const;
581 void delEventType(
const Action actTypeDel);
582 void delQueue(
Event *curEvent);
583 void findAction(
const Act* action, int16* index, int16* subElem);
584 void insertAction(
Act *action);
592 void screenActions(
const int screenNum);
601 void decodeString(
char *line)
override;
602 void runScheduler()
override;
605 const char *getCypher()
const override;
606 uint32 getTicks()
override;
607 void promptAction(
Act *action)
override;
615 void decodeString(
char *line)
override;
618 const char *getCypher()
const override;
620 void promptAction(
Act *action)
override;
629 const char *getCypher()
const override;
637 void runScheduler()
override;
640 uint32 getTicks()
override;
644 #endif //HUGO_SCHEDULE_H Definition: schedule.h:187
Definition: schedule.h:145
Definition: schedule.h:172
Definition: schedule.h:94
Definition: schedule.h:138
Definition: schedule.h:433
Cycle
Definition: game.h:63
Definition: schedule.h:347
Definition: schedule.h:511
Definition: schedule.h:292
Definition: schedule.h:371
Definition: schedule.h:213
Definition: schedule.h:405
Definition: schedule.h:391
Definition: schedule.h:306
Action
Definition: schedule.h:39
Definition: schedule.h:234
Definition: schedule.h:131
Definition: schedule.h:424
Definition: schedule.h:340
Definition: schedule.h:516
Definition: schedule.h:254
Definition: schedule.h:164
Definition: schedule.h:286
Definition: schedule.h:203
Definition: schedule.h:157
Definition: schedule.h:623
Definition: schedule.h:397
Definition: schedule.h:383
Definition: schedule.h:447
Definition: schedule.h:108
Definition: schedule.h:632
Definition: schedule.h:260
Definition: schedule.h:362
Definition: schedule.h:265
Definition: schedule.h:249
Definition: schedule.h:227
Definition: schedule.h:125
Definition: schedule.h:418
Definition: schedule.h:334
Definition: schedule.h:100
Definition: schedule.h:320
Definition: schedule.h:441
Definition: schedule.h:280
Definition: schedule.h:355
Definition: schedule.h:194
Definition: schedule.h:151
Definition: schedule.h:181
Definition: schedule.h:377
Definition: schedule.h:298
Definition: schedule.h:220
Definition: schedule.h:115
Definition: schedule.h:410
Definition: schedule.h:610
Definition: schedule.h:500
Definition: schedule.h:327
Definition: schedule.h:243
Definition: schedule.h:315
Definition: schedule.h:596
Definition: schedule.h:271